/* ============================================
   CSS VARIABLES - ANI.APP.RU THEME
   ============================================ */

:root {
    /* ============================================
       PRIMARY COLORS - Ani.ru style
       ============================================ */
    --primary: #ff4f6a;
    --primary-light: #ff6b82;
    --primary-dark: #ff3d5a;
    --primary-gradient: linear-gradient(135deg, #ff4f6a 0%, #ff6b82 100%);
    --primary-gradient-horizontal: linear-gradient(90deg, #ff4f6a 0%, #ff6b82 100%);

    /* ============================================
       BACKGROUND COLORS - Deep dark theme like ani.app.ru
       ============================================ */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f16;
    --bg-tertiary: #16161f;
    --bg-card: #14141f;
    --bg-card-hover: #1a1a25;
    --bg-elevated: #1e1e2a;
    --bg-glass: rgba(20, 20, 31, 0.8);
    --bg-glass-heavy: rgba(20, 20, 31, 0.95);
    --bg-hover: #1f1f2a;

    /* ============================================
       TEXT COLORS
       ============================================ */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-tertiary: #6a6a7a;
    --text-muted: #4a4a5a;
    --text-inverse: #0a0a0f;

    /* ============================================
       ACCENT COLORS
       ============================================ */
    --accent-green: #4ade80;
    --accent-green-dark: #22c55e;
    --accent-blue: #60a5fa;
    --accent-blue-dark: #3b82f6;
    --accent-purple: #a78bfa;
    --accent-purple-dark: #8b5cf6;
    --accent-orange: #fb923c;
    --accent-orange-dark: #f97316;
    --accent-pink: #f472b6;
    --accent-cyan: #22d3ee;

    /* ============================================
       RATING COLORS
       ============================================ */
    --rating-excellent: #4ade80;
    --rating-good: #84cc16;
    --rating-average: #fbbf24;
    --rating-poor: #f97316;
    --rating-bad: #f87171;

    /* ============================================
       AGE RATING COLORS
       ============================================ */
    --age-g: #4ade80;
    --age-pg: #22d3ee;
    --age-pg13: #fb923c;
    --age-r17: #f87171;
    --age-r: #ef4444;
    --age-rx: #a855f7;

    /* ============================================
       UI ELEMENTS
       ============================================ */
    --border-color: #2a2a3a;
    --border-light: #3a3a4a;
    --border-heavy: #4a4a5a;
    --divider: rgba(255, 255, 255, 0.08);

    /* ============================================
       SHADOWS - Multi-layer with glow
       ============================================ */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.7);
    --shadow-2xl: 0 20px 80px rgba(0, 0, 0, 0.8);

    /* Glow shadows */
    --shadow-glow-primary: 0 0 30px rgba(255, 79, 106, 0.4);
    --shadow-glow-green: 0 0 30px rgba(74, 222, 128, 0.3);
    --shadow-glow-blue: 0 0 30px rgba(96, 165, 250, 0.3);
    --shadow-glow-purple: 0 0 30px rgba(167, 139, 250, 0.3);

    /* ============================================
       BORDER RADIUS
       ============================================ */
    --radius-none: 0;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-3xl: 40px;
    --radius-full: 9999px;

    /* ============================================
       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;
    --space-24: 96px;

    /* ============================================
       TYPOGRAPHY
       ============================================ */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --text-xs: 12px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-lg: 16px;
    --text-xl: 18px;
    --text-2xl: 20px;
    --text-3xl: 24px;
    --text-4xl: 28px;
    --text-5xl: 32px;
    --text-6xl: 40px;
    --text-7xl: 48px;

    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;

    /* ============================================
       TRANSITIONS
       ============================================ */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ============================================
       Z-INDEX SCALE
       ============================================ */
    --z-base: 0;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-popover: 500;
    --z-tooltip: 600;
    --z-notification: 700;

    /* ============================================
       CONTAINER
       ============================================ */
    --container-max: 1440px;
    --container-narrow: 1200px;
    --container-wide: 1600px;

    /* ============================================
       HEADER
       ============================================ */
    --header-height: 64px;
    --header-height-mobile: 56px;

    /* ============================================
       BACKDROP FILTERS
       ============================================ */
    --backdrop-blur-sm: blur(4px);
    --backdrop-blur: blur(12px);
    --backdrop-blur-lg: blur(24px);
    --backdrop-saturate: saturate(180%);
}

/* ============================================
   DARK MODE SUPPORT (for future expansion)
   ============================================ */

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-base: 0ms;
        --transition-slow: 0ms;
        --transition-spring: 0ms;
    }
    
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
