/* Quiz / Examen / Dashboard / Premium / Articles — page-specific styles */

/* ===== HUB / QUIZ INDEX ===== */
.page-header {
  background: linear-gradient(180deg, var(--c-bg-warm) 0%, var(--c-bg) 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--c-line);
}
.page-header h1 {
  font-size: clamp(36px, 4.5vw, 52px);
  margin-bottom: 16px;
  max-width: 760px;
}
.page-header p {
  font-size: 17px;
  color: var(--c-ink-soft);
  max-width: 640px;
  line-height: 1.6;
}
.page-header-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: end;
}
.page-header-side {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--c-mute);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--c-red); }
.breadcrumb .sep { opacity: 0.5; }

/* Quiz hub: positioning card */
.diag-card {
  background: var(--c-blue);
  color: #fff;
  border-radius: var(--r-md);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.diag-card .tag {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-mint);
  margin-bottom: 12px;
}
.diag-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 8px;
}
.diag-card p {
  color: #b3c2c7;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 24px;
}
.diag-card .btn { background: var(--c-red); border-color: var(--c-red); color: #fff; }
.diag-card .btn:hover { background: #cf2f3c; }
.diag-meta {
  display: flex; gap: 18px;
  margin-top: 18px;
  font-size: 12.5px; color: #b3c2c7;
}
.diag-meta span { display: flex; align-items: center; gap: 6px; }

/* Hub modes */
.modes-section { padding: 64px 0; }
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 28px;
  display: flex; flex-direction: column;
  position: relative;
}
.mode-card.locked { background: var(--c-cream); }
.mode-card .lock-pill {
  position: absolute; top: 20px; right: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--c-red);
  background: var(--c-red-soft); padding: 4px 10px; border-radius: 99px;
}
.mode-card h3 { font-size: 22px; margin-bottom: 8px; }
.mode-card p { font-size: 14px; color: var(--c-ink-soft); line-height: 1.55; margin-bottom: 18px; flex: 1; }
.mode-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px dashed var(--c-line);
  border-bottom: 1px dashed var(--c-line);
  margin-bottom: 20px;
}
.mode-stat-num { font-family: var(--font-display); font-size: 22px; color: var(--c-blue); line-height: 1; margin-bottom: 4px; }
.mode-stat-label { font-size: 11.5px; color: var(--c-mute); letter-spacing: 0.04em; }

/* Theme list */
.theme-list-section { background: var(--c-paper); padding: 64px 0; border-top: 1px solid var(--c-line); }
.theme-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  gap: 32px;
  align-items: center;
  padding: 24px 0;
  border-top: 1px solid var(--c-line);
}
.theme-row:last-child { border-bottom: 1px solid var(--c-line); }
.theme-row-num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-mute);
  width: 40px;
}
.theme-row-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.theme-row-name small { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--c-ink-soft); margin-top: 4px; letter-spacing: 0; }
.theme-row-questions { font-size: 13.5px; color: var(--c-mute); font-variant-numeric: tabular-nums; }
.theme-row-progress { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.theme-row-progress .bar { flex: 1; height: 6px; background: var(--c-line-soft); border-radius: 99px; overflow: hidden; }
.theme-row-progress .bar-fill { height: 100%; background: var(--c-blue); border-radius: 99px; }
.theme-row-progress .pct { font-size: 13px; font-weight: 600; color: var(--c-ink); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }

/* ===== QUIZ RUNNER ===== */
.runner-bg { background: var(--c-bg); min-height: 100vh; }
.runner-bar {
  background: var(--c-paper);
  border-bottom: 1px solid var(--c-line);
  padding: 16px 0;
  position: sticky; top: 0; z-index: 40;
}
.runner-bar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.runner-quit {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--c-ink-soft); font-weight: 500;
}
.runner-quit:hover { color: var(--c-red); }
.runner-progress {
  flex: 1; max-width: 480px;
  display: flex; align-items: center; gap: 16px;
}
.runner-progress .label { font-size: 13px; color: var(--c-mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.runner-progress .bar { flex: 1; height: 6px; background: var(--c-line-soft); border-radius: 99px; overflow: hidden; }
.runner-progress .bar-fill { height: 100%; background: var(--c-red); border-radius: 99px; transition: width 0.3s ease; }
.runner-timer {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-blue);
  background: var(--c-mint-soft);
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums;
}
.runner-timer.warn { background: var(--c-red-soft); color: var(--c-red); }

.runner-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 32px 80px;
}
.runner-q-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-mute);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.runner-q-theme {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 18px;
}
.runner-q-text {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 36px;
  color: var(--c-ink);
}
.runner-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.runner-option {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--c-paper);
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 18px 22px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 16px;
  line-height: 1.45;
}
.runner-option:hover { border-color: var(--c-blue); background: var(--c-bg-warm); }
.runner-option .opt-letter {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--c-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--c-mute);
  flex-shrink: 0;
  transition: all 0.15s ease;
}
.runner-option.selected {
  border-color: var(--c-blue);
  background: var(--c-mint-soft);
}
.runner-option.selected .opt-letter {
  background: var(--c-blue); border-color: var(--c-blue); color: #fff;
}
.runner-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--c-line); }

