/* ============================================================
   Kora Live — Base: Design Tokens, Reset & Typography
   ============================================================ */

/* ---- Light Theme (default) --------------------------------- */
:root {
  --bg:         #f6f7fb;
  --surface:    #ffffff;
  --surface-2:  #f1f3f9;
  --border:     #e5e8f0;
  --text:       #0e1726;
  --muted:      #5b6477;

  --primary:    #00a868;
  --primary-2:  #00c47a;
  --accent:     #ffb800;
  --danger:     #ef4444;
  --live:       #ef4444;

  --shadow:     0 8px 24px -12px rgba(15, 23, 42, 0.18);
  --shadow-lg:  0 24px 60px -20px rgba(15, 23, 42, 0.25);
  --radius:     16px;
  --radius-sm:  10px;

  --grad:       linear-gradient(135deg, #00a868 0%, #00c47a 60%, #4ade80 100%);
  --grad-soft:  linear-gradient(135deg, rgba(0,168,104,.08), rgba(0,196,122,.04));
}

/* ---- Dark Theme -------------------------------------------- */
[data-theme="dark"] {
  --bg:         #0a0f1c;
  --surface:    #111827;
  --surface-2:  #1a2333;
  --border:     #233047;
  --text:       #f1f5f9;
  --muted:      #94a3b8;

  --shadow:     0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg:  0 24px 60px -20px rgba(0,0,0,.7);
  --grad-soft:  linear-gradient(135deg, rgba(0,168,104,.14), rgba(0,196,122,.06));
}

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

html, body {
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
  line-height: 1.6;
}

/* Arabic font swap */
[dir="rtl"] body {
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
}

img   { display: block; max-width: 100%; }
a     { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul    { list-style: none; }

/* ---- Animations -------------------------------------------- */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); }
  50%       { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- RTL global tweaks ------------------------------------- */
[dir="rtl"] .hero h1,
[dir="rtl"] .team-name {
  letter-spacing: 0;
}
