/* ============================================
   e-ŞEHIR SUNUM2 - GELİŞMİŞ TEMA SİSTEMİ
   5 Farklı Tema + Glassmorphism + Windows 12
   Kapsamlı Renk Yönetimi + Tüm Bileşenler Uyumlu
   ============================================ */

:root {
    /* Tema değişkenleri - Dinamik olarak değişir */
    --primary-color: #667eea;
    --primary-light: #8899f2;
    --primary-dark: #4f5ed1;
    --secondary-color: #764ba2;
    --secondary-light: #9a6bc5;
    --secondary-dark: #5a3783;
    
    /* Gradients */
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hover: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
    --gradient-vertical: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    --gradient-radial: radial-gradient(circle, #667eea 0%, #764ba2 100%);
    
    /* Semantic Colors */
    --success-color: #38ef7d;
    --success-bg: rgba(56, 239, 125, 0.1);
    --warning-color: #feca57;
    --warning-bg: rgba(254, 202, 87, 0.1);
    --danger-color: #ff6b6b;
    --danger-bg: rgba(255, 107, 107, 0.1);
    --info-color: #4facfe;
    --info-bg: rgba(79, 172, 254, 0.1);
    
    /* Text Colors */
    --text-primary: #2c3e50;
    --text-secondary: #546e7a;
    --text-muted: #95a5a6;
    --text-on-primary: #ffffff;
    --text-on-gradient: #ffffff;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #ecf0f1;
    --bg-overlay: rgba(0, 0, 0, 0.5);
    
    /* Border Colors */
    --border-color: #e0e6ed;
    --border-light: #f0f4f8;
    --border-dark: #d1d9e0;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-light: rgba(255, 255, 255, 0.25);
    --glass-bg-dark: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: rgba(0, 0, 0, 0.1);
    --glass-blur: 12px;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI Light', 'Helvetica Neue', sans-serif;
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    
    /* Font Sizes */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 2rem;
    --font-4xl: 2.5rem;
    --font-5xl: 3rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Shadows */
    --shadow-xs: 0 1px 2px var(--glass-shadow);
    --shadow-sm: 0 2px 8px var(--glass-shadow);
    --shadow-md: 0 4px 16px var(--glass-shadow);
    --shadow-lg: 0 8px 32px var(--glass-shadow);
    --shadow-xl: 0 16px 64px var(--glass-shadow);
    --shadow-2xl: 0 24px 96px var(--glass-shadow);
    --shadow-glow: 0 0 20px var(--primary-color);
    
    /* Z-Index Layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    --z-notification: 1080;
    --z-theme-switcher: 9999;
}

/* ============================================
   TEMA 1: MAVİ OKYANUS
   Modern, profesyonel, güvenilir
   ============================================ */
[data-theme="blue"] {
    /* Primary Colors */
    --primary-color: #667eea;
    --primary-light: #8899f2;
    --primary-dark: #4f5ed1;
    --secondary-color: #764ba2;
    --secondary-light: #9a6bc5;
    --secondary-dark: #5a3783;
    
    /* Gradients */
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hover: linear-gradient(135deg, #5568d3 0%, #653a8b 100%);
    --gradient-vertical: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    --gradient-radial: radial-gradient(circle, #667eea 0%, #764ba2 100%);
    
    /* Text */
    --text-primary: #2c3e50;
    --text-secondary: #546e7a;
    --text-muted: #95a5a6;
    --text-on-primary: #ffffff;
    --text-on-gradient: #ffffff;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #ecf0f1;
    
    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.25);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.5);
}

[data-theme="blue"] .hero-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

/* ============================================
   TEMA 2: MOR RÜYA
   Yaratıcı, lüks, sofistike
   ============================================ */
[data-theme="purple"] {
    /* Primary Colors */
    --primary-color: #8E2DE2;
    --primary-light: #a855f7;
    --primary-dark: #6b21a8;
    --secondary-color: #4A00E0;
    --secondary-light: #6d28d9;
    --secondary-dark: #3b00b3;
    
    /* Gradients */
    --gradient: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
    --gradient-hover: linear-gradient(135deg, #7a1fcf 0%, #3a00c7 100%);
    --gradient-vertical: linear-gradient(180deg, #8E2DE2 0%, #4A00E0 100%);
    --gradient-radial: radial-gradient(circle, #8E2DE2 0%, #4A00E0 100%);
    
    /* Text */
    --text-primary: #2d1b4e;
    --text-secondary: #5b4876;
    --text-muted: #9d89b8;
    --text-on-primary: #ffffff;
    --text-on-gradient: #ffffff;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f5fc;
    --bg-tertiary: #f0ebf7;
    
    /* Glass */
    --glass-bg: rgba(142, 45, 226, 0.1);
    --glass-border: rgba(142, 45, 226, 0.2);
    --shadow-glow: 0 0 30px rgba(142, 45, 226, 0.6);
}

[data-theme="purple"] .hero-section {
    background: linear-gradient(135deg, rgba(142, 45, 226, 0.9) 0%, rgba(74, 0, 224, 0.9) 100%);
}

/* ============================================
   TEMA 3: YEŞİL DOĞA
   Doğal, sürdürülebilir, canlı
   ============================================ */
[data-theme="green"] {
    /* Primary Colors */
    --primary-color: #11998e;
    --primary-light: #14b8a6;
    --primary-dark: #0d7a71;
    --secondary-color: #38ef7d;
    --secondary-light: #4ade80;
    --secondary-dark: #22c55e;
    
    /* Gradients */
    --gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-hover: linear-gradient(135deg, #0d7f76 0%, #2dd968 100%);
    --gradient-vertical: linear-gradient(180deg, #11998e 0%, #38ef7d 100%);
    --gradient-radial: radial-gradient(circle, #11998e 0%, #38ef7d 100%);
    
    /* Text */
    --text-primary: #1e3a2f;
    --text-secondary: #3d5a4f;
    --text-muted: #7a9d8e;
    --text-on-primary: #ffffff;
    --text-on-gradient: #ffffff;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #f0fdf4;
    --bg-tertiary: #dcfce7;
    
    /* Glass */
    --glass-bg: rgba(17, 153, 142, 0.12);
    --glass-border: rgba(17, 153, 142, 0.25);
    --shadow-glow: 0 0 30px rgba(56, 239, 125, 0.5);
}

[data-theme="green"] .hero-section {
    background: linear-gradient(135deg, rgba(17, 153, 142, 0.9) 0%, rgba(56, 239, 125, 0.9) 100%);
}

/* ============================================
   TEMA 4: TURUNCU ATEŞ
   Enerjik, dinamik, sıcak
   ============================================ */
[data-theme="orange"] {
    /* Primary Colors */
    --primary-color: #FF512F;
    --primary-light: #ff6b4a;
    --primary-dark: #e63f1f;
    --secondary-color: #F09819;
    --secondary-light: #fbbf24;
    --secondary-dark: #d68410;
    
    /* Gradients */
    --gradient: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
    --gradient-hover: linear-gradient(135deg, #e63f1f 0%, #d68410 100%);
    --gradient-vertical: linear-gradient(180deg, #FF512F 0%, #F09819 100%);
    --gradient-radial: radial-gradient(circle, #FF512F 0%, #F09819 100%);
    
    /* Text */
    --text-primary: #431407;
    --text-secondary: #6c2811;
    --text-muted: #a0522d;
    --text-on-primary: #ffffff;
    --text-on-gradient: #ffffff;
    
    /* Backgrounds */
    --bg-primary: #ffffff;
    --bg-secondary: #fff7ed;
    --bg-tertiary: #ffedd5;
    
    /* Glass */
    --glass-bg: rgba(255, 81, 47, 0.1);
    --glass-border: rgba(255, 81, 47, 0.2);
    --shadow-glow: 0 0 30px rgba(255, 81, 47, 0.5);
}

[data-theme="orange"] .hero-section {
    background: linear-gradient(135deg, rgba(255, 81, 47, 0.9) 0%, rgba(240, 152, 25, 0.9) 100%);
}

/* ============================================
   TEMA 5: KARANLIK MOD
   Zarif, modern, göz dostu
   ============================================ */
[data-theme="dark"] {
    /* Primary Colors */
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --secondary-light: #a78bfa;
    --secondary-dark: #7c3aed;
    
    /* Gradients */
    --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --gradient-vertical: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-radial: radial-gradient(circle, #6366f1 0%, #8b5cf6 100%);
    
    /* Text */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-on-primary: #ffffff;
    --text-on-gradient: #ffffff;
    
    /* Backgrounds */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    
    /* Borders */
    --border-color: #334155;
    --border-light: #475569;
    --border-dark: #1e293b;
    
    /* Glass */
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-bg-light: rgba(30, 41, 59, 0.6);
    --glass-bg-dark: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4);
    
    /* Semantic Colors - Dark variants */
    --success-bg: rgba(56, 239, 125, 0.15);
    --warning-bg: rgba(254, 202, 87, 0.15);
    --danger-bg: rgba(255, 107, 107, 0.15);
    --info-bg: rgba(79, 172, 254, 0.15);
}

[data-theme="dark"] .hero-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%),
                linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] body {
    background: #0f172a;
    color: #f8fafc;
}

[data-theme="dark"] .glass-card {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .card,
[data-theme="dark"] .module-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline {
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--bg-tertiary);
}

/* ============================================
   GLOBAL STYLING
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: #f5f7fa;
    overflow-x: hidden;
    transition: background var(--transition-normal), color var(--transition-normal);
}

/* ============================================
   TEMA GEÇIŞ BUTONU - Geliştirilmiş
   ============================================ */
.theme-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-theme-switcher);
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    padding: 16px;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.theme-switcher:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.theme-switcher-label {
    font-size: var(--font-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 4px;
}

.theme-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.theme-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-lg);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.theme-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.theme-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: var(--font-sm);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    font-weight: 500;
}

.theme-btn:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-md);
}

.theme-btn:hover::before {
    opacity: 1;
}

.theme-btn:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.theme-btn.active {
    border-color: #fff;
    box-shadow: var(--shadow-glow), var(--shadow-lg);
    transform: scale(1.2);
}

.theme-btn.active::after {
    font-weight: 700;
}

/* Tema buton renkleri */
.theme-btn[data-theme="blue"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-btn[data-theme="purple"] {
    background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%);
}

.theme-btn[data-theme="green"] {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.theme-btn[data-theme="orange"] {
    background: linear-gradient(135deg, #FF512F 0%, #F09819 100%);
}

.theme-btn[data-theme="dark"] {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .theme-switcher {
        top: 10px;
        right: 10px;
        padding: 12px;
        gap: 8px;
    }
    
    .theme-btn {
        width: 36px;
        height: 36px;
    }
    
    .theme-btn::after {
        display: none; /* Mobilde tooltip gizle */
    }
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient);
    border-radius: 6px;
    transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-hover);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.05);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--primary-color);
    color: var(--text-on-gradient);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-on-gradient);
}
