:root {
    --ahbv-blue: #214591;
    --ahbv-green: #0a794f;
    --bg-light: #f4f7f9;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 1);
    --text-main: #1e293b;
    --text-muted: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', system-ui, sans-serif; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    background-image: radial-gradient(circle at 15% 10%, rgba(33, 69, 145, 0.08), transparent 35%),
                      radial-gradient(circle at 85% 40%, rgba(10, 121, 79, 0.08), transparent 35%),
                      radial-gradient(circle at 50% 90%, rgba(33, 69, 145, 0.05), transparent 40%);
    background-attachment: fixed;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.gradient-text {
    background: linear-gradient(135deg, var(--ahbv-blue), var(--ahbv-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary { background: linear-gradient(135deg, var(--ahbv-blue), var(--ahbv-green)); color: white; padding: 12px 28px; border-radius: 50px; text-decoration: none; font-weight: 600; border: none; cursor: pointer; transition: all 0.3s ease; display: inline-block; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(10, 121, 79, 0.2); color: white; }
.btn-outline { background: transparent; color: var(--ahbv-blue); border: 2px solid var(--ahbv-blue); padding: 10px 24px; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; display: inline-block; }
.btn-outline:hover { background: var(--ahbv-blue); color: white; }

section { padding: 80px 5%; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 50px; font-weight: 800; color: var(--ahbv-blue); }

.hero-split { display: flex; align-items: center; gap: 50px; min-height: 80vh; }
.hero-left { flex: 1; display: flex; justify-content: center; position: relative; }
.hero-left img { width: 100%; max-width: 700px; filter: drop-shadow(0 20px 30px rgba(33,69,145,0.15)); animation: float 6s ease-in-out infinite; }
.hero-right { flex: 1; }
.hero-right h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; color: var(--ahbv-blue); }
.hero-motto { font-size: 1.5rem; color: var(--ahbv-green); font-style: italic; margin-bottom: 25px; font-weight: 600; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.break-word { word-wrap: break-word; overflow-wrap: break-word; word-break: break-word; }
.blog-cover-img { width: 100%; height: 200px; border-radius: 12px; margin-bottom: 15px; background-size: cover; background-position: center; background-repeat: no-repeat; }

.event-card { padding: 30px; border-left: 5px solid var(--ahbv-blue); transition: all 0.3s ease; }
.event-card:hover { transform: translateY(-5px); border-left-color: var(--ahbv-green); box-shadow: 0 15px 35px rgba(0,0,0,0.08); }
.event-date { font-size: 2rem; font-weight: 800; color: var(--ahbv-green); line-height: 1; margin-bottom: 15px; }

.board-card { text-align: center; padding: 30px 20px; transition: transform 0.3s; }
.board-card:hover { transform: translateY(-5px); }
.board-img { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px auto; border: 4px solid white; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
.board-role { color: var(--ahbv-green); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; margin-top: 5px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.form-control { width: 100%; padding: 15px; background: rgba(255,255,255,0.8); border: 1px solid rgba(33,69,145,0.2); border-radius: 12px; color: var(--text-main); font-size: 1rem; transition: all 0.3s ease; }
.form-control:focus { outline: none; border-color: var(--ahbv-blue); background: #ffffff; box-shadow: 0 0 0 4px rgba(33,69,145,0.1); }
select.form-control { appearance: none; background-image: url('data:image/svg+xml;utf8,<svg fill="%23214591" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'); background-repeat: no-repeat; background-position-x: 96%; background-position-y: 50%; }

.horizontal-scroll { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 30px; padding: 20px 0; scrollbar-width: thin; scrollbar-color: var(--ahbv-blue) rgba(0,0,0,0.05); }
.horizontal-scroll::-webkit-scrollbar { height: 8px; }
.horizontal-scroll::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 10px; }
.horizontal-scroll::-webkit-scrollbar-thumb { background: var(--ahbv-blue); border-radius: 10px; }
.scroll-item { min-width: 320px; scroll-snap-align: center; flex-shrink: 0; }
.past-event { filter: grayscale(60%) blur(1.5px); opacity: 0.7; position: relative; transition: all 0.3s ease; }
.past-event::before { content: "Geçmiş Etkinlik"; position: absolute; top: -15px; right: 15px; background: #ef4444; color: white; padding: 5px 15px; border-radius: 20px; font-size: 0.8rem; font-weight: bold; z-index: 10; box-shadow: 0 4px 10px rgba(239, 68, 68, 0.3); }
.past-event:hover { filter: grayscale(0%) blur(0px); opacity: 1; }

/* --- SPOILER ALERT --- */
.spoiler-blur { position: relative; display: inline-block; background: rgba(33,69,145,0.1); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(33,69,145,0.2); border-radius: 8px; padding: 2px 10px; color: transparent; cursor: pointer; transition: 0.4s ease; overflow: hidden; user-select: none; min-width: 200px; text-align: center; }
.spoiler-blur.revealed { backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.3); color: var(--text-main); user-select: auto; }
.spoiler-warning { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--ahbv-blue); font-size: 0.85rem; font-weight: 800; width: 100%; pointer-events: none; transition: 0.3s opacity; }
.spoiler-blur.revealed .spoiler-warning { opacity: 0; }
.spoiler-content { opacity: 0; transition: 0.4s opacity; }
.spoiler-blur.revealed .spoiler-content { opacity: 1; }

/* --- BUKALEMUN MASKOT ANİMASYONU --- */
.chameleon-wrapper { position: absolute; top: 100%; margin-top: -7px; width: 95px; height: 95px; z-index: -1; pointer-events: none; animation: moveWrapper 50s linear infinite; }
.chameleon-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: auto; }
.mascot-right { animation: showRight 50s linear infinite; }
.mascot-left { animation: showLeft 50s linear infinite; }
@keyframes moveWrapper { 0% { left: calc(100% - 80px); } 49.9% { left: 20px; } 50% { left: 20px; } 99.9% { left: calc(100% - 80px); } 100% { left: calc(100% - 80px); } }
@keyframes showLeft { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes showRight { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }

/* --- EASTER EGG --- */
@keyframes discoFlash { 0% { background-color: #0f172a; } 20% { background-color: #ef4444; } 40% { background-color: #3b82f6; } 60% { background-color: #10b981; } 80% { background-color: #f59e0b; } 100% { background-color: #8b5cf6; } }
body.disco-active { animation: discoFlash 0.4s infinite !important; }
body.disco-active * { color: white !important; border-color: rgba(255,255,255,0.3) !important; transition: background-color 0.1s, color 0.1s; }
#cinema-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 999998; align-items: center; justify-content: center; flex-direction: column; }
#cinema-video { width: 80%; max-width: 1000px; border-radius: 12px; box-shadow: 0 0 50px rgba(255,255,255,0.1); }
.easter-egg-close { display: none; position: fixed; top: 30px; right: 30px; z-index: 999999; background: #ef4444; color: white; border: 3px solid white; border-radius: 50%; width: 60px; height: 60px; font-size: 2rem; cursor: pointer; box-shadow: 0 0 30px rgba(0,0,0,0.8); transition: 0.3s; }
.easter-egg-close:hover { background: white; color: #ef4444; transform: scale(1.1); }


/* =========================================
   MODERN NAVBAR & HAMBURGER MENÜ (MOBİL)
========================================= */

/* Ana Navbar (Masaüstü) */
.modern-navbar {
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    position: sticky; top: 20px; margin: 0 auto 30px auto; max-width: 1600px;
    border-radius: 100px; padding: 10px 25px;
    box-shadow: 0 10px 30px rgba(33, 69, 145, 0.08);
    display: flex; justify-content: space-between; align-items: center;
    z-index: 1000; border: 1px solid rgba(255,255,255,0.5);
    background: rgba(255, 255, 255, 0.85); transition: 0.3s;
}

.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; color: var(--ahbv-blue); font-size: 1.1rem; }
.nav-brand img { height: 40px; }
.nav-menu { display: flex; gap: 5px; align-items: center; }
.nav-item { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; padding: 10px 18px; border-radius: 50px; transition: 0.3s; display: flex; align-items: center; gap: 8px; }
.nav-item:hover, .nav-item.active { background: rgba(33,69,145,0.08); color: var(--ahbv-blue); }
.nav-actions { display: flex; gap: 10px; align-items: center; }

/* Mobil Menü Butonu (Sadece Mobilde Görünür) */
.menu-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: transparent; border: none; padding: 5px; }
.menu-toggle span { width: 25px; height: 3px; background-color: var(--ahbv-blue); border-radius: 5px; transition: 0.3s ease; }

@media (max-width: 992px) {
    /* Mobilde hap tasarımını esnetip butonları aşağı alıyoruz */
    .modern-navbar { flex-wrap: wrap; border-radius: 20px; padding: 15px 20px; }
    
    .menu-toggle { display: flex; }
    
    /* Menü elemanlarını mobilde başlangıçta gizliyoruz */
    .nav-menu, .nav-actions { display: none; width: 100%; flex-direction: column; margin-top: 15px; gap: 10px; }
    .nav-actions { border-top: 1px solid rgba(0,0,0,0.05); padding-top: 15px; }

    /* JavaScript tıklandığında .mobile-active sınıfını ekleyecek */
    .modern-navbar.mobile-active .nav-menu,
    .modern-navbar.mobile-active .nav-actions { display: flex; animation: fadeInMenu 0.3s ease forwards; }
    
    @keyframes fadeInMenu { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
    
    /* Mobilde linkler ve butonlar ekranı tam kaplasın */
    .nav-item, .btn-primary, .btn-glass, .btn-logout { width: 100%; justify-content: center; text-align: center; }
    
    /* Mobilde bildirim kutusunu aşağıya doğru açma ayarı */
    #notif-dropdown { position: static !important; width: 100% !important; box-shadow: none !important; border: 1px solid rgba(0,0,0,0.05) !important; margin-top: 10px; }
    
    /* Hamburger ikonunun X şekline dönüşme animasyonu */
    .modern-navbar.mobile-active .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .modern-navbar.mobile-active .menu-toggle span:nth-child(2) { opacity: 0; }
    .modern-navbar.mobile-active .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    /* Mobilde Taşan İçerikleri Düzenleme */
    .hero-split { flex-direction: column; text-align: center; margin-top: 20px; }
    .hero-right h1 { font-size: 2.5rem; }
    .hero-left img { max-width: 350px; }
    .grid-3 { grid-template-columns: 1fr; } 
    section { padding: 50px 5%; }
    .section-title { font-size: 2rem; }
    .form-grid { grid-template-columns: 1fr; } 
    
    /* WhatsApp Mobilde Düzeltme */
    .whatsapp-widget-container { height: auto; min-height: 500px; flex-direction: column; }
    .wa-sidebar { width: 100%; height: 200px; border-right: none; border-bottom: 1px solid var(--wa-border); }
    .wa-main { width: 100%; height: 350px; }
}

@media (max-width: 576px) {
    .modern-navbar { width: 95%; max-width: 95%; padding: 10px 15px; }
    .nav-brand span { display: none; } /* Mobilde yer tasarrufu için ismi gizle */
}