/* ============================================================
   PANTIGAME — CSS Custom Properties (Design Tokens)
   Supports Dark Mode (default) and Light Mode (.light-mode)
   Full RTL Persian / Farsi support
   ============================================================ */

/* ── IRANSans — فونت اصلی قالب ── */
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/woff2/IRANSansWeb(FaNum)_Light.woff2') format('woff2'),
       url('../fonts/woff/IRANSansWeb(FaNum)_Light.woff')   format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2') format('woff2'),
       url('../fonts/woff/IRANSansWeb(FaNum)_Medium.woff')   format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/woff2/IRANSansWeb(FaNum)_Medium.woff2') format('woff2'),
       url('../fonts/woff/IRANSansWeb(FaNum)_Medium.woff')   format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'),
       url('../fonts/woff/IRANSansWeb(FaNum)_Bold.woff')   format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'),
       url('../fonts/woff/IRANSansWeb(FaNum)_Bold.woff')   format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'),
       url('../fonts/woff/IRANSansWeb(FaNum)_Bold.woff')   format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/woff2/IRANSansWeb(FaNum)_Bold.woff2') format('woff2'),
       url('../fonts/woff/IRANSansWeb(FaNum)_Bold.woff')   format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ══════════════════════════════════════════════
   DARK MODE — Default Theme
   ══════════════════════════════════════════════ */
:root {
  /* --- Colors --- */
  --color-bg:           #18181b;      /* Zinc-900  */
  --color-bg-2:         #1e1e23;      /* Cards / elevated surfaces */
  --color-bg-3:         #27272a;      /* Zinc-800  */
  --color-bg-glass:     rgba(30,30,35,0.75);
  --color-border:       rgba(255,255,255,0.08);
  --color-border-hover: rgba(255,255,255,0.18);

  --color-text:         #f8fafc;      /* Near-white  */
  --color-text-muted:   #a1a1aa;      /* Zinc-400    */
  --color-text-subtle:  #71717a;      /* Zinc-500    */

  --color-primary:      #38bdf8;      /* Cyan-400    */
  --color-primary-dark: #0ea5e9;      /* Cyan-500    */
  --color-primary-glow: rgba(56,189,248,0.25);

  --color-secondary:    #f43f5e;      /* Rose-500    */
  --color-secondary-dark:#e11d48;     /* Rose-600    */
  --color-secondary-glow:rgba(244,63,94,0.25);

  --color-vip:          #fbbf24;      /* Amber-400   */
  --color-vip-dark:     #f59e0b;      /* Amber-500   */
  --color-vip-glow:     rgba(251,191,36,0.25);

  --color-success:      #22c55e;      /* Green-500   */
  --color-success-dark: #16a34a;      /* Green-600   */
  --color-success-glow: rgba(34,197,94,0.25);

  --color-warning:      #f97316;      /* Orange-500  */
  --color-danger:       #ef4444;      /* Red-500     */
  --color-info:         #818cf8;      /* Indigo-400  */

  /* --- Gradients --- */
  --gradient-primary:   linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --gradient-secondary: linear-gradient(135deg, #f43f5e 0%, #f97316 100%);
  --gradient-vip:       linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  --gradient-hero:      linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #18181b 100%);
  --gradient-card:      linear-gradient(145deg, #1e1e23 0%, #27272a 100%);
  --gradient-glass:     linear-gradient(135deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.02) 100%);

  /* --- Shadows --- */
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.4);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.45);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-xl:    0 16px 48px rgba(0,0,0,0.6);
  --shadow-primary: 0 0 20px var(--color-primary-glow);
  --shadow-secondary: 0 0 20px var(--color-secondary-glow);
  --shadow-vip:   0 0 24px var(--color-vip-glow);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.06);

  /* --- Border Radius --- */
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
  --radius-xl:    20px;
  --radius-2xl:   24px;
  --radius-full:  9999px;

  /* --- Typography --- */
  --font-family:  'IRANSans', 'Tahoma', 'Arial', sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base:1rem;      /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl:1.5rem;     /* 24px */
  --font-size-3xl:1.875rem;   /* 30px */
  --font-size-4xl:2.25rem;    /* 36px */
  --font-size-5xl:3rem;       /* 48px */

  --font-weight-light:   300;
  --font-weight-normal:  400;
  --font-weight-medium:  500;
  --font-weight-semibold:600;
  --font-weight-bold:    700;
  --font-weight-black:   900;

  --line-height-tight:   1.2;
  --line-height-normal:  1.6;
  --line-height-relaxed: 1.8;
  --letter-spacing-wide: 0.08em;
  --letter-spacing-wider:0.15em;

  /* --- Spacing --- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* --- Transitions --- */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.4s ease;
  --transition-bounce: 0.3s cubic-bezier(0.34,1.56,0.64,1);

  /* --- Z-index --- */
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-modal:    300;
  --z-toast:    400;

  /* --- Blur --- */
  --blur-sm:  blur(8px);
  --blur-md:  blur(16px);
  --blur-lg:  blur(24px);

  /* --- Layout --- */
  --container-max: 1280px;
  /* 3-row header: topbar(36) + mainbar(64) + navbar(46) = 146px */
  --header-height: 146px;
  --topbar-height: 36px;
  --mainbar-height: 64px;
  --navbar-height: 46px;
  --sidebar-width: 280px;
}

/* ══════════════════════════════════════════════
   LIGHT MODE
   ══════════════════════════════════════════════ */
body.light-mode {
  --color-bg:           #f8fafc;
  --color-bg-2:         #ffffff;
  --color-bg-3:         #f1f5f9;
  --color-bg-glass:     rgba(255,255,255,0.8);
  --color-border:       rgba(0,0,0,0.08);
  --color-border-hover: rgba(0,0,0,0.18);

  --color-text:         #0f172a;
  --color-text-muted:   #475569;
  --color-text-subtle:  #94a3b8;

  --gradient-hero:      linear-gradient(135deg, #e0f2fe 0%, #ede9fe 50%, #fce7f3 100%);
  --gradient-card:      linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  --gradient-glass:     linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl:    0 16px 48px rgba(0,0,0,0.15);
  --shadow-card:  0 4px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.9);
}
