/* === TEMA DEĞİŞKENLERİ === */
:root {
    --bg-main: #f4f7f6;
    --text-title: #1a202c;
    --text-body: #4a5568;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.12);
    --primary-color: #e74c3c;
    --primary-hover: #c0392b;
}

/* Koyu Mod Renkleri */
body.dark-theme {
    --bg-main: #0f172a;
    --text-title: #f8fafc;
    --text-body: #cbd5e1;
    --card-bg: #1e293b;
    --card-border: rgba(255, 255, 255, 0.05);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Genel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Sayfa içi kaydırmayı yumuşatır */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-body);
    transition: background-color 0.4s ease, color 0.4s ease;
    line-height: 1.6;
    /* GÜNCELLEME: Navbar silindiği için üst boşluk kaldırıldı. İçerik artık yukarıda. */
}

/* ============================================================
   GÜNCEL: SOL ÜST KÖŞE SABİT LOGO 
   ============================================================ */
.floating-logo {
    position: fixed;
    top: 20px;
    left: 30px;
    z-index: 10001; /* Her şeyin üstünde */
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.floating-logo:hover {
    transform: scale(1.05);
}

.floating-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.floating-logo span {
    font-size: 1.6rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
    .floating-logo {
        left: 20px;
        top: 15px;
    }
    .floating-logo img {
        height: 40px;
    }
    .floating-logo span {
        font-size: 1.3rem;
    }
}

/* Tema Butonu */
.theme-btn {
    position: fixed;
    top: 20px;
    right: 100px;
    z-index: 10001; 
    padding: 10px 20px;
    border-radius: 30px;
    border: none;
    background-color: var(--card-bg);
    color: var(--text-title);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* 1. BAYRAK BANNER */
.hero-banner {
    height: 35vh;
    background: url('turk-bayragi-2.webp') no-repeat center center/cover;
    position: relative;
    border-bottom: 4px solid var(--primary-color);
}

.banner-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), var(--bg-main));
}

/* 2. HARİTA BÖLÜMÜ - GENİŞLETİLDİ */
.map-section {
    display: flex;
    justify-content: center;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    padding: 0 20px;
    width: 100%;
}

/* KARTLARI VE HARİTAYI YAN YANA TUTAN ANA DÜZEN */
.map-layout-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px; 
    width: 100%;
    max-width: 1600px; 
}

/* HARİTAYI TUTAN CAM KUTU (Sabit Boyutlu) */
.map-glass-container {
    background: var(--card-bg);
    flex: 1; 
    max-width: 950px; 
    min-height: 550px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.map-title {
    color: var(--text-title);
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

/* SAĞ VE SOL BOŞLUKLARA GELEN KARTLARIN BOYUTU */
.info-card.side-card {
    width: 320px; 
    flex-shrink: 0; 
    min-height: 480px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    margin: 0; 
}

.info-card.side-card p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.svg-wrapper {
    width: 100%;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* === GÜNCEL HARİTA RENK VE BÜYÜME AYARLARI === */
.svg-wrapper svg {
    width: 100%;
    height: auto;
    max-width: 800px;
    max-height: 600px;
    transform: scale(1.15); 
}

.svg-wrapper svg path {
    fill: #e31a1c !important; 
    stroke: #ffffff; 
    stroke-width: 1px;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease, stroke-width 0.3s ease;
    transform-origin: center;
    transform-box: fill-box;
}

/* JS İLE TETİKLENECEK KUSURSUZ BÜYÜME SINIFI */
.svg-wrapper svg path.active-city {
    transform: scale(1.08); 
    stroke-width: 2px; 
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.7)); 
}

/* Şehir İsimleri */
.city-label {
    fill: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: central;
    pointer-events: none; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

/* 3. İÇERİK BÖLÜMÜ */
.content-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.intro-text {
    text-align: center;
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    padding: 6px 15px;
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.intro-text h1 {
    font-size: 2.8rem;
    color: var(--text-title);
    margin-bottom: 20px;
    font-weight: 700;
}

.intro-text p {
    color: var(--text-body);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Modern Kartların Ana Yapısı (Korundu) */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.info-card {
    background: var(--card-bg);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
}

.info-card h3 {
    font-size: 1.6rem;
    color: var(--text-title);
    margin-bottom: 15px;
    font-weight: 600;
}

.info-card p {
    color: var(--text-body);
    margin-bottom: 30px;
    font-size: 1rem;
}

.card-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
    width: 100%; 
}

.card-btn:hover {
    background-color: var(--primary-hover);
    transform: scale(1.05);
}

/* Alt Bilgi Bölümleri İçin Boşluklar */
.content-detail {
    min-height: 80vh;
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top: 1px solid var(--card-border);
}

.detail-container {
    max-width: 800px;
}

.detail-container h2 {
    font-size: 2.8rem;
    color: var(--text-title);
    margin: 20px 0;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-body);
    border-top: 1px solid var(--card-border);
}

/* Mobilde Telefon Ekranına Sığması İçin Alt Alta Dizer */
@media (max-width: 1200px) {
    .map-layout-wrapper {
        flex-direction: column;
    }
    .info-card.side-card {
        width: 100%;
        max-width: 500px;
        min-height: auto;
    }
}

/* === HAMBURGER MENÜ EKLENTİLERİ === */
.hamburger-btn {
    position: fixed;
    top: 20px;
    right: 30px;
    z-index: 10001;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: var(--card-bg);
    padding: 12px 14px;
    border-radius: 10px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.hamburger-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-title);
    border-radius: 2px;
    transition: 0.3s;
}

.hamburger-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.side-menu {
    height: 100%;
    width: 300px;
    position: fixed;
    z-index: 10002; 
    top: 0;
    right: -300px; 
    background-color: var(--card-bg);
    overflow-x: hidden;
    transition: right 0.4s ease; 
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    border-left: 1px solid var(--card-border);
}

.side-menu.open {
    right: 0; 
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px 20px 25px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 15px;
}

.menu-header h2 {
    color: var(--text-title);
    margin: 0;
    font-size: 22px;
}

.close-btn {
    font-size: 36px;
    color: var(--text-body);
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
}

.close-btn:hover {
    color: var(--primary-color);
}

.side-menu a {
    padding: 15px 25px;
    text-decoration: none;
    font-size: 18px;
    color: var(--text-body);
    display: block;
    transition: 0.3s;
    font-weight: 600;
}

.side-menu a:hover {
    color: var(--primary-color);
    background-color: var(--bg-main);
    padding-left: 35px;
}

.menu-overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.menu-overlay.active {
    display: block;
}

/* --- KULLANICI ALANI STİLLERİ --- */
.user-area {
    position: fixed;
    top: 20px;
    right: 250px; 
    z-index: 10001; 
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-profile-btn {
    background: var(--card-bg);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-profile-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.logout-text {
    color: #e74c3c;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 768px) {
    .user-area {
        top: 70px; 
        right: 20px;
    }
}

/* RotaDE Bölge Değiştirici Butonu */
.region-btn {
    position: fixed;
    top: 20px;
    right: 80px; 
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10001; 
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.region-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

body.dark-mode .region-btn {
    color: #f1f1f1;
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}