/* ================================
   CSS Variables - Design System
   YULGANG KING Portal
================================ */

:root {
    /* ===== Colors - Dark Theme (Default) ===== */
    --bg-primary: #080810;
    --bg-secondary: #0f0f1a;
    --bg-tertiary: #161625;
    --bg-card: #1a1a2e;
    --bg-card-hover: #222238;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6a6a80;

    /* Accent Colors */
    --accent-gold: #ffd700;
    --accent-gold-light: #ffe55c;
    --accent-gold-dark: #cc9900;
    --accent-red: #ff4757;
    --accent-red-dark: #cc2936;
    --accent-blue: #3498db;
    --accent-green: #2ecc71;
    --accent-purple: #9b59b6;

    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ff8c00 100%);
    --gradient-red: linear-gradient(135deg, #ff4757 0%, #ff6b81 100%);
    --gradient-dark: linear-gradient(180deg, #080810 0%, #0f0f1a 100%);
    --gradient-card: linear-gradient(145deg, #1a1a2e 0%, #0f0f1a 100%);
    --gradient-hero: linear-gradient(135deg,
            rgba(255, 215, 0, 0.1) 0%,
            rgba(255, 71, 87, 0.05) 50%,
            rgba(8, 8, 16, 0.9) 100%);

    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-light: rgba(255, 255, 255, 0.15);
    --border-gold: rgba(255, 215, 0, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 4px 20px rgba(255, 215, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.15);

    /* ===== Typography ===== */
    --font-primary: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Be Vietnam Pro', sans-serif;

    /* Font Sizes */
    --fs-xs: 0.75rem;
    /* 12px */
    --fs-sm: 0.875rem;
    /* 14px */
    --fs-base: 1rem;
    /* 16px */
    --fs-md: 1.125rem;
    /* 18px */
    --fs-lg: 1.25rem;
    /* 20px */
    --fs-xl: 1.5rem;
    /* 24px */
    --fs-2xl: 2rem;
    /* 32px */
    --fs-3xl: 2.5rem;
    /* 40px */
    --fs-4xl: 3rem;
    /* 48px */

    /* Font Weights */
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;

    /* ===== Spacing ===== */
    --space-xs: 0.25rem;
    /* 4px */
    --space-sm: 0.5rem;
    /* 8px */
    --space-md: 1rem;
    /* 16px */
    --space-lg: 1.5rem;
    /* 24px */
    --space-xl: 2rem;
    /* 32px */
    --space-2xl: 3rem;
    /* 48px */
    --space-3xl: 4rem;
    /* 64px */
    --space-4xl: 6rem;
    /* 96px */

    /* ===== Layout ===== */
    --container-max: 1280px;
    --container-padding: 1.5rem;
    --header-height: 70px;
    --sidebar-width: 300px;

    /* ===== Border Radius ===== */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* ===== Transitions ===== */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* ===== Z-Index ===== */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
}

/* ===== Light Theme Override ===== */
[data-theme="light"] {
    --bg-primary: #f5f5f8;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8f0;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f0f5;

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a60;
    --text-muted: #8a8aa0;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-color-light: rgba(0, 0, 0, 0.12);

    --shadow-sm: 0 2px 8px 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);

    --gradient-dark: linear-gradient(180deg, #f5f5f8 0%, #e8e8f0 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f0f0f5 100%);
}