/* --- KONYAALTI YAZ OKULU - PREMIUM MODERN CSS --- */

:root {
    /* KURUMSAL RENKLER VE DEĞİŞKENLER */
    --primary-hue: 25; /* Turuncu tonu */
    --primary: hsl(var(--primary-hue), 95%, 55%);
    --primary-dark: hsl(var(--primary-hue), 100%, 45%);
    
    --secondary: #0f172a; /* Koyu lacivert */
    --text-dark: #334155;
    --text-light: #64748b;
    
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    
    /* Modern Degrade Renkler */
    --gradient-primary: linear-gradient(135deg, #f97316 0%, #fb923c 100%);

    /* Program Renkleri (Soft Tonlar) */
    --blue-soft: #e0f2fe; --blue-text: #0284c7;
    --orange-soft: #ffedd5; --orange-text: #ea580c;
    --purple-soft: #f3e8ff; --purple-text: #7c3aed;
    --red-soft: #fee2e2; --red-text: #dc2626;
    --green-soft: #d1fae5; --green-text: #059669;
    --cyan-soft: #cffafe; --cyan-text: #0891b2;

    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    --shadow-hover: 0 25px 50px -12px rgba(249, 115, 22, 0.25);
    
    --radius: 20px;
    --font-main: 'Outfit', sans-serif;
}

/* GENEL YAPILANDIRMA */
html { scroll-behavior: smooth; }
body {
    margin: 0; padding: 0;
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
*, *:before, *:after { box-sizing: border-box; }
a { text-decoration: none; color: inherit; transition: 0.3s ease; }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

/* TİPOGRAFİ */
h1, h2, h3, h4 { color: var(--secondary); font-weight: 800; line-height: 1.1; margin-top: 0; letter-spacing: -0.5px; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); margin-bottom: 25px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
h3 { font-size: 1.5rem; margin-bottom: 10px; }
p { margin-bottom: 20px; font-size: 1.1rem; color: var(--text-light); }

/* BUTONLAR */
.btn-primary, .nav-btn-cta {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    background: var(--gradient-primary);
    color: #fff !important;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none; cursor: pointer;
    position: relative; overflow: hidden;
}
.btn-primary:hover, .nav-btn-cta:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.5);
}
.btn-white-outline {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255,255,255,0.8);
    color: #fff !important;
    box-shadow: none;
}
.btn-white-outline:hover {
    background: #fff;
    color: var(--primary) !important;
}

/* HEADER - GLASSMORPHISM */
header {
    padding: 15px 0;
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 900; color: var(--secondary); display: flex; align-items: center; gap: 10px; letter-spacing: -1px; }
.logo i { color: var(--primary); font-size: 2.2rem; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-weight: 600; color: var(--secondary); font-size: 1rem; position: relative; }
.nav-links a:not(.nav-btn-cta):after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background: var(--primary); transition: width 0.3s;
}
.nav-links a:not(.nav-btn-cta):hover:after { width: 100%; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--secondary); }

/* HERO BÖLÜMÜ */
.hero {
    padding: 180px 0 160px;
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
    border-radius: 0 0 50px 50px;
    overflow: hidden;
    margin-bottom: 50px;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15,23,42,0.7), rgba(15,23,42,0.3));
    z-index: 1;
}
.hero-wrapper { position: relative; z-index: 2; max-width: 900px; margin: 0 auto; }
.hero h1 { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,0.2); }
.hero p { color: rgba(255,255,255,0.95); font-size: 1.35rem; font-weight: 300; max-width: 700px; margin: 0 auto 40px; }

/* KART TASARIMLARI (BENTO GRID) */
.programs-grid, .contact-grid, .blog-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; margin-top: 40px;
}
.program-card, .feature-box, .blog-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    transition: all 0.4s ease;
    display: flex; flex-direction: column;
}
.program-card:hover, .feature-box:hover, .blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(249, 115, 22, 0.1);
}
.icon-box {
    width: 70px; height: 70px;
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin-bottom: 25px;
    transition: 0.3s;
}
.feature-box:hover .icon-box { transform: rotate(10deg) scale(1.1); }

/* ANIMASYONLAR (SCROLL REVEAL) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* TABLO */
.table-wrapper { 
    overflow-x: auto; background: #fff; 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-md); 
    border: 1px solid #eee;
}
.schedule-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 800px; }
.schedule-table th { background: var(--secondary); color: #fff; padding: 20px; text-align: center; font-weight: 600; }
.schedule-table td { padding: 18px; text-align: center; border-bottom: 1px solid #f1f5f9; color: var(--text-dark); }
.schedule-table .time-col { background: #f8fafc; font-weight: 700; color: var(--primary); border-right: 1px solid #eee; }
.break-row { background: #fff7ed !important; color: #c2410c; font-weight: 700; }

/* FOOTER */
footer { background: var(--secondary); color: #fff; padding: 100px 0 40px; margin-top: 100px; border-radius: 50px 50px 0 0; }
footer a { color: #cbd5e1; transition: 0.3s; }
footer a:hover { color: var(--primary); }

/* DİĞER BİLEŞENLER (Video Modal, Whatsapp vb.) */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px;
    background: #25D366; color: white;
    width: 65px; height: 65px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000; transition: 0.3s;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accordion-item { border: 1px solid #eee; border-radius: 12px; margin-bottom: 15px; background: #fff; overflow: hidden; }
.accordion-header { width: 100%; padding: 20px; text-align: left; background: none; border: none; font-weight: 700; color: var(--secondary); cursor: pointer; display: flex; justify-content: space-between; font-size: 1.1rem; align-items: center;}
.accordion-content { max-height: 0; overflow: hidden; transition: 0.3s; background: #f8fafc; }
.accordion-content p { padding: 20px; margin: 0; }

.video-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.9); z-index: 2000; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.video-modal.active { display: flex; }
.video-modal-content { position: relative; width: 90%; max-width: 500px; }
.close-video { position: absolute; top: -40px; right: 0; color: #fff; font-size: 30px; cursor: pointer; }

/* RESPONSIVE */
@media (max-width: 992px) {
    h1 { font-size: 2.5rem; }
    .hero { padding: 120px 0 100px; border-radius: 0 0 30px 30px; }
    .mobile-menu-btn { display: block; }
    .nav-links { 
        display: none; position: absolute; top: 100%; left: 0; width: 100%;
        background: #fff; flex-direction: column; padding: 40px; gap: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1); border-top: 1px solid #eee;
    }
    .nav-links.active { display: flex; animation: slideDown 0.3s ease; }
    .nav-btn-cta { width: 100%; }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}