/* ===== DASHBOARD ===== */
.dash-bg { background: var(--c-bg); min-height: 100vh; }
.dash-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 32px 0;
}
.dash-side {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 100px;
}
.dash-user {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--c-line);
}
.dash-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
}
.dash-user-name { font-size: 15px; font-weight: 600; }
.dash-user-tier {
  font-size: 11.5px; font-weight: 600; color: var(--c-red);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.dash-side-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.dash-side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--c-ink-soft);
  font-weight: 500;
}
.dash-side-nav a:hover { background: var(--c-line-soft); color: var(--c-ink); }
.dash-side-nav a.active { background: var(--c-mint-soft); color: var(--c-blue); }
.dash-side-nav a svg { color: currentColor; flex-shrink: 0; }

.dash-side-upgrade {
  margin-top: 20px;
  padding: 18px;
  background: var(--c-blue);
  color: #fff;
  border-radius: var(--r-sm);
}
.dash-side-upgrade h5 { font-family: var(--font-display); font-weight: 500; font-size: 16px; margin-bottom: 6px; color: #fff; }
.dash-side-upgrade p { font-size: 12.5px; color: #b3c2c7; line-height: 1.5; margin-bottom: 12px; }
.dash-side-upgrade .btn { background: var(--c-red); border-color: var(--c-red); color: #fff; width: 100%; justify-content: center; }

.dash-main h1 { font-size: 36px; margin-bottom: 6px; }
.dash-main .greeting-sub { color: var(--c-ink-soft); font-size: 15px; margin-bottom: 32px; }

.dash-summary {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 20px;
  margin-bottom: 32px;
}
.dash-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 24px;
}
.dash-card h3 {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 16px;
}
.dash-overall .big-num {
  font-family: var(--font-display);
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--c-blue);
  margin-bottom: 8px;
}
.dash-overall .big-num .pct { font-size: 28px; color: var(--c-mint); }
.dash-overall .label { font-size: 13.5px; color: var(--c-ink-soft); margin-bottom: 16px; }
.dash-overall .bar { height: 8px; background: var(--c-line-soft); border-radius: 99px; overflow: hidden; }
.dash-overall .bar-fill { height: 100%; background: var(--c-blue); border-radius: 99px; }

.dash-mini-stat .num {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 4px;
}
.dash-mini-stat .desc { font-size: 13px; color: var(--c-ink-soft); }
.dash-mini-stat .trend { font-size: 12px; color: var(--c-blue); margin-top: 8px; font-weight: 600; }

.dash-themes-section { margin-bottom: 32px; }
.dash-themes-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
.dash-theme-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 20px 24px;
  display: flex; flex-direction: column; gap: 14px;
}
.dash-theme-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.dash-theme-head h4 { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.dash-theme-head .pct { font-family: var(--font-display); font-size: 24px; color: var(--c-blue); }
.dash-theme-card .bar { height: 6px; background: var(--c-line-soft); border-radius: 99px; overflow: hidden; }
.dash-theme-card .bar-fill { height: 100%; border-radius: 99px; }
.dash-theme-card .meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--c-mute); }
.dash-theme-card .resume {
  font-size: 13px; font-weight: 600; color: var(--c-red);
  display: flex; align-items: center; gap: 6px;
}

