/* =====================================================
   CSS VARIABLES & COLOR SYSTEM
   Professional, Modern & Accessible Color Palette
   Light Theme Default with Dark Mode Support
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');
 
:root {
    /* === Primary Brand Colors (Teal/Mint Based) === */
    --primary: #05d6c1;
    --primary-light: #3de0d0;
    --primary-dark: #04a99a;
    --primary-50: #e0fbf8;
    --primary-100: #b3f5ef;
    --primary-200: #8aeee5;
    --primary-500: #05d6c1;
    --primary-600: #05c4b1;
    --primary-700: #04a99a;

    /* === Secondary Accent (Highlight Teal) === */
    --secondary: #3de0d0;
    --secondary-light: #6be8dc;
    --secondary-dark: #04a99a;

    /* === Success Colors === */
    --success: #04a99a;
    --success-light: #3de0d0;
    --success-dark: #038a7e;
    --success-bg: rgba(5, 214, 193, 0.1);

    /* === Warning Colors (Notification Orange) === */
    --warning: #FF6E00;
    --warning-light: #ff8c33;
    --warning-dark: #e66200;
    --warning-bg: rgba(255, 110, 0, 0.1);

    /* === Error Colors (Liked Red) === */
    --error: #E61E1E;
    --error-light: #ff4d4d;
    --error-dark: #cc1a1a;
    --error-bg: rgba(230, 30, 30, 0.1);
    
    /* === Rating Colors === */
    --rating: #FFDD00;

    /* === Light Theme (Default) === */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9F9F9;
    --bg-tertiary: #F6F6F6;
    --bg-card: #F9F9F9;
    --bg-card-hover: #F6F6F6;
    --bg-elevated: #F6F6F6;
    --bg-input: #FFFFFF;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    --bg-card-custom1: #dbdbdb71;
    --bg-card-custom2: #dbdbdb88;
    --primary-half: #05d6c180;

    /* === Border Colors === */
    --border-primary: rgba(0, 0, 0, 0.08);
    --border-secondary: rgba(0, 0, 0, 0.12);
    --border-hover: rgba(0, 0, 0, 0.18);
    --border-focus: var(--primary);

    /* === Text Colors === */
    --text-primary: #000000;
    --text-secondary: #636363;
    --text-tertiary: #7B7B7B;
    --text-muted: #B9B9B9;
    --text-inverse: #FFFFFF;
    --text-highlight: #05d6c1;
    
    /* === Header & UI Colors === */
    --header-icon: #636363;
    --header-btn-bg: #F6F6F6;
    --inactive: #636363;
    --active: #05d6c1;

    /* === Gradient Definitions === */
    --gradient-primary: linear-gradient(135deg, #05d6c1 0%, #04a99a 100%);
    --gradient-hero: linear-gradient(135deg, #05d6c1 0%, #3de0d0 100%);
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
    --gradient-accent: linear-gradient(135deg, #3de0d0 0%, #05d6c1 100%);
    --gradient-success: linear-gradient(135deg, #3de0d0 0%, #04a99a 100%);
    --gradient-gold: linear-gradient(135deg, #FFDD00 0%, #e6c700 100%);

    /* === Shadows === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(5, 214, 193, 0.25);
    --shadow-glow-lg: 0 0 60px rgba(5, 214, 193, 0.3);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.12);

    /* === Header Background === */
    --header-bg: rgba(255, 255, 255, 0.95);
    --footer-bg: linear-gradient(180deg, #2d3748 0%, #1a202c 100%);
    
    /* === Icon Filters === */
    --icon-filter: brightness(0) saturate(100%) invert(40%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(95%) contrast(90%);
    /* Primary color filter for teal #05d6c1 */
    --icon-filter-primary: brightness(0) saturate(100%) invert(70%) sepia(52%) saturate(1000%) hue-rotate(130deg) brightness(95%) contrast(95%);

    /* === Typography === */ 
    /* === Font Sizes === */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;

    /* === Font Weights === */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* === Line Heights === */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;

    /* === Spacing Scale === */
    --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;

    /* === Border Radius === */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.25rem;
    --radius-3xl: 1.5rem;
    --radius-full: 9999px;

    /* === Transitions === */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* === Z-Index Scale === */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-tooltip: 600;
    --z-toast: 700;

    /* === Container Widths === */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1400px;

    /* === Header Height === */
    --header-height: 70px;
    --header-height-mobile: 60px;












        /* Enhanced Typography */
    --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Animation Timing */
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    
    /* Enhanced Shadows */
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    --shadow-elevated: 0 24px 48px -12px rgba(0, 0, 0, 0.18);
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.08); 
}

/* === Scrollbar Styling === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-secondary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* === Selection Colors === */
::selection {
    background: var(--primary);
    color: #ffffff;
}

::-moz-selection {
    background: var(--primary);
    color: #ffffff;
}

/* === Theme Transition === */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.3s ease, 
                border-color 0.3s ease, 
                color 0.3s ease,
                box-shadow 0.3s ease !important;
}

/* =====================================================
   DARK THEME
   Applied when [data-theme="dark"] is on html element
   ===================================================== */
[data-theme="dark"] {
    /* === Dark Theme Background Colors === */
    --bg-primary: #0f1115;
    --bg-secondary: #161a1f;
    --bg-tertiary: #1c2127;
    --bg-card: #1a1f25;
    --bg-card-hover: #222830;
    --bg-elevated: #252b33;
    --bg-input: #1a1f25;
    --bg-overlay: rgba(0, 0, 0, 0.7);
    --bg-card-custom1: #252B34;
    --bg-card-custom2: #1F242C;
    --primary-half: #05d6c180;

    /* === Dark Theme Border Colors === */
    --border-primary: rgba(255, 255, 255, 0.08);
    --border-secondary: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(5, 214, 193, 0.3);

    /* === Dark Theme Text Colors === */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --text-muted: rgba(255, 255, 255, 0.4);
    --text-inverse: #0f1115;
    --text-highlight: #05d6c1;
    
    /* === Dark Theme UI Colors === */
    --header-icon: rgba(255, 255, 255, 0.7);
    --header-btn-bg: #252b33;
    --inactive: rgba(255, 255, 255, 0.5);
    --active: #05d6c1;

    /* === Dark Theme Gradients === */
    --gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);

    /* === Dark Theme Shadows === */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-elevated: 0 16px 48px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px rgba(5, 214, 193, 0.2);
    --shadow-glow-lg: 0 0 60px rgba(5, 214, 193, 0.25);

    /* === Dark Theme Header === */
    --header-bg: rgba(15, 17, 21, 0.9);
    --footer-bg: linear-gradient(180deg, #161a1f 0%, #0f1115 100%);
    
    /* === Dark Theme Icon Filters === */
    --icon-filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%) contrast(100%);
}
