/**
 * ==================================================
 * CSS Custom Properties (Theme Colors)
 * Cinematic & Bold Color Palette
 * ==================================================
 */

:root {
  /* ================================
       PRIMARY COLORS - Fire & Neon
       ================================ */
  --color-primary: #ff6b35;
  --color-primary-rgb: 255, 107, 53;
  --color-primary-light: #ff8f66;
  --color-primary-dark: #e55a2b;

  --color-secondary: #00d9ff;
  --color-secondary-rgb: 0, 217, 255;
  --color-secondary-light: #33e1ff;
  --color-secondary-dark: #00b8d9;

  --color-accent: #7c3aed;
  --color-accent-rgb: 124, 58, 237;
  --color-accent-light: #9f67f5;
  --color-accent-dark: #6025c7;

  /* ================================
       SPECIAL COLORS
       ================================ */
  --color-neon-blue: #00d9ff;
  --color-neon-purple: #a855f7;
  --color-neon-green: #22c55e;
  --color-fire-red: #ef4444;
  --color-gold: #f59e0b;

  /* ================================
       GRADIENTS
       ================================ */
  --gradient-primary: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-accent) 100%
  );
  --gradient-secondary: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-accent) 100%
  );
  --gradient-neon: linear-gradient(
    135deg,
    #ff6b35 0%,
    #7c3aed 50%,
    #00d9ff 100%
  );
  --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
  --gradient-glass: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );

  /* ================================
       TYPOGRAPHY
       ================================ */
  --font-persian: "Vazirmatn", "IRANSans", "Tahoma", "Arial", sans-serif;
  --font-english: "Montserrat", "Inter", "Arial", sans-serif;
  --font-mono: "Fira Code", "Consolas", "Monaco", monospace;

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  --font-size-7xl: 4.5rem;

  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* ================================
       SPACING
       ================================ */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ================================
       BORDERS & RADIUS
       ================================ */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  --border-width: 1px;
  --border-width-2: 2px;

  /* ================================
       SHADOWS
       ================================ */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --shadow-glow-primary: 0 0 20px rgba(var(--color-primary-rgb), 0.4);
  --shadow-glow-secondary: 0 0 20px rgba(var(--color-secondary-rgb), 0.4);
  --shadow-glow-accent: 0 0 20px rgba(var(--color-accent-rgb), 0.4);

  /* ================================
       TRANSITIONS
       ================================ */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ================================
       Z-INDEX SCALE
       ================================ */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
  --z-preloader: 1000;

  /* ================================
       CONTAINER
       ================================ */
  --container-max: 1400px;
  --container-padding: var(--space-4);

  /* ================================
       HEADER
       ================================ */
  --header-height: 70px;
  --header-height-scrolled: 60px;
}

/* ================================
   DARK THEME (Default)
   ================================ */
:root,
html,
[data-theme="dark"] {
  --color-bg: #0a0a0a;
  --color-bg-rgb: 10, 10, 10;
  --color-bg-secondary: #111111;
  --color-bg-tertiary: #1a1a1a;
  --color-bg-elevated: #1f1f1f;

  --color-surface: #161616;
  --color-surface-hover: #222222;
  --color-surface-active: #2a2a2a;

  --color-text: #ffffff;
  --color-text-secondary: #a1a1aa;
  --color-text-tertiary: #71717a;
  --color-text-muted: #52525b;

  --color-border: rgba(255, 255, 255, 0.1);
  --color-border-hover: rgba(255, 255, 255, 0.2);

  --color-glass-bg: rgba(255, 255, 255, 0.05);
  --color-glass-border: rgba(255, 255, 255, 0.1);

  --color-overlay: rgba(0, 0, 0, 0.8);
}

/* ================================
   LIGHT THEME
   ================================ */
[data-theme="light"] {
  --color-bg: #ffffff;
  --color-bg-rgb: 255, 255, 255;
  --color-bg-secondary: #f9fafb;
  --color-bg-tertiary: #f3f4f6;
  --color-bg-elevated: #ffffff;

  --color-surface: #ffffff;
  --color-surface-hover: #f9fafb;
  --color-surface-active: #f3f4f6;

  --color-text: #111827;
  --color-text-secondary: #4b5563;
  --color-text-tertiary: #6b7280;
  --color-text-muted: #9ca3af;

  --color-border: rgba(0, 0, 0, 0.1);
  --color-border-hover: rgba(0, 0, 0, 0.2);

  --color-glass-bg: rgba(255, 255, 255, 0.8);
  --color-glass-border: rgba(0, 0, 0, 0.1);

  --color-overlay: rgba(0, 0, 0, 0.5);

  /* Adjust shadows for light mode */
  --shadow-glow-primary: 0 0 20px rgba(var(--color-primary-rgb), 0.2);
  --shadow-glow-secondary: 0 0 20px rgba(var(--color-secondary-rgb), 0.2);
  --shadow-glow-accent: 0 0 20px rgba(var(--color-accent-rgb), 0.2);
}