.dash-section-title {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 16px;
}
.dash-section-title h2 { font-size: 22px; }
.dash-section-title a { font-size: 13px; color: var(--c-red); font-weight: 600; }

/* History */
.dash-history-list {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.dash-history-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--c-line);
}
.dash-history-row:last-child { border-bottom: none; }
.dash-history-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--c-mint-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-blue);
  flex-shrink: 0;
}
.dash-history-name { font-size: 14.5px; font-weight: 500; color: var(--c-ink); }
.dash-history-meta { font-size: 12.5px; color: var(--c-mute); margin-top: 2px; }
.dash-history-score {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--c-blue);
  letter-spacing: -0.01em;
}
.dash-history-row.fail .dash-history-score { color: var(--c-red); }

/* ===== PREMIUM PAGE ===== */
.premium-hero {
  background: var(--c-blue);
  color: #fff;
  padding: 80px 0 64px;
}
.premium-hero h1 { color: #fff; font-size: clamp(40px, 5vw, 60px); margin-bottom: 20px; max-width: 760px; }
.premium-hero p { color: #b3c2c7; font-size: 19px; max-width: 620px; line-height: 1.55; }
.premium-hero .price-block {
  margin-top: 36px;
  display: inline-flex; align-items: baseline; gap: 16px;
  padding: 20px 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md);
}
.premium-hero .price-block .amt {
  font-family: var(--font-display);
  font-size: 56px;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}
.premium-hero .price-block .amt sup { font-size: 24px; }
.premium-hero .price-block small { color: var(--c-mint); font-size: 13.5px; }

.premium-features {
  background: var(--c-paper);
  padding: 80px 0;
}
.premium-features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.premium-feat {
  padding: 32px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  background: var(--c-bg-warm);
}
.premium-feat-icon {
  width: 48px; height: 48px;
  border-radius: var(--r-sm);
  background: var(--c-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.premium-feat h3 { font-size: 22px; margin-bottom: 12px; }
.premium-feat p { font-size: 14.5px; color: var(--c-ink-soft); line-height: 1.6; }

/* Comparison */
.compare-section { background: var(--c-bg); padding: 80px 0; }
.compare-table {
  width: 100%;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--c-line);
  font-size: 14.5px;
}
.compare-table th {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-mute);
  background: var(--c-bg-warm);
}
.compare-table th.featured { color: var(--c-red); }
.compare-table td.feature-name { font-weight: 500; }
.compare-table td.center { text-align: center; }
.compare-table .check { color: var(--c-blue); font-weight: 600; }
.compare-table .miss { color: var(--c-mute); }
.compare-table tr:last-child td { border-bottom: none; }

/* ===== ARTICLES PAGE ===== */
.articles-list-section { padding: 56px 0 96px; }
.articles-list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.article-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.article-feature .article-img { aspect-ratio: auto; min-height: 360px; }
.article-feature .article-body { padding: 48px; }
.article-feature .article-title { font-size: 32px; line-height: 1.15; }
.article-feature .article-excerpt { font-size: 16px; }

.cat-pills {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.cat-pill {
  padding: 8px 16px;
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-ink-soft);
  cursor: pointer;
}
.cat-pill.active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}
.cat-pill:hover:not(.active) { border-color: var(--c-mute); }

@media (max-width: 960px) {
  .page-header-grid, .dash-grid, .dash-summary, .dash-themes-grid,
  .modes-grid, .premium-features-grid, .articles-list-grid { grid-template-columns: 1fr; }
  .article-feature { grid-template-columns: 1fr; }
  .article-feature .article-body { padding: 28px; }
  .theme-row { grid-template-columns: 1fr; gap: 8px; }
  .dash-side { position: static; }
}
