/* ====================================
   HAYDI DERSE - MODERN RESPONSIVE CSS
   Superprof & Ogretsen Inspired Design
   ==================================== */

/* CSS Variables - Modern Color Palette */
:root {
    /* Primary Colors - Vibrant Orange */
    --primary-color: #FF6B35;
    --primary-light: #FF8A5B;
    --primary-dark: #E55A25;
    
    /* Secondary Colors - Deep Blue */
    --secondary-color: #1E3A5F;
    --secondary-light: #2D5A8A;
    --secondary-dark: #0F1F33;
    
    /* Accent Colors */
    --accent-color: #4ECDC4;
    --accent-light: #7EDDD6;
    
    /* Semantic Colors */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    
    /* Neutral Colors */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* Text Colors */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    
    /* Background */
    --bg-primary: #FFFFFF;
    --bg-secondary: #F8FAFC;
    --bg-tertiary: #F1F5F9;
    
    /* Border */
    --border-color: #E5E7EB;
    --border-light: #F3F4F6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Font Family */
    --font-sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Import Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====================================
   MODERN NAVIGATION BAR
   ==================================== */

.nav {
    background: var(--bg-primary);
    padding: 0 24px;
    height: 72px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.nav.scrolled {
    box-shadow: var(--shadow-md);
    height: 64px;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: transform var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.02);
}

.nav-left ul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-left ul li a {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.nav-left ul li a:hover {
    color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.08);
}

.nav-left ul li a[style*="background: #ff8c00"],
.nav-left ul li a.highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
    color: white !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.nav-left ul li a[style*="background: #ff8c00"]:hover,
.nav-left ul li a.highlight:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Modern Dropdown Buttons */
.register-dropdown,
.login-dropdown {
    position: relative;
}

.register-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    background: var(--secondary-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
}

.login-btn:hover {
    background: var(--secondary-dark);
    color: white;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-light);
    padding: 8px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
}

.register-dropdown:hover .dropdown-content,
.login-dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.dropdown-content a:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

.dropdown-content a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    color: var(--gray-400);
}

.dropdown-content a:hover i {
    color: var(--primary-color);
}

/* ====================================
   MOBILE SLIDE MENU
   ==================================== */

.slide-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-primary);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    transition: left var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.slide-menu.active {
    left: 0;
}

.slide-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
}

.slide-menu-logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.slide-menu-close {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.slide-menu-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.slide-menu-nav {
    flex: 1;
    padding: 16px;
}

.slide-menu-nav a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--radius-lg);
    margin-bottom: 4px;
    transition: all var(--transition-fast);
}

.slide-menu-nav a:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

.slide-menu-nav a i {
    font-size: 18px;
    width: 24px;
    text-align: center;
    color: var(--gray-500);
}

.slide-menu-nav a:hover i {
    color: var(--primary-color);
}

.slide-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.slide-menu-auth-section h4 {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.slide-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    transition: all var(--transition-fast);
    width: 100%;
}

.slide-menu-btn.register {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.slide-menu-btn.login {
    background: var(--gray-100);
    color: var(--text-primary);
}

.slide-menu-btn.login:hover {
    background: var(--gray-200);
}

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    backdrop-filter: blur(4px);
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Menu Button (FAB) */
.fab-menu {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1000;
}

.fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all var(--transition-fast);
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.5);
}

/* ====================================
   MODERN HERO SECTION
   ==================================== */

.hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 50%, #3D6A9F 100%);
    color: white;
    padding: 80px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: clamp(16px, 2.5vw, 20px);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero .button {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-xl);
    transition: all var(--transition-fast);
}

.hero .button.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.4);
}

.hero .button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.5);
}

.hero .button.secondary {
    background: white;
    color: var(--secondary-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.hero .button.secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ====================================
   FEATURES SECTION
   ==================================== */

.features {
    padding: 80px 24px;
    background: var(--bg-secondary);
}

.features h2 {
    text-align: center;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ====================================
   RESPONSIVE MEDIA QUERIES
   ==================================== */

/* Tablet Landscape & Small Desktop */
@media (max-width: 1024px) {
    .nav {
        padding: 0 20px;
    }
    
    .nav-left ul {
        gap: 4px;
    }
    
    .nav-left ul li a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    /* Navigation - Hide desktop menu, show mobile menu */
    .nav {
        height: 64px;
        padding: 0 16px;
    }
    
    .nav-left ul {
        display: none !important;
    }
    
    .nav-right .register-dropdown,
    .nav-right .login-dropdown {
        display: none !important;
    }
    
    .fab-menu {
        display: block !important;
    }
    
    .slide-menu {
        display: flex;
    }
    
    /* Hero adjustments */
    .hero {
        padding: 60px 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }
    
    .hero .button {
        justify-content: center;
    }
    
    /* Features */
    .features {
        padding: 60px 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Section adjustments */
    .haydi-koc-section,
    .haydi-katil-section,
    .teachers-league-section {
        padding: 40px 16px;
    }
    
    .koc-packages-grid {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
    
    .koc-package-card {
        margin: 0 !important;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .nav {
        height: 60px;
        padding: 0 12px;
    }
    
    .nav-logo {
        height: 40px;
    }
    
    .hero {
        padding: 40px 16px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .features {
        padding: 40px 16px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .feature-icon {
        font-size: 36px;
    }
    
    /* Package cards mobile */
    .koc-package-card {
        padding: 20px !important;
    }
    
    .package-price {
        font-size: 28px !important;
    }
    
    /* Teachers League mobile */
    .league-tools {
        flex-direction: column;
        gap: 12px;
    }
    
    .tools-left,
    .tools-right {
        width: 100%;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
    }
}

/* Very Small Mobile */
@media (max-width: 360px) {
    .nav {
        padding: 0 8px;
    }
    
    .nav-logo {
        height: 36px;
    }
    
    .hero h1 {
        font-size: 22px;
    }
    
    .slide-menu {
        width: 90%;
    }
}

/* ====================================
   ANIMATIONS
   ==================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Apply animations */
.feature-card {
    animation: fadeInUp 0.6s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }
.feature-card:nth-child(4) { animation-delay: 0.4s; }

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none !important; }
.visible { display: block !important; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }

.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

.p-4 { padding: 16px; }
.p-8 { padding: 32px; }

.rounded { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: var(--radius-full); }

.shadow { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }

.bg-primary { background-color: var(--primary-color); }
.bg-secondary { background-color: var(--secondary-color); }
.bg-white { background-color: white; }
.bg-gray { background-color: var(--bg-secondary); }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--secondary-color); }
.text-white { color: white; }
.text-gray { color: var(--text-secondary); }

