/* ==============================
   QUIZ PLATFORM — Mobile-First CSS
   ============================== */

:root {
  --primary:        #6366F1;
  --primary-hover:  #4F46E5;
  --primary-light:  #EEF2FF;
  --primary-dark:   #3730A3;

  --success:        #22C55E;
  --success-light:  #DCFCE7;
  --success-dark:   #16A34A;

  --danger:         #EF4444;
  --danger-light:   #FEE2E2;
  --danger-dark:    #DC2626;

  --warning:        #F59E0B;
  --warning-light:  #FEF3C7;
  --warning-dark:   #D97706;

  --info:           #3B82F6;
  --info-light:     #EFF6FF;

  --bg:             #F1F5F9;
  --surface:        #FFFFFF;
  --border:         #E2E8F0;
  --border-dark:    #CBD5E1;

  --text:           #0F172A;
  --text-muted:     #64748B;
  --text-light:     #94A3B8;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.05);
  --shadow:     0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.12);

  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full:9999px;

  --nav-h:        56px;
  --bottom-nav-h: 62px;
  --transition:   all .15s ease;
}

/* ==============================
   DARK MODE
   ============================== */
[data-theme="dark"] {
  --bg:           #0F172A;
  --surface:      #1E293B;
  --border:       #334155;
  --border-dark:  #475569;

  --text:         #F1F5F9;
  --text-muted:   #94A3B8;
  --text-light:   #64748B;

  --primary-light:  #312E81;
  --success-light:  #052e16;
  --danger-light:   #450a0a;
  --warning-light:  #422006;
  --info-light:     #0c2340;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow:     0 1px 3px rgba(0,0,0,.4);
  --shadow-md:  0 4px 12px rgba(0,0,0,.5);
  --shadow-lg:  0 10px 30px rgba(0,0,0,.6);
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-dark); border-radius: 2px; }

/* ==============================
   LAYOUT
   ============================== */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
}
.main-wrap {
  padding-top: var(--nav-h);
  padding-bottom: calc(var(--bottom-nav-h) + 8px);
  min-height: 100vh;
}
@media (min-width: 768px) {
  .main-wrap { padding-bottom: 32px; }
}
