/* ============================================================
   MosmanLAB — Provas ENEM · CSS externo
   Prof. Edson Mosman · mosmanlab.com.br
   ============================================================ */

:root {
  --bg: #0d0d0f;
  --bg2: #141418;
  --bg3: #1c1c22;
  --border: #2a2a35;
  --text: #e8e8f0;
  --text-muted: #8888a8;
  --accent: #00c896;
  --accent2: #0099ff;
  --accent-warm: #f5a623;
  --danger: #ff5c5c;
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'DM Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
}

/* URGENCY BAR */
.urgency-bar {
  background: linear-gradient(90deg, #1a3a1a, #0d2d1a);
  border-bottom: 1px solid var(--accent);
  text-align: center;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.urgency-bar a { color: #fff; text-decoration: underline; margin-left: 8px; }

/* NAV */
nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -0.02em; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: #000 !important; padding: 8px 18px; border-radius: 6px; font-weight: 600 !important; }
.nav-cta:hover { opacity: 0.9; }

/* BREADCRUMB */
.breadcrumb { padding: 14px 40px; font-size: 13px; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--bg2); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* HERO */
.hero { padding: 60px 40px 48px; max-width: 1100px; margin: 0 auto; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.25); color: var(--accent-warm); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 20px; }
.hero h1 { font-family: var(--font-serif); font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 16px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent-warm); }
.hero-intro { font-size: 17px; color: var(--text-muted); max-width: 720px; line-height: 1.8; margin-bottom: 32px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-family: var(--font-serif); font-size: 28px; font-weight: 700; color: var(--accent-warm); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* SECTION */
section { max-width: 1100px; margin: 0 auto; padding: 0 40px 60px; }
.section-title { font-family: var(--font-serif); font-size: 24px; font-weight: 600; color: var(--text); margin-bottom: 8px; letter-spacing: -0.01em; }
.section-subtitle { font-size: 15px; color: var(--text-muted); margin-bottom: 32px; }
.section-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 48px; }

/* ANALYSIS GRID */
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }

/* CARD */
.card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 28px; margin-bottom: 24px; }
.card-title { font-family: var(--font-serif); font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.card-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }

/* CHART */
.chart-container { position: relative; height: 260px; }

/* TOPIC BARS */
.topic-bars { display: flex; flex-direction: column; gap: 10px; }
.topic-row { display: flex; align-items: center; gap: 10px; }
.topic-name { font-size: 13px; color: var(--text-muted); min-width: 210px; flex-shrink: 0; }
.topic-bar-wrap { flex: 1; background: var(--bg3); border-radius: 4px; height: 8px; overflow: hidden; }
.topic-bar-fill { height: 100%; border-radius: 4px; transition: width 1.2s ease; }
.topic-pct { font-size: 12px; font-weight: 600; color: var(--text); min-width: 80px; text-align: right; white-space: nowrap; }
.topic-note { font-size: 12px; color: var(--text-muted); margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-style: italic; line-height: 1.6; }

/* ANÁLISE POR ANO */
.anos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.ano-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.ano-label { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--accent-warm); margin-bottom: 10px; }
.ano-temas { display: flex; flex-direction: column; gap: 4px; }
.ano-tema { font-size: 13px; color: var(--text-muted); display: flex; gap: 8px; align-items: flex-start; }
.ano-tema::before { content: '·'; color: var(--accent-warm); flex-shrink: 0; }

/* COMO SE PREPARAR */
.prep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 24px; }
.prep-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 24px; }
.prep-num { font-family: var(--font-serif); font-size: 36px; font-weight: 700; color: var(--border); line-height: 1; margin-bottom: 14px; }
.prep-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.prep-desc { font-size: 14px; color: var(--text-muted); line-height: 1.75; }
.prep-desc a { color: var(--accent-warm); text-decoration: none; }

/* COMMENTARY */
.commentary { background: var(--bg2); border: 1px solid var(--border); border-left: 3px solid var(--accent-warm); border-radius: 0 12px 12px 0; padding: 28px 32px; margin-bottom: 24px; }
.commentary-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.professor-badge { background: rgba(245,166,35,0.15); border: 1px solid rgba(245,166,35,0.3); border-radius: 50px; padding: 4px 14px; font-size: 12px; font-weight: 600; color: var(--accent-warm); letter-spacing: 0.04em; }
.commentary p { font-size: 15.5px; color: var(--text); line-height: 1.85; margin-bottom: 12px; }
.commentary p:last-child { margin-bottom: 0; }

