/* JKBOSE PYQ Pro — Teachoo-Inspired Academic Design System */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-soft: #eff6ff;
  --accent: #059669;
  --accent-soft: #ecfdf5;
  --warn: #d97706;
  --warn-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --max-w: 1120px;
}
[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111827;
  --surface-2: #1e293b;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #273549;
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.14);
  --accent: #10b981;
  --accent-soft: rgba(16, 185, 129, 0.14);
  --warn: #fbbf24;
  --warn-soft: rgba(251, 191, 36, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 18px; }
.site-header { position: sticky; top: 0; z-index: 90; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--text); text-decoration: none !important; }
.brand-badge { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #1d4ed8, #0ea5e9); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 0.95rem; }
.nav-links { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav-links a { padding: 7px 12px; border-radius: 9px; color: var(--text-muted); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { background: var(--primary-soft); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 700; font-size: 0.9rem; cursor: pointer; transition: transform 0.12s ease, background 0.15s ease; text-decoration: none !important; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-gold { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; box-shadow: 0 4px 14px rgba(217, 119, 6, 0.28); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--surface-2); }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; border-radius: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; font-size: 1rem; }
.pro-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; background: var(--accent-soft); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.86rem; color: var(--text-muted); margin: 18px 0 12px; }
.breadcrumbs a { color: var(--text-muted); font-weight: 500; }
.hero { background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 60%, #1d4ed8 100%); color: #fff; padding: 48px 0 44px; }
.hero h1 { font-size: clamp(1.75rem, 4vw, 2.65rem); line-height: 1.2; font-weight: 900; margin-bottom: 12px; }
.hero p { font-size: 1.05rem; color: #dbeafe; max-width: 720px; margin-bottom: 22px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.hero-badge { background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.22); padding: 4px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: -24px auto 32px; position: relative; z-index: 2; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); text-align: center; }
.stat-num { font-size: 1.55rem; font-weight: 900; color: var(--primary); }
.stat-label { font-size: 0.84rem; color: var(--text-muted); font-weight: 600; }
.section { padding: 28px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: 1.45rem; font-weight: 800; }
.section-head p { color: var(--text-muted); font-size: 0.94rem; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-title { font-size: 1.12rem; font-weight: 800; margin-bottom: 6px; }
.card-meta { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 12px; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 0.74rem; font-weight: 700; margin-right: 5px; margin-bottom: 5px; }
.tag-live { background: var(--accent-soft); color: var(--accent); }
.tag-blue { background: var(--primary-soft); color: var(--primary); }
.tag-amber { background: var(--warn-soft); color: var(--warn); }
.tag-gray { background: var(--surface-2); color: var(--text-muted); }
.paper-banner { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.paper-banner h1 { font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 900; margin-bottom: 8px; }
.paper-meta-row { display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.86rem; color: var(--text-muted); margin: 10px 0 14px; }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 20px; }
.filter-tab { padding: 7px 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 0.84rem; cursor: pointer; }
.filter-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.q-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; box-shadow: var(--shadow); }
.q-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 20px; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.q-num { font-weight: 900; font-size: 0.98rem; color: var(--primary); }
.q-marks { font-size: 0.78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); }
.q-body { padding: 20px; }
.q-prompt { font-size: 1.06rem; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.mcq-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.mcq-opt { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-size: 0.96rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.mcq-opt:hover { border-color: var(--primary); background: var(--primary-soft); }
.mcq-opt.correct { border-color: var(--accent); background: var(--accent-soft); }
.mcq-opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
.mcq-letter { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; font-size: 0.82rem; flex-shrink: 0; }
.teachoo-box { border-top: 1px dashed var(--border); padding-top: 16px; margin-top: 14px; }
.teachoo-given { background: var(--surface-2); border-left: 4px solid var(--primary); padding: 12px 15px; border-radius: 0 10px 10px 0; margin-bottom: 14px; font-size: 0.94rem; }
.teachoo-formula { background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); padding: 12px 15px; border-radius: 10px; margin-bottom: 14px; font-size: 0.95rem; }
.teachoo-steps { list-style: none; counter-reset: step; margin: 12px 0; }
.teachoo-steps li { position: relative; padding-left: 36px; margin-bottom: 12px; font-size: 0.97rem; }
.teachoo-steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 0.76rem; font-weight: 800; display: grid; place-items: center; }
.teachoo-answer { background: var(--accent-soft); border: 1.5px solid color-mix(in srgb, var(--accent) 45%, transparent); padding: 13px 16px; border-radius: 10px; font-weight: 800; margin-top: 14px; }
.teachoo-tip { background: var(--warn-soft); border-left: 4px solid var(--warn); padding: 10px 14px; border-radius: 0 10px 10px 0; margin-top: 12px; font-size: 0.88rem; }
.or-divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 18px; font-weight: 900; font-size: 0.85rem; color: var(--warn); letter-spacing: 0.08em; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.diagram-box { background: #ffffff; border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin: 14px 0; display: flex; justify-content: center; overflow-x: auto; }
.diagram-box svg { max-width: 100%; height: auto; }
.data-table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.92rem; }
.data-table th, .data-table td { border: 1px solid var(--border); padding: 9px 12px; text-align: center; }
.data-table th { background: var(--surface-2); font-weight: 800; }
.locked-wrap { position: relative; }
.locked-blur { filter: blur(6px); user-select: none; pointer-events: none; max-height: 180px; overflow: hidden; }
.lock-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 40%, transparent), color-mix(in srgb, var(--surface) 96%, transparent) 60%); padding: 20px; border-radius: 10px; }
.pricing-card { border: 2px solid var(--primary); background: linear-gradient(180deg, var(--primary-soft), var(--surface) 38%); }
.price-tag { font-size: 2rem; font-weight: 900; color: var(--text); margin: 8px 0; }
.price-strike { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; margin-left: 8px; }
.check-list { list-style: none; margin: 14px 0 18px; }
.check-list li { padding: 5px 0; font-size: 0.93rem; }
.check-list li::before { content: "✓ "; color: var(--accent); font-weight: 900; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.65); backdrop-filter: blur(4px); z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; }
.modal-backdrop.open { display: flex; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; max-width: 480px; width: 100%; padding: 24px; box-shadow: var(--shadow-lg); position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); cursor: pointer; font-weight: 800; }
.input-row { display: flex; gap: 8px; margin-top: 10px; }
.text-input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.95rem; font-weight: 600; }
.msg-box { margin-top: 10px; font-size: 0.86rem; font-weight: 700; min-height: 20px; }
.scorebar { position: sticky; top: 70px; z-index: 40; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.site-footer { margin-top: 48px; padding: 32px 0; border-top: 1px solid var(--border); background: var(--surface); color: var(--text-muted); font-size: 0.88rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
@media (max-width: 680px) { .nav-links { display: none; } .q-body { padding: 16px; } .mcq-options { grid-template-columns: 1fr; } }
@media print { .site-header, .filter-bar, .lock-overlay, .modal-backdrop, .site-footer { display: none !important; } .locked-blur { filter: none !important; max-height: none !important; } }
