/**
 * Roxotech Theme - CSS Variables
 * Railway.app tarzı modern koyu tema
 * 
 * @package Roxotech
 * @since 1.0.0
 */

:root {
    
    /* ==========================================================================
       RENKLER - Colors
       ========================================================================== */
    
    /* Ana Arka Plan Renkleri */
    --color-bg-primary: #0a0a0a;
    --color-bg-secondary: #111111;
    --color-bg-tertiary: #171717;
    --color-bg-elevated: #1a1a1a;
    
    /* Kart ve Yüzey Renkleri (Glassmorphism) */
    --color-surface: rgba(255, 255, 255, 0.02);
    --color-surface-hover: rgba(255, 255, 255, 0.05);
    --color-surface-active: rgba(255, 255, 255, 0.08);
    --color-glass: rgba(255, 255, 255, 0.03);
    --color-glass-border: rgba(255, 255, 255, 0.06);
    
    /* Accent Renkler - Gradient için */
    --color-primary: #8b5cf6;          /* Purple */
    --color-primary-light: #a78bfa;
    --color-primary-dark: #7c3aed;
    
    --color-secondary: #3b82f6;        /* Blue */
    --color-secondary-light: #60a5fa;
    --color-secondary-dark: #2563eb;
    
    --color-accent: #06b6d4;           /* Cyan */
    --color-accent-light: #22d3ee;
    --color-accent-dark: #0891b2;
    
    /* Ek Accent Renkler */
    --color-success: #10b981;          /* Green */
    --color-warning: #f59e0b;          /* Amber */
    --color-error: #ef4444;            /* Red */
    --color-info: #3b82f6;             /* Blue */
    
    /* Metin Renkleri */
    --color-text-primary: #ffffff;
    --color-text-secondary: #d5d5d5;
    --color-text-tertiary: #a1a1a1;
    --color-text-muted: #6e6f9c;
    --color-text-inverse: #0a0a0a;
    
    /* Border Renkleri */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.12);
    --color-border-focus: rgba(139, 92, 246, 0.5);
    
    /* Gradient Tanımları */
    --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    --gradient-accent: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    --gradient-dark: linear-gradient(180deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 100%);
    --gradient-radial: radial-gradient(ellipse at center, var(--color-bg-secondary) 0%, var(--color-bg-primary) 70%);
    
    /* Hero Gradient (Animasyonlu) */
    --gradient-hero: linear-gradient(
        125deg,
        var(--color-bg-primary) 0%,
        rgba(139, 92, 246, 0.1) 25%,
        var(--color-bg-primary) 50%,
        rgba(59, 130, 246, 0.1) 75%,
        var(--color-bg-primary) 100%
    );
    
    /* Glow Efektleri */
    --glow-primary: 0 0 40px rgba(139, 92, 246, 0.3);
    --glow-secondary: 0 0 40px rgba(59, 130, 246, 0.3);
    --glow-accent: 0 0 40px rgba(6, 182, 212, 0.3);
    --glow-soft: 0 0 60px rgba(139, 92, 246, 0.15);
    
    /* ==========================================================================
       TİPOGRAFİ - Typography
       ========================================================================== */
    
    /* Font Ailesi */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-family-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', Consolas, monospace;
    
    /* Font Ağırlıkları */
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Font Boyutları - Fluid Typography */
    --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);      /* 12-14px */
    --font-size-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);         /* 14-16px */
    --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);      /* 16-18px */
    --font-size-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);         /* 18-20px */
    --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);        /* 20-24px */
    --font-size-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);         /* 24-32px */
    --font-size-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);     /* 30-40px */
    --font-size-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3rem);         /* 36-48px */
    --font-size-5xl: clamp(3rem, 2rem + 4vw, 4rem);                 /* 48-64px */
    --font-size-6xl: clamp(3.75rem, 2.5rem + 5vw, 5rem);            /* 60-80px */
    
    /* Satır Yükseklikleri */
    --line-height-none: 1;
    --line-height-tight: 1.15;
    --line-height-snug: 1.3;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 1.8;
    
    /* Harf Aralığı */
    --letter-spacing-tighter: -0.05em;
    --letter-spacing-tight: -0.025em;
    --letter-spacing-normal: 0;
    --letter-spacing-wide: 0.025em;
    --letter-spacing-wider: 0.05em;
    --letter-spacing-widest: 0.1em;
    
    /* ==========================================================================
       SPACING - Boşluklar
       ========================================================================== */
    
    --spacing-0: 0;
    --spacing-1: 0.25rem;    /* 4px */
    --spacing-2: 0.5rem;     /* 8px */
    --spacing-3: 0.75rem;    /* 12px */
    --spacing-4: 1rem;       /* 16px */
    --spacing-5: 1.25rem;    /* 20px */
    --spacing-6: 1.5rem;     /* 24px */
    --spacing-8: 2rem;       /* 32px */
    --spacing-10: 2.5rem;    /* 40px */
    --spacing-12: 3rem;      /* 48px */
    --spacing-16: 4rem;      /* 64px */
    --spacing-20: 5rem;      /* 80px */
    --spacing-24: 6rem;      /* 96px */
    --spacing-32: 8rem;      /* 128px */
    --spacing-40: 10rem;     /* 160px */
    --spacing-48: 12rem;     /* 192px */
    
    /* Section Padding */
    --section-padding-y: clamp(4rem, 8vw, 8rem);
    --section-padding-x: clamp(1rem, 5vw, 2rem);
    
    /* ==========================================================================
       LAYOUT - Düzen
       ========================================================================== */
    
    /* Container Genişlikleri */
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1440px;
    --container-max: 1600px;
    
    /* Grid */
    --grid-columns: 12;
    --grid-gap: var(--spacing-6);
    --grid-gap-lg: var(--spacing-8);
    
    /* Header */
    --header-height: 80px;
    --header-height-scrolled: 64px;
    
    /* ==========================================================================
       BORDER & RADIUS
       ========================================================================== */
    
    --border-width: 1px;
    --border-width-2: 2px;
    
    --radius-none: 0;
    --radius-sm: 0.25rem;    /* 4px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-3xl: 2rem;      /* 32px */
    --radius-full: 9999px;
    
    /* ==========================================================================
       SHADOWS
       ========================================================================== */
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* Colored Shadows */
    --shadow-primary: 0 10px 40px rgba(139, 92, 246, 0.2);
    --shadow-secondary: 0 10px 40px rgba(59, 130, 246, 0.2);
    
    /* ==========================================================================
       TRANSITIONS & ANIMATIONS
       ========================================================================== */
    
    /* Durations */
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 700ms;
    
    /* Easings */
    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.1, 0.25, 1);
    
    /* Common Transitions */
    --transition-fast: all var(--duration-fast) var(--ease-out);
    --transition-normal: all var(--duration-normal) var(--ease-out);
    --transition-slow: all var(--duration-slow) var(--ease-out);
    --transition-colors: color var(--duration-fast) var(--ease-out), 
                         background-color var(--duration-fast) var(--ease-out),
                         border-color var(--duration-fast) var(--ease-out);
    --transition-transform: transform var(--duration-normal) var(--ease-out);
    --transition-opacity: opacity var(--duration-normal) var(--ease-out);
    
    /* ==========================================================================
       Z-INDEX Scale
       ========================================================================== */
    
    --z-below: -1;
    --z-base: 0;
    --z-above: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-header: 400;
    --z-overlay: 500;
    --z-modal: 600;
    --z-popover: 700;
    --z-tooltip: 800;
    --z-max: 9999;
    
    /* ==========================================================================
       BREAKPOINTS (Reference - use in media queries)
       ========================================================================== */
    
    /* 
     * --breakpoint-sm: 640px;
     * --breakpoint-md: 768px;
     * --breakpoint-lg: 1024px;
     * --breakpoint-xl: 1280px;
     * --breakpoint-2xl: 1536px;
     */
    
    /* ==========================================================================
       COMPONENT SPECIFIC
       ========================================================================== */
    
    /* Buttons */
    --btn-padding-x: var(--spacing-6);
    --btn-padding-y: var(--spacing-3);
    --btn-padding-x-lg: var(--spacing-8);
    --btn-padding-y-lg: var(--spacing-4);
    --btn-padding-x-sm: var(--spacing-4);
    --btn-padding-y-sm: var(--spacing-2);
    --btn-radius: var(--radius-lg);
    --btn-font-weight: var(--font-weight-medium);
    
    /* Cards */
    --card-padding: var(--spacing-6);
    --card-padding-lg: var(--spacing-8);
    --card-radius: var(--radius-xl);
    --card-border: var(--border-width) solid var(--color-border);
    --card-bg: var(--color-glass);
    
    /* Inputs */
    --input-padding-x: var(--spacing-4);
    --input-padding-y: var(--spacing-3);
    --input-radius: var(--radius-lg);
    --input-border: var(--border-width) solid var(--color-border);
    --input-bg: var(--color-surface);
    
    /* Mega Menu */
    --mega-menu-width: 600px;
    --mega-menu-padding: var(--spacing-6);
    --mega-menu-radius: var(--radius-xl);
    
}

