/* ============================================
   GENEL STİLLER & DEĞİŞKENLER
   ============================================ */
:root {
    --shadow-sm: 0 10px 30px rgba(0,0,0,0.2);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.3);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.3);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.4);
    --radius-card: 15px;
    --radius-modal: 20px;
    --radius-harita: 20px;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: all 0.3s ease;
    --gradient-bg: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
}

/* ============================================
   BÖLGE SAYFASI ANA KONTEYNER
   ============================================ */
.bolge-bg {
    background: var(--gradient-bg);
    background-attachment: fixed;
    min-height: 100vh;
    font-family: 'Fredoka', sans-serif;
}

.bolge-baslik {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    color: white;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
    font-size: 2.8em;
}

.bolge-alt-baslik {
    color: #f5e6c8;
    font-style: italic;
}

.bolge-istatistikler .badge {
    font-size: 1em;
    padding: 10px 15px;
}

/* ============================================
   HARİTA BÖLÜMÜ
   ============================================ */
.harita-card {
    border: none;
    border-radius: var(--radius-harita);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.harita-card .card-header {
    padding: 20px 25px;
}

.harita-card .card-header small {
    opacity: 0.9;
    font-style: italic;
}

.harita-container {
    background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 50%, #80deea 100%);
    padding: 20px;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

/* Harita dekoratif arka plan ışıkları */
.harita-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
}

.harita-container svg {
    width: 100%;
    height: auto;
    max-height: 600px;
    display: block;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.harita-container svg path {
    transition: var(--transition-fast);
    stroke: #fff;
    stroke-width: 1;
    cursor: pointer;
}

.harita-container svg path:hover {
    filter: brightness(1.25) drop-shadow(0 0 15px rgba(255, 215, 0, 0.8));
    stroke: #FFD700;
    stroke-width: 3;
    transform: scale(1.02);
}

.harita-container svg path:active {
    transform: scale(0.98);
}

/* ============================================
   BÖLGE AÇIKLAMA KUTUSU
   ============================================ */
.bolge-aciklama {
    background: rgba(255,255,255,0.95);
    border-radius: var(--radius-card);
    border: 3px solid #FFD700;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    padding: 20px;
}

/* ============================================
   RENK KUTULARI
   ============================================ */
.renk-kutu {
    padding: 12px 20px;
    border-radius: 10px;
    color: white;
    text-align: center;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    transition: var(--transition-fast);
    cursor: pointer;
    display: inline-block;
    min-width: 120px;
}

.renk-kutu:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.renk-kutu span {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* ============================================
   BÖLGE KARTLARI
   ============================================ */
.bolge-kart {
    background: white;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid;
    transition: var(--transition);
    height: 100%;
}

.bolge-kart:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.bolge-kart-header {
    padding: 20px;
    color: white;
    text-align: center;
    position: relative;
}

.bolge-kart-baslik {
    font-family: 'Cinzel', serif;
    font-size: 1.4em;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.bolge-nufus {
    font-size: 1.1em;
    font-weight: 700;
    margin-top: 5px;
    display: block;
}

.bolge-kart-body {
    padding: 20px;
}

/* Özet Bilgiler */
.bolge-ozet {
    display: flex;
    justify-content: space-around;
    margin-bottom: 15px;
    padding: 12px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
}

.ozet-item {
    text-align: center;
    font-size: 0.85em;
}

.ozet-item i {
    display: block;
    font-size: 1.5em;
    margin-bottom: 5px;
    color: #27AE60;
}

/* Bilgi Satırları */
.bolge-bilgiler {
    margin-bottom: 15px;
}

.bilgi-satir {
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
    font-size: 0.9em;
}

.bilgi-satir strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 3px;
}

/* Kart Butonları */
.bolge-buttons {
    margin-top: 15px;
}

.btn-detay {
    color: white !important;
    border: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

.btn-detay:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    color: white !important;
}

/* ============================================
   MODAL (AÇILIR PENCERE)
   ============================================ */
.bolge-modal {
    border-radius: var(--radius-modal);
    overflow: hidden;
    border: 3px solid #c9a227;
}

.bolge-modal-header {
    color: white;
    border: none;
    padding: 25px 30px;
}

.modal-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    margin: 0;
    font-size: 1.8em;
}

.modal-subtitle {
    margin: 5px 0 0;
    opacity: 0.95;
    font-style: italic;
}

.modal-resim-container {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    overflow: hidden;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #dee2e6;
}

.modal-resim {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resim-placeholder-buyuk {
    font-size: 100px;
    opacity: 0.3;
}

/* Modal Bilgi Kutuları */
.bilgi-kutu {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #27AE60;
    line-height: 1.7;
    font-size: 0.95em;
}

.ekonomi-kutu {
    background: white;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #dee2e6;
    font-size: 0.9em;
    transition: var(--transition-fast);
}

.ekonomi-kutu:hover {
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.ekonomi-kutu strong {
    color: #8E44AD;
    display: block;
    margin-bottom: 5px;
}

/* ============================================
   KARŞILAŞTIRMA SAYFASI
   ============================================ */
.form-check-input:checked {
    background-color: #27AE60;
    border-color: #27AE60;
}

.table th,
.table td {
    vertical-align: middle;
}

/* ============================================
   RESPONSIVE (MOBİL UYUM)
   ============================================ */
@media (max-width: 768px) {
    .bolge-baslik {
        font-size: 2em;
    }

    .harita-container {
        min-height: 300px;
        padding: 10px;
    }

    .harita-container svg {
        max-height: 400px;
    }

    .bolge-ozet {
        flex-direction: column;
        gap: 10px;
    }

    .renk-kutu {
        min-width: 80px;
        padding: 8px 12px;
        font-size: 0.85em;
    }

    .bolge-aciklama {
        padding: 15px;
    }

    .modal-title {
        font-size: 1.3em;
    }

    .modal-resim-container {
        height: 150px;
    }

    .ekonomi-kutu {
        font-size: 0.85em;
    }
}

@media (max-width: 576px) {
    .harita-container svg {
        max-height: 300px;
    }

    .bolge-kart-baslik {
        font-size: 1.1em;
    }

    .ozet-item {
        font-size: 0.75em;
    }

    .ozet-item i {
        font-size: 1.2em;
    }

    .bilgi-satir {
        font-size: 0.8em;
    }
}