/* Common Styles for Flow Applications */

/* CSS Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Light Mode */
    --primary-color: #667eea;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --secondary-color: #06b6d4;
    --secondary-light: #22d3ee;
    --accent-green: #10b981;
    --accent-green-light: #34d399;
    --accent-purple: #8b5cf6;
    --accent-purple-light: #a78bfa;
    --accent-pink: #ec4899;
    --accent-orange: #f59e0b;
    
    /* Background colors - Light Mode */
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-glass: rgba(255, 255, 255, 0.25);
    --bg-card: rgba(255, 255, 255, 0.15);
    --bg-input: rgba(255, 255, 255, 0.1);
    
    /* Text colors - Light Mode */
    --text-white: rgba(255, 255, 255, 0.95);
    --text-light: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    
    /* Shadows - Light Mode */
    --shadow-sm: 0 2px 4px 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);
    --shadow-colored: 0 10px 15px rgba(102, 126, 234, 0.15);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
    
    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    
    /* 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;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 300ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    /* Color Palette - Dark Mode */
    --primary-color: #4f46e5;
    --primary-light: #6366f1;
    --primary-dark: #3730a3;
    --secondary-color: #0891b2;
    --secondary-light: #06b6d4;
    
    /* Background colors - Dark Mode */
    --bg-gradient: linear-gradient(135deg, #1e1b4b 0%, #3b2c5e 100%);
    --bg-glass: rgba(30, 27, 75, 0.4);
    --bg-card: rgba(30, 27, 75, 0.3);
    --bg-input: rgba(30, 27, 75, 0.2);
    
    /* Text colors - Dark Mode */
    --text-white: rgba(255, 255, 255, 0.95);
    --text-light: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    /* Shadows - Dark Mode */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
    --shadow-colored: 0 10px 15px rgba(79, 70, 229, 0.2);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.4);
}

/* Base styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-white);
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-8) var(--space-4);
    transition: background var(--transition-normal);
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin-bottom: var(--space-8);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 1vw; /* ekran genişliğine göre boşluk */
}

.logo-img {
  height: 6vw;         /* logo yüksekliği ekran genişliğinin %6’sı kadar */
  max-height: 48px;    /* çok büyümesini engellemek için tavan değer */
  min-height: 28px;    /* çok küçülmesini engellemek için taban değer */
  width: auto;         /* orantılı genişlik */
}

.logo-text {
  font-size: 2.2vw;    /* ekran genişliğine göre font büyüklüğü */
  max-font-size: 1.8rem;
  color: #1f2937;
  margin: 0;
}

@media (max-width: 640px) {
  .logo-img {
    height: 8vw;       /* mobilde biraz daha büyük görünsün */
  }
  .logo-text {
    font-size: 4.5vw;
  }
}




.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--text-white);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-2) var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.theme-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.theme-toggle-text {
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--text-light);
}

/* Navigation */
.nav-tabs {
    display: flex;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-3xl);
    padding: var(--space-1);
    margin: var(--space-6) 0;
    max-width: 600px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.nav-tab {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-2xl);
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    flex: 1;
    text-align: center;
    text-decoration: none;
}

.nav-tab:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.1);
}

.nav-tab.active {
    background: var(--accent-purple);
    color: white;
}

/* Main Content */
.main-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.card-header {
    margin-bottom: var(--space-6);
    text-align: center;
}

.card-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--text-white);
}

.card-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Sections */
.content-section {
    margin-bottom: var(--space-8);
}

.section-title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-white);
}

.section-content {
    color: var(--text-light);
}

.section-content p {
    margin-bottom: var(--space-4);
}

.section-content ul, .section-content ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.section-content li {
    margin-bottom: var(--space-2);
}

/* Footer */
.footer {
    margin-top: auto;
    width: 100%;
    max-width: 1000px;
    text-align: center;
    padding: var(--space-6) 0;
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.footer-link {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--text-white);
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    transition: background var(--transition-normal);
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-purple);
    top: 10%;
    left: 15%;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-dark);
    bottom: 10%;
    right: 15%;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-pink);
    top: 60%;
    left: 5%;
}

/* Responsive Styles */
@media (max-width: 768px) {
    body {
        padding: var(--space-4) var(--space-2);
    }
    
    .card {
        padding: var(--space-6) var(--space-4);
    }
    
    .card-title {
        font-size: var(--font-size-2xl);
    }
    
    .nav-tabs {
        flex-wrap: wrap;
    }
    
    .nav-tab {
        padding: var(--space-2);
    }
    
    .header {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .theme-toggle {
        margin-top: var(--space-2);
    }
}
