/* ===================================
   MODERN THEME VARIABLES
   Universal CSS variables for consistent theming
   Include this file in all pages using the modern theme
   =================================== */

:root {
    /* ==================
       COLOR SYSTEM
       ================== */

    /* Primary Colors */
    --primary-blue: #3b82f6;
    --primary-purple: #8b5cf6;
    --primary-cyan: #06b6d4;
    --primary-dark-blue: #1d4ed8;
    --primary-green: #10b981;

    /* Background Colors */
    --bg-light: #f8fafc;
    --bg-light-blue: #e0e7ff;
    --bg-gray: #f1f5f9;
    --bg-white: #ffffff;
    --bg-white-glass: rgba(255, 255, 255, 0.8);

    /* Text Colors */
    --text-dark: #1e293b;
    --text-medium: #64748b;
    --text-light: #94a3b8;
    --text-white: #ffffff;

    /* Border Colors */
    --border-light: rgba(255, 255, 255, 0.3);
    --border-blue: rgba(59, 130, 246, 0.3);

    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #06b6d4;

    /* ==================
       GRADIENT PRESETS
       ================== */

    /* Background Gradients */
    --gradient-hero-bg: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    --gradient-section-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    --gradient-card-bg: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);

    /* Text Gradients */
    --gradient-text-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-text-secondary: linear-gradient(135deg, #3b82f6, #8b5cf6);

    /* Button Gradients */
    --gradient-btn-primary: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --gradient-btn-secondary: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);

    /* Border Gradients */
    --gradient-border-primary: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    --gradient-border-secondary: linear-gradient(90deg, #3b82f6, #8b5cf6);

    /* Mesh Backgrounds */
    --gradient-mesh-1: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
    --gradient-mesh-2: radial-gradient(circle at 80% 20%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    --gradient-mesh-3: radial-gradient(circle at 40% 80%, rgba(34, 197, 94, 0.15) 0%, transparent 50%);

    /* ==================
       SPACING SYSTEM
       ================== */

    /* Container Spacing */
    --container-max-width: 1280px;
    --container-padding: 20px;
    --container-padding-lg: 30px;
    --container-padding-sm: 15px;

    /* Section Spacing */
    --section-padding: 100px 0;
    --section-padding-sm: 60px 0;
    --hero-padding: 120px 0 80px;
    --hero-padding-sm: 100px 0 60px;

    /* Component Spacing */
    --card-padding: 2rem;
    --card-padding-sm: 1.5rem;
    --button-padding: 1rem 2rem;
    --button-padding-sm: 0.75rem 1.5rem;

    /* Gap Spacing */
    --gap-xs: 0.5rem;
    --gap-sm: 1rem;
    --gap-md: 1.5rem;
    --gap-lg: 2rem;
    --gap-xl: 3rem;
    --gap-2xl: 4rem;

    /* ==================
       TYPOGRAPHY SYSTEM
       ================== */

    /* Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* 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;

    /* Responsive Font Sizes */
    --hero-title-size: clamp(2.5rem, 6vw, 4rem);
    --section-title-size: clamp(2rem, 4vw, 3rem);
    --card-title-size: clamp(1.25rem, 2vw, 1.5rem);

    /* Line Heights */
    --leading-tight: 1.1;
    --leading-normal: 1.5;
    --leading-relaxed: 1.6;
    --leading-loose: 1.8;

    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* ==================
       BORDER RADIUS
       ================== */

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 50%;

    /* ==================
       SHADOWS
       ================== */

    /* Card Shadows */
    --shadow-card: 0 10px 40px rgba(59, 130, 246, 0.1), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
    --shadow-card-hover: 0 20px 60px rgba(59, 130, 246, 0.2), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
    --shadow-card-featured: 0 25px 50px rgba(59, 130, 246, 0.25), 0 1px 0 rgba(255, 255, 255, 0.6) inset;

    /* Button Shadows */
    --shadow-btn: 0 4px 15px rgba(59, 130, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    --shadow-btn-hover: 0 8px 25px rgba(59, 130, 246, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);

    /* Element Shadows */
    --shadow-sm: 0 2px 8px rgba(59, 130, 246, 0.1);
    --shadow-md: 0 4px 12px rgba(59, 130, 246, 0.15);
    --shadow-lg: 0 8px 24px rgba(59, 130, 246, 0.2);
    --shadow-xl: 0 12px 40px rgba(59, 130, 246, 0.25);

    /* ==================
       TRANSITIONS
       ================== */

    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.4s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    /* ==================
       Z-INDEX LAYERS
       ================== */

    --z-background: 0;
    --z-content: 10;
    --z-card: 20;
    --z-dropdown: 100;
    --z-overlay: 500;
    --z-modal: 1000;
    --z-navigation: 1100;
    --z-tooltip: 1200;

    /* ==================
       BACKDROP FILTERS
       ================== */

    --backdrop-blur-sm: blur(10px);
    --backdrop-blur-md: blur(20px) saturate(180%);
    --backdrop-blur-lg: blur(30px) saturate(200%);

    /* ==================
       ANIMATION DURATIONS
       ================== */

    --duration-fast: 0.2s;
    --duration-normal: 0.6s;
    --duration-slow: 0.8s;
    --duration-float: 20s;
    --duration-orb: 15s;

    /* ==================
       BREAKPOINTS
       (for reference in media queries)
       ================== */

    --breakpoint-xs: 480px;
    --breakpoint-sm: 768px;
    --breakpoint-md: 968px;
    --breakpoint-lg: 1200px;
    --breakpoint-xl: 1400px;
}

/* ==================
   UTILITY CLASSES
   ================== */

/* Text Utilities */
.text-gradient-primary {
    background: var(--gradient-text-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: var(--gradient-text-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Utilities */
.bg-gradient-hero {
    background: var(--gradient-hero-bg);
}

.bg-gradient-section {
    background: var(--gradient-section-bg);
}

.bg-glass {
    background: var(--bg-white-glass);
    backdrop-filter: var(--backdrop-blur-md);
    -webkit-backdrop-filter: var(--backdrop-blur-md);
}

/* Border Utilities */
.border-gradient-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-border-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
}

/* Shadow Utilities */
.shadow-card {
    box-shadow: var(--shadow-card);
}

.shadow-card-hover {
    box-shadow: var(--shadow-card-hover);
}

/* Transition Utilities */
.transition-smooth {
    transition: all var(--transition-smooth);
}

.transition-bounce {
    transition: all var(--transition-bounce);
}

/* Layout Utilities */
.container-modern {
    max-width: var(--container-max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    box-sizing: border-box;
}

/* Responsive Utilities */
@media (max-width: 1400px) {
    .container-modern {
        padding: 0 var(--container-padding-lg);
    }
}

@media (max-width: 968px) {
    .container-modern {
        padding: 0 var(--container-padding);
    }
}

@media (max-width: 768px) {
    .container-modern {
        padding: 0 var(--container-padding-sm);
    }
}