/* ==========================================================================
   DARK MODE (Default - already dark)
   ========================================================================== */

/* Tema zaten koyu, bu sadece referans için */
[data-theme="dark"],
.dark-theme {
    /* Variables already defined for dark theme */
}

/* ==========================================================================
   LIGHT MODE (Opsiyonel - gelecekte eklenebilir)
   ========================================================================== */

[data-theme="light"],
.light-theme {
    --color-bg-primary: #ffffff;
    --color-bg-secondary: #f8fafc;
    --color-bg-tertiary: #f1f5f9;
    --color-bg-elevated: #ffffff;
    
    --color-surface: rgba(0, 0, 0, 0.02);
    --color-surface-hover: rgba(0, 0, 0, 0.05);
    --color-glass: rgba(255, 255, 255, 0.8);
    --color-glass-border: rgba(0, 0, 0, 0.08);
    
    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-tertiary: #64748b;
    --color-text-muted: #94a3b8;
    
    --color-border: rgba(0, 0, 0, 0.08);
    --color-border-light: rgba(0, 0, 0, 0.12);
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

@media (prefers-reduced-motion: reduce) {
    :root {
        --duration-fast: 0ms;
        --duration-normal: 0ms;
        --duration-slow: 0ms;
        --duration-slower: 0ms;
    }
}
