/* GENEL YAPILANDIRMA VE IMPORT */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    /* HAKİM RENK: KIRMIZI */
    --ana-renk: #D32F2F; 
    
    /* BUTON RENGİ: YEŞİL */
    --buton-renk: #059669; 
    --buton-hover: #047857;

    --koyu-renk: #282B30; /* Koyu Gri */
    --gri-zemin: #F7F8FA; 
    --beyaz: #FFFFFF;
    --metin-renk: #1F2937;
    --gri-metin: #6B7280;
    --header-yukseklik: 70px;
}

/* 1. GENEL SAYFA YAPISI */
body {
    background-color: var(--gri-zemin);
    font-family: 'Poppins', sans-serif;
    margin: 0; padding: 0; color: var(--metin-renk);
    padding-top: var(--header-yukseklik);
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
ul { list-style: none; padding: 0; margin: 0; }
* { box-sizing: border-box; }

/* LOGO STİLLERİ (YENİ) */
.site-logo-img {
    max-height: 45px;
    width: auto;
    object-fit: contain;
}

/* 2. GİRİŞ SAYFASI ÖZEL */
body.login-page {
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; padding-top: 0;
}
.login-kapsayici { width: 100%; max-width: 440px; padding: 20px; }
.login-kart {
    background: #FFFFFF; border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); padding: 40px; text-align: center;
}
.logo-alan { margin-bottom: 20px; }
.logo-alan img { height: 50px; }
.baslik { color: #1F2937; font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.aciklama { color: #687280; font-size: 14px; margin-bottom: 30px; }
.form-grup { margin-bottom: 20px; text-align: left; }
.form-label { display: block; font-size: 13px; color: #374151; margin-bottom: 6px; font-weight: 500; }
.form-input {
    width: 100%; height: 46px; padding: 0 15px; border: 1px solid #E5E7EB;
    border-radius: 8px; font-size: 15px; color: #1F2937; box-sizing: border-box;
    transition: border-color 0.2s; font-family: 'Poppins', sans-serif;
}
.form-input:focus { border-color: var(--ana-renk); outline: none; }
.captcha-satir { display: flex; align-items: center; gap: 10px; }
.captcha-img { border-radius: 6px; border: 1px solid #E5E7EB; }
.yenile-btn { background: none; border: none; color: var(--ana-renk); cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 4px; }

/* BUTONLAR: YEŞİL (Değişiklik Burada) */
.btn-giris {
    display: inline-block; width: 100%; height: 48px; 
    background-color: var(--buton-renk); /* YEŞİL */
    color: #fff; border: none; border-radius: 8px; font-size: 16px; font-weight: 600;
    cursor: pointer; transition: background 0.2s; line-height: 48px; text-align: center;
}
.btn-giris:hover { background-color: var(--buton-hover); color: #fff; }

.hata-kutusu {
    background-color: #FEF2F2; color: #B91C1C; padding: 12px; border-radius: 8px;
    font-size: 14px; margin-bottom: 20px; border: 1px solid #FEE2E2;
}

/* =========================================
   3. HEADER & MENÜ
   ========================================= */

.site-header {
    background: var(--beyaz); height: var(--header-yukseklik);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%; position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.logo h2 { color: var(--ana-renk); font-size: 24px; font-weight: 700; margin: 0; }

.hamburger-btn {
    display: none; font-size: 24px; color: var(--koyu-renk);
    cursor: pointer; background: none; border: none; padding: 5px;
}

/* Kapatma Butonu ve Mobil Header Sadece Mobilde Görünür */
.close-btn, .mobil-menu-header { display: none; }

/* NAVIGASYON */
.nav-wrapper {
    display: flex; align-items: center; gap: 30px; flex: 1; justify-content: flex-end;
}

.nav-menu { display: flex; gap: 25px; align-items: center; margin: 0; padding: 0; }
.nav-item { position: relative; }
.nav-link { 
    font-weight: 500; font-size: 14px; color: var(--metin-renk); 
    display: flex; align-items: center; gap: 6px; padding: 10px 0;
}
.nav-link:hover { color: var(--ana-renk); }
.nav-link i { font-size: 14px; color: var(--gri-metin); transition: 0.2s; }
.nav-link:hover i { color: var(--ana-renk); }

/* DROPDOWN */
.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background: #FFFFFF; min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px; opacity: 0; visibility: hidden;
    transform: translateY(10px); transition: all 0.2s ease;
    padding: 10px 0; border: 1px solid #eee;
    z-index: 1100;
}
.nav-item:hover .dropdown-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu li a {
    display: block; padding: 10px 20px; font-size: 13px;
    color: var(--metin-renk); transition: 0.2s;
    border-bottom: 1px solid #f9f9f9;
}
.dropdown-menu li:last-child a { border-bottom: none; }
.dropdown-menu li a:hover { background-color: #FFFFFA; color: var(--ana-renk); padding-left: 25px; }

/* HEADER BUTONLAR: YEŞİL */
.header-actions { display: flex; gap: 10px; align-items: center; margin-left: 20px; }
.btn-header-giris {
    padding: 8px 20px; border: 1px solid var(--buton-renk); color: var(--buton-renk);
    border-radius: 6px; font-weight: 500; font-size: 14px; white-space: nowrap;
    background: transparent; cursor: pointer; text-decoration: none;
}
.btn-header-giris:hover { background-color: #ECFDF5; color: var(--buton-hover); }

.btn-uye {
    padding: 8px 20px; background: var(--buton-renk); color: white;
    border-radius: 6px; font-weight: 500; font-size: 14px; white-space: nowrap;
    cursor: pointer; text-decoration: none;
}
.btn-uye:hover { background-color: var(--buton-hover); }

/* --- MOBİL MENÜ YAPISI --- */
@media (max-width: 992px) {
    .hamburger-btn { display: block; } 
    
    /* Mobil Header (Logo + Kapat) */
    .mobil-menu-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 5px; 
        padding-bottom: 10px;
        border-bottom: 1px solid #f0f0f0;
    }
    .mobil-logo img {
        max-height: 40px;
        width: auto;
    }
    
    .close-btn {
        display: block;
        position: static;
        font-size: 24px; color: var(--koyu-renk); cursor: pointer;
    }
    
    /* Menü Kapalı */
    .nav-wrapper {
        position: fixed; top: 0; right: -100%; 
        width: 85%; height: 100vh; background: #FFFFFF;
        flex-direction: column; 
        align-items: flex-start;
        justify-content: flex-start; 
        padding: 15px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.3s ease-in-out;
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-wrapper.aktif { right: 0; }

    /* Menü Linkleri */
    .nav-menu { 
        display: flex; 
        flex-direction: column; 
        width: 100%; 
        align-items: flex-start; 
        gap: 0; 
    }
    .nav-item { width: 100%; border-bottom: 1px solid #f0f0f0; }
    
    .nav-link { 
        padding: 15px 0; 
        font-size: 18px; /* Büyük Font */
        font-weight: 500;
        width: 100%; 
        justify-content: flex-start; /* Sola Hizalı */
        gap: 15px;
        color: #333;
    }
    
    .nav-link i {
        width: 30px; /* Sabit İkon Alanı */
        text-align: center;
        font-size: 20px;
    }

    .nav-link .fa-chevron-down {
        margin-left: auto;
        width: auto;
        font-size: 14px;
    }
    
    /* Dropdown Mobil */
    .dropdown-menu {
        position: static; 
        box-shadow: none; border: none; padding: 0;
        opacity: 1; visibility: visible; transform: none;
        display: none; 
        background-color: #FAFAFA; border-radius: 8px; margin-bottom: 10px;
    }
    .dropdown-menu li a { 
        padding: 12px 15px 12px 60px; /* İkon boşluğu kadar içeriden */
        font-size: 15px; 
        border-bottom: 1px solid #eee; 
    }
    .nav-item.acik .dropdown-menu { display: block; } 
    .nav-item.acik .nav-link i.fa-chevron-down { transform: rotate(180deg); }

    /* Butonlar Mobil (Aralık bırakıldı) */
    .header-actions {
        margin-top: 60px; 
        margin-left: 0; width: 100%;
        flex-direction: column; gap: 15px;
    }
    .btn-header-giris, .btn-uye { width: 100%; text-align: center; padding: 14px; font-size: 16px; }
    
    /* Overlay */
    .mobile-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5); z-index: 998;
        display: none;
    }
    .mobile-overlay.aktif { display: block; }
}

/* DİĞER BÖLÜM STİLLERİ */
.hero-section { position: relative; width: 100%; height: 500px; background-color: #333; background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: white; text-align: center; }
.hero-overlay { background: rgba(0,0,0,0.5); width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.hero-title { font-size: 42px; font-weight: 700; margin-bottom: 20px; }
.hero-desc { font-size: 18px; margin-bottom: 30px; opacity: 0.9; max-width: 700px; }

/* HERO BUTON: YEŞİL */
.hero-btn { 
    padding: 12px 30px; background: var(--buton-renk); 
    color: white; border-radius: 30px; font-weight: 600; font-size: 16px; 
    transition: transform 0.2s, background 0.2s; display: inline-block; 
}
.hero-btn:hover { transform: scale(1.05); color: #fff; background-color: var(--buton-hover); }

.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.section-title { font-size: 24px; font-weight: 700; position: relative; padding-left: 15px; }
.section-title::before { content: ''; position: absolute; left: 0; top: 5px; bottom: 5px; width: 5px; background: var(--ana-renk); border-radius: 5px; }

/* TÜMÜNÜ GÖR LİNKİ: KIRMIZI (Aksiyon butonu değil, link) */
.tumunu-gor-btn { font-size: 12px; color: var(--ana-renk); font-weight: 600; display: flex; align-items: center; gap: 8px; border: 1px solid var(--ana-renk); padding: 6px 15px; border-radius: 5px; transition: all 0.2s ease; text-decoration: none; }
.tumunu-gor-btn:hover { background-color: var(--ana-renk); color: #FFFFFF; }
.tumunu-gor-btn i { font-size: 14px; }

.tab-menu-container { display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 30px; }
.tab-btn { padding: 10px 30px; border-radius: 5px; border: 1px solid #E5E7EB; background: #FFFFFF; color: var(--gri-metin); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.tab-btn:hover { background-color: #F9FAFB; border-color: #D1D5DB; }
.tab-btn.active { background-color: var(--koyu-renk); color: #FFFFFF; border-color: var(--koyu-renk); font-weight: 600; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }
.event-card { background: var(--beyaz); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: transform 0.2s; border: 1px solid #eee; display: flex; flex-direction: column; }
.event-card:hover { transform: translateY(-5px); }
.card-image { height: 180px; background: #ddd; position: relative; }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-cat { position: absolute; top: 10px; right: 10px; background: var(--ana-renk); color: white; padding: 4px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.card-body { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 13px; color: var(--gri-metin); margin-bottom: 5px; display: flex; align-items: center; gap: 8px; }
.card-meta i { color: var(--ana-renk); width: 15px; }
.card-footer { margin-top: auto; padding-top: 15px; border-top: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; }
.participant-count { font-size: 12px; color: #9CA3AF; }

/* KART İÇİ BUTON: YEŞİL VEYA KIRMIZI OLABİLİR, BİLET AL BUTONU YEŞİL OLSUN */
.btn-bilet { color: var(--buton-renk); font-weight: 600; font-size: 14px; }

.cta-section { background: linear-gradient(45deg, #282B30, #4a4d52); color: white; padding: 60px 0; text-align: center; margin: 40px 0; position: relative; overflow: hidden; }
.cta-title { font-size: 32px; font-weight: 700; margin-bottom: 15px; }
.cta-desc { font-size: 16px; opacity: 0.9; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; }
.news-scroller { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 20px; scroll-behavior: smooth; }
.news-scroller::-webkit-scrollbar { height: 6px; }
.news-scroller::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }
.news-card { min-width: 280px; width: 280px; background: var(--beyaz); border-radius: 10px; overflow: hidden; border: 1px solid #eee; }
.news-img { height: 160px; background: #ccc; }
.news-img img { width: 100%; height: 100%; object-fit: cover; }
.news-content { padding: 15px; }
.news-title { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.news-desc { font-size: 13px; color: var(--gri-metin); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.site-footer { background: var(--koyu-renk); color: #9CA3AF; padding: 40px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.footer-col h4 { color: white; margin-bottom: 20px; }
.footer-links a { display: block; margin-bottom: 10px; font-size: 14px; }
.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; }

@media (max-width: 992px) {
    body { padding-top: 60px; }
    .site-header { padding: 0 15px; height: 60px; }
    .logo h2 { font-size: 20px; }
    .hero-title { font-size: 26px; }
    .hero-desc { font-size: 14px; }
    .hero-section { height: 350px; }
    .events-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card-image { height: 120px; }
    .card-body { padding: 10px; }
    .card-title { font-size: 14px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .tab-menu-container { flex-wrap: nowrap; overflow-x: auto; justify-content: space-between; }
    .tab-btn { flex: 1; text-align: center; white-space: nowrap; padding: 10px 5px; font-size: 12px; }
}