/* DIFF TABLE */
.diff-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.diff-table thead th { background: var(--bg3); color: var(--text-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.diff-table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.diff-table tbody tr:hover { background: var(--bg3); }
.diff-table tbody td { padding: 11px 16px; color: var(--text); }
.diff-table tbody td:first-child { font-family: var(--font-serif); font-weight: 600; color: var(--accent-warm); }

/* BADGES */
.badge { display: inline-block; padding: 2px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.badge-easy { background: rgba(0,200,150,0.15); color: var(--accent); }
.badge-med  { background: rgba(245,166,35,0.15); color: var(--accent-warm); }
.badge-hard { background: rgba(255,92,92,0.15);  color: var(--danger); }
.badge-soon { background: var(--bg3); color: var(--text-muted); border: 1px dashed var(--border); font-size: 11px; padding: 3px 10px; border-radius: 4px; }
.topic-pill { display: inline-block; background: var(--bg3); border: 1px solid var(--border); border-radius: 4px; font-size: 11px; padding: 2px 7px; color: var(--text-muted); margin: 2px 2px 2px 0; }

/* PROVAS LIST */
.provas-wrap { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.provas-list { display: flex; flex-direction: column; }
.prova-row { display: grid; grid-template-columns: 80px 1fr auto auto; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--border); transition: background 0.15s; }
.prova-row:last-child { border-bottom: none; }
.prova-row:hover { background: var(--bg3); }
.prova-year { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--accent-warm); }
.prova-info { display: flex; flex-direction: column; gap: 4px; }
.prova-title { font-size: 15px; font-weight: 500; color: var(--text); }
.prova-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.coming-soon { opacity: 0.45; pointer-events: none; }

/* BUTTONS */
.btn-preview { background: transparent; border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; font-family: var(--font-sans); padding: 7px 14px; border-radius: 6px; cursor: pointer; transition: all 0.2s; white-space: nowrap; }
.btn-preview:hover { border-color: var(--accent2); color: var(--accent2); }
.btn-download { background: var(--accent-warm); color: #000; font-size: 13px; font-weight: 600; font-family: var(--font-sans); padding: 7px 16px; border-radius: 6px; text-decoration: none; transition: opacity 0.2s; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.btn-download:hover { opacity: 0.85; }

/* FILTER BAR */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.filter-btn { background: var(--bg3); border: 1px solid var(--border); color: var(--text-muted); font-size: 13px; font-family: var(--font-sans); padding: 6px 14px; border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { background: rgba(245,166,35,0.1); border-color: var(--accent-warm); color: var(--accent-warm); }

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.8); z-index: 1000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg2); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 900px; max-height: 90vh; display: flex; flex-direction: column; overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); }
.modal-title { font-family: var(--font-serif); font-size: 18px; color: var(--text); }
.modal-close { background: var(--bg3); border: 1px solid var(--border); color: var(--text-muted); width: 32px; height: 32px; border-radius: 6px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.modal-body { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.pdf-placeholder { flex: 1; background: var(--bg3); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 40px; color: var(--text-muted); min-height: 400px; }
.pdf-placeholder .icon { font-size: 48px; }
.pdf-placeholder p { font-size: 15px; text-align: center; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; background: none; border: none; color: var(--text); font-family: var(--font-sans); font-size: 15px; font-weight: 500; text-align: left; padding: 18px 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color 0.2s; }
.faq-question:hover { color: var(--accent-warm); }
.faq-icon { flex-shrink: 0; font-size: 20px; transition: transform 0.2s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { display: none; font-size: 15px; color: var(--text-muted); padding-bottom: 18px; line-height: 1.8; }
.faq-item.open .faq-answer { display: block; }

/* FOOTER */
footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 32px 40px; text-align: center; color: var(--text-muted); font-size: 13px; }
footer a { color: var(--text-muted); }

/* RESPONSIVE */
@media (max-width: 900px) { .anos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .analysis-grid { grid-template-columns: 1fr; }
  nav { padding: 0 20px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero, section { padding-left: 20px; padding-right: 20px; }
  .breadcrumb { padding-left: 20px; }
  .prova-row { grid-template-columns: 60px 1fr auto; }
  .btn-preview { display: none; }
  .prep-grid { grid-template-columns: 1fr; }
  .anos-grid { grid-template-columns: 1fr; }
}
