/* ═══════════════════════════════════════════════════════════
   İbrahim Yeşil — CSS Design Tokens
   Tüm tasarım değişkenleri bu dosyada tanımlanır.
   ═══════════════════════════════════════════════════════════ */

:root {
    /* ─── Renk Paleti ───────────────────────────────────── */
    --color-bg-primary: #050505;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #111113;
    --color-bg-elevated: #1a1a1d;
    
    --color-surface: #161617;
    --color-surface-hover: #1e1e20;
    --color-surface-active: #252528;
    
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-hover: rgba(255, 255, 255, 0.15);
    --color-border-accent: rgba(41, 151, 255, 0.3);
    
    --color-accent: #2997ff;
    --color-accent-hover: #0071e3;
    --color-accent-light: rgba(41, 151, 255, 0.12);
    --color-accent-glow: rgba(41, 151, 255, 0.25);
    
    --color-gradient-start: #2997ff;
    --color-gradient-end: #6dd5ed;
    --color-gradient-accent: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-end));
    
    --color-text-primary: #f5f5f7;
    --color-text-secondary: #86868b;
    --color-text-tertiary: #6e6e73;
    --color-text-quaternary: #48484a;
    
    --color-success: #30d158;
    --color-warning: #ffd60a;
    --color-error: #ff453a;
    --color-info: #64d2ff;
    
    /* ─── Glassmorphism ─────────────────────────────────── */
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-bg-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 20px;
    --glass-blur-heavy: 40px;
    
    /* ─── Tipografi ──────────────────────────────────────── */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    
    --text-hero: clamp(3rem, 8vw, 7rem);
    --text-display: clamp(2.5rem, 5vw, 4.5rem);
    --text-h1: clamp(2rem, 4vw, 3rem);
    --text-h2: clamp(1.5rem, 3vw, 2.25rem);
    --text-h3: clamp(1.25rem, 2vw, 1.5rem);
    --text-h4: 1.125rem;
    --text-body: 1rem;
    --text-body-lg: 1.125rem;
    --text-small: 0.875rem;
    --text-xs: 0.75rem;
    
    --weight-light: 300;
    --weight-regular: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;
    --weight-extrabold: 800;
    
    --leading-tight: 1.1;
    --leading-snug: 1.25;
    --leading-normal: 1.5;
    --leading-relaxed: 1.75;
    
    --tracking-tight: -0.03em;
    --tracking-normal: 0;
    --tracking-wide: 0.05em;
    --tracking-wider: 0.1em;
    
    /* ─── Spacing ────────────────────────────────────────── */
    --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;
    --space-32: 8rem;
    --space-40: 10rem;
    
    --section-padding: clamp(4rem, 10vh, 8rem);
    --container-max: 1200px;
    --container-narrow: 800px;
    --container-wide: 1400px;
    --container-padding: clamp(1.5rem, 5vw, 3rem);
    
    /* ─── Border Radius ──────────────────────────────────── */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;
    
    /* ─── Shadows ─────────────────────────────────────────── */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px var(--color-accent-glow);
    --shadow-glow-sm: 0 0 20px var(--color-accent-glow);
    
    /* ─── Transitions ────────────────────────────────────── */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --duration-slower: 800ms;
    --duration-animation: 1200ms;
    
    /* ─── Z-Index ────────────────────────────────────────── */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-navbar: 500;
    --z-modal-backdrop: 900;
    --z-modal: 1000;
    --z-toast: 1100;
    --z-tooltip: 1200;
}

/* ─── Açık Mod (Light Mode) Tasarım Değişkenleri ────────────── */
html.light-mode {
    --color-bg-primary: #f8f9fa !important;
    --color-bg-secondary: #f1f3f5 !important;
    --color-bg-tertiary: #e9ecef !important;
    --color-bg-elevated: #ffffff !important;

    --color-text-primary: #111827 !important;
    --color-text-secondary: #4b5563 !important;
    --color-text-tertiary: #6b7280 !important;
    --color-text-quaternary: #9ca3af !important;
    
    --color-surface: #ffffff !important;
    --color-surface-hover: #f1f3f5 !important;
    --color-surface-active: #e9ecef !important;
    
    --color-border: rgba(0, 0, 0, 0.08) !important;
    --color-border-hover: rgba(0, 0, 0, 0.16) !important;
    
    --glass-bg: rgba(255, 255, 255, 0.7) !important;
    --glass-bg-hover: rgba(255, 255, 255, 0.9) !important;
    --glass-border: rgba(0, 0, 0, 0.08) !important;
}

html.light-mode body {
    background-color: #f8f9fa !important;
    color: #111827 !important;
}

html.light-mode .section--dark {
    background-color: #f1f3f5 !important;
}

html.light-mode .section--elevated {
    background-color: #e9ecef !important;
}

html.light-mode .card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

html.light-mode .card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .navbar.scrolled {
    background: rgba(255, 255, 255, 0.88) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

html.light-mode .footer {
    background-color: #f1f3f5 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}
