/* ============================================================
   CANO ACADEMY — Global Styles
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Mono:wght@400;700&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --coral:        #E8612C;
  --coral-light:  #F28C5E;
  --coral-pale:   #FFF0E8;
  --cream:        #FDF6EE;
  --warm-white:   #FFFBF7;
  --sand:         #F5E6D3;
  --tan:          #E8D5BE;
  --deep:         #1A1208;
  --brown:        #5C3A1E;
  --text:         #2D1B0E;
  --text-muted:   #7A5C42;
  --border:       #D4B896;
  --success:      #2E7D32;
  --fail:         #C62828;
  --shadow:       0 4px 24px rgba(92,58,30,.10);
  --shadow-lg:    0 8px 40px rgba(92,58,30,.16);
  --radius:       14px;
  --radius-sm:    8px;
  --radius-lg:    20px;
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
}

a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4 { font-family: 'Space Mono', monospace; color: var(--deep); line-height: 1.15; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

.mono { font-family: 'Space Mono', monospace; }
.muted { color: var(--text-muted); }

/* ── TOPBAR ── */
.topbar {
  background: white;
  border-bottom: 1.5px solid var(--tan);
  height: 62px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(92,58,30,.07);
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 15px;
  color: var(--deep);
  text-decoration: none;
}

.topbar-logo-badge {
  background: var(--coral);
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  letter-spacing: .06em;
}

.topbar-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--sand);
  border: 1px solid var(--tan);
  border-radius: 100px;
  padding: 6px 16px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  border: none;
  transition: all .18s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary   { background: var(--coral); color: white; }
.btn-primary:hover { background: #d0521f; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,97,44,.3); text-decoration: none; }

.btn-secondary { background: var(--sand); color: var(--brown); border: 1.5px solid var(--tan); }
.btn-secondary:hover { background: var(--tan); text-decoration: none; }

.btn-outline   { background: transparent; color: var(--coral); border: 1.5px solid var(--coral); }
.btn-outline:hover { background: var(--coral-pale); text-decoration: none; }

.btn-danger    { background: #C62828; color: white; }
.btn-danger:hover { background: #b71c1c; text-decoration: none; }

.btn-sm { padding: 7px 16px; font-size: 11px; }
.btn-lg { padding: 15px 36px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* ── CARDS ── */
.card {
  background: white;
  border: 1.5px solid var(--tan);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 32px;
}

.card-sm { padding: 18px 22px; border-radius: var(--radius); }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brown);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 7px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--warm-white);
  outline: none;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--coral); }

.form-group textarea { resize: vertical; min-height: 80px; }

/* ── BADGES ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}
.badge-coral   { background: var(--coral-pale); color: var(--coral); }
.badge-green   { background: #E8F5E9; color: #2E7D32; }
.badge-red     { background: #FFEBEE; color: #C62828; }
.badge-blue    { background: #E3F2FD; color: #1565C0; }
.badge-purple  { background: #F3E5F5; color: #6A1B9A; }

/* ── ALERTS ── */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 20px;
  border-left: 4px solid transparent;
}
.alert-error   { background: #FFEBEE; border-color: #C62828; color: #C62828; }
.alert-success { background: #E8F5E9; border-color: #2E7D32; color: #2E7D32; }
.alert-info    { background: #E3F2FD; border-color: #1565C0; color: #1565C0; }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1.5px solid var(--tan); }

table { width: 100%; border-collapse: collapse; background: white; }
thead tr { background: var(--sand); }
th {
  padding: 12px 16px;
  text-align: left;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: .06em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--tan);
}
td {
  padding: 13px 16px;
  font-size: 14px;
  border-bottom: 1px solid var(--sand);
  color: var(--text);
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--warm-white); }

/* ── LAYOUT ── */
.page-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 60px;
}

.page-header {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── STAT CARDS ── */
.stat-card {
  background: white;
  border: 1.5px solid var(--tan);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.stat-card .stat-num {
  font-family: 'Space Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--coral);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 6px;
}

/* ── CERT CARD (landing) ── */
.cert-card {
  background: white;
  border: 1.5px solid var(--tan);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content:'';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--cert-color, var(--coral));
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--text);
}

.cert-icon { font-size: 32px; margin-bottom: 12px; }
.cert-code {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--cert-color, var(--coral));
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.cert-title { font-size: 15px; font-weight: 600; color: var(--deep); margin-bottom: 8px; line-height: 1.35; }
.cert-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.cert-meta  {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--sand);
}

.cert-meta span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.cert-meta strong { color: var(--text); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 24px;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: 'Space Mono', monospace;
  border: 1.5px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: all .15s;
}

.pagination a:hover  { border-color: var(--coral); color: var(--coral); text-decoration: none; }
.pagination .active  { background: var(--coral); border-color: var(--coral); color: white; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .topbar { padding: 0 16px; }
  .page-wrap { padding: 20px 14px 60px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .page-header { flex-direction: column; align-items: flex-start; }
}
