/* ==============================================================================
   İzmir Elektrik Kesintisi - Modern & Ultra Hızlı CSS
   Performans: Sıfır harici kütüphane, Saf CSS Değişkenleri, Sistem Fontları
   ============================================================================== */

:root {
    --bg-primary: #f8fafc;
    --bg-card: #ffffff;
    --bg-hero: linear-gradient(135deg, #091424 0%, #0d1b2a 50%, #1b263b 100%);
    --bg-dark: #0d1b2a;
    --bg-light-blue: #e8f4fd;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #f1f5f9;
    
    --color-electric: #0077ed;
    --color-electric-hover: #0060c2;
    --color-electric-glow: rgba(0, 119, 237, 0.25);
    
    --status-active: #ef4444;       /* Kırmızı: Devam eden arıza */
    --status-planned: #f59e0b;      /* Sarı/Amber: Planlı bakım */
    --status-success: #10b981;      /* Yeşil: Enerji verildi / Normal */
    --status-gray: #94a3b8;         /* Gri: İptal / Geçmiş */
    
    --border-color: #e2e8f0;
    --border-color-dark: #1e293b;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset & Temel Ayarlar */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--color-electric);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-electric-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Üst Acil Durum Çubuğu (Emergency Bar) */
.emergency-bar {
    background-color: #dc2626;
    color: #ffffff;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    font-weight: 500;
}

.emergency-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.emergency-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot-white {
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.emergency-text a {
    color: #ffffff;
    text-decoration: underline;
}

.emergency-btn {
    background-color: #ffffff;
    color: #dc2626;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    transition: transform 0.2s;
}

.emergency-btn:hover {
    color: #b91c1c;
    transform: translateY(-1px);
}

/* Site Başlığı (Header & Navbar) */
.site-header {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #0077ed 0%, #004fb0 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px var(--color-electric-glow);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--bg-dark);
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.logo-sub {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-electric);
    letter-spacing: 1px;
}

/* Masaüstü Menü */
.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 0.5rem 0.25rem;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-electric);
}

/* Mega Menü (30 İlçe Açılır Menü) */
.has-dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -150px;
    width: 600px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
    z-index: 1010;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    max-height: 380px;
    overflow-y: auto;
}

.mega-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.6rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: background 0.15s;
}

.mega-item:hover {
    background-color: var(--bg-light-blue);
    color: var(--color-electric);
}

.mega-badge {
    background-color: #fee2e2;
    color: #dc2626;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: var(--radius-full);
}

/* Header Aksiyonları */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn.call-186 {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: #fee2e2;
    color: #dc2626;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.action-btn.call-186:hover {
    background-color: #fca5a5;
    color: #991b1b;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--bg-dark);
    border-radius: 2px;
    transition: 0.25s ease;
}

/* Mobil Menü Çekmecesi */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 2000;
    box-shadow: var(--shadow-xl);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-drawer.open {
    right: 0;
}

.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.drawer-title {
    font-weight: 700;
    font-size: 1.125rem;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
}

.mobile-nav-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-list a {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    display: block;
    padding: 0.5rem 0;
}

.mobile-drawer-footer {
    margin-top: auto;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* ==============================================================================
   HERO BÖLÜMÜ (İzmir Saat Kulesi Temalı Görsel Alan)
   ============================================================================== */
.hero-section {
    position: relative;
    background: var(--bg-hero);
    color: #ffffff;
    padding: 4rem 0 3.5rem;
    overflow: hidden;
    border-bottom: 4px solid var(--color-electric);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 40%, rgba(0, 119, 237, 0.15) 0%, transparent 60%),
                      radial-gradient(circle at 80% 60%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-clock-tower-bg {
    position: absolute;
    right: 5%;
    bottom: -20px;
    width: 320px;
    height: 420px;
    opacity: 0.12;
    background: url('/assets/images/clock-tower.svg') no-repeat bottom center;
    background-size: contain;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.375rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    color: #93c5fd;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.hero-title .highlight {
    color: #38bdf8;
    background: linear-gradient(90deg, #38bdf8 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: #cbd5e1;
    margin-bottom: 2rem;
    line-height: 1.5;
}

/* Hero Canlı Sayaç Kartları (Glassmorphism) */
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2.25rem;
}

.stat-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: transform 0.2s, background 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.stat-num {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.375rem;
}

.stat-num.active-count { color: #f87171; }
.stat-num.affected-count { color: #fbbf24; }
.stat-num.today-count { color: #34d399; }

.stat-label {
    font-size: 0.8125rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Hero Hızlı Arama Kutusu */
.hero-search-box {
    background: #ffffff;
    border-radius: var(--radius-full);
    padding: 0.4rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 650px;
    margin: 0 auto;
}

.search-icon-wrap {
    padding-left: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}

.hero-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0.75rem 0.5rem;
    background: transparent;
    font-family: inherit;
}

.hero-search-btn {
    background: linear-gradient(135deg, #0077ed 0%, #0056b3 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.hero-search-btn:hover {
    background: #004ea3;
    box-shadow: 0 4px 12px var(--color-electric-glow);
}

/* ==============================================================================
   İNTERAKTİF HARİTA & İLÇE IZGARASI BİLEŞENİ
   ============================================================================== */
.interactive-map-section {
    padding: 3rem 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.interactive-map-wrapper {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.map-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bg-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}

.map-legend {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-green { background-color: var(--status-success); }
.status-amber { background-color: var(--status-planned); }
.status-red   { background-color: var(--status-active); }

/* SVG Harita Alanı */
.map-stage {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    background: radial-gradient(circle at 40% 50%, #f0f9ff 0%, #e2e8f0 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid #cbd5e1;
    overflow: hidden;
}

.izmir-svg {
    width: 100%;
    height: auto;
    max-height: 650px;
    display: block;
    margin: 0 auto;
}

.district-anchor {
    display: inline-block;
    outline: none;
}

.district-path {
    fill: #cbd5e1;
    stroke: #ffffff;
    stroke-width: 0.8px;
    vector-effect: non-scaling-stroke;
    cursor: pointer;
    transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

.district-path:hover,
.district-anchor:focus .district-path,
.district-anchor:focus-visible .district-path {
    fill: #0077ed !important;
    stroke: #ffffff !important;
    stroke-width: 1.5px;
    filter: drop-shadow(0 2px 8px rgba(0, 119, 237, 0.5));
}

.district-path.has-active-outage {
    fill: #f87171;
}

.district-path.has-active-outage:hover {
    fill: #dc2626 !important;
}

.district-path.has-planned-outage {
    fill: #fbbf24;
}

.district-path.has-planned-outage:hover {
    fill: #d97706 !important;
}

/* Harita Tooltip Kutusu */
.map-tooltip {
    position: absolute;
    background: #0f172a;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    box-shadow: var(--shadow-xl);
    pointer-events: none;
    z-index: 100;
    min-width: 160px;
    transform: translate(-50%, -120%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.tooltip-title {
    font-weight: 800;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

.tooltip-status {
    color: #94a3b8;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.tooltip-count {
    font-weight: 700;
    color: #38bdf8;
    margin-bottom: 0.25rem;
}

.tooltip-cta {
    font-size: 0.75rem;
    color: #facc15;
    font-weight: 600;
}

/* 30 İlçe Rozetleri Izgarası */
.district-grid-wrap {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.grid-heading {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.district-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 0.625rem;
}

.district-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    text-decoration: none;
}

.district-pill:hover {
    border-color: var(--color-electric);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.district-pill .pill-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.district-pill .pill-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.15rem 0.45rem;
    border-radius: var(--radius-full);
}

.district-pill.has-outage {
    border-left: 4px solid var(--status-active);
}

.district-pill.has-outage .pill-badge {
    background-color: #fee2e2;
    color: #dc2626;
}

.district-pill.is-clear {
    border-left: 4px solid var(--status-success);
}

.district-pill.is-clear .pill-badge {
    background-color: #d1fae5;
    color: #059669;
}

/* ==============================================================================
   KESİNTİ LİSTESİ & KARTLARI
   ============================================================================== */
.outage-section {
    padding: 3.5rem 0;
}

.section-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Sekme Filtreleri (Tabs) */
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #e2e8f0;
    padding: 0.3rem;
    border-radius: var(--radius-full);
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.tab-btn.active {
    background: #ffffff;
    color: var(--color-electric);
    box-shadow: var(--shadow-sm);
}

/* Kesinti Kartları Grid */
.outages-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.outage-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
    border-left: 5px solid var(--border-color);
}

.outage-card:hover {
    border-color: #cbd5e1;
    box-shadow: var(--shadow-md);
}

.outage-card.status-devam-ediyor { border-left-color: var(--status-active); }
.outage-card.status-planlandi    { border-left-color: var(--status-planned); }
.outage-card.status-tamamlandi   { border-left-color: var(--status-success); }

.card-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badges-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Rozetler (Badges) */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.badge-danger { background-color: #fee2e2; color: #dc2626; }
.badge-warning { background-color: #fef3c7; color: #b45309; }
.badge-success { background-color: #d1fae5; color: #065f46; }
.badge-secondary { background-color: #f1f5f9; color: #475569; }
.badge-district { background-color: #e0f2fe; color: #0369a1; font-weight: 800; }
.badge-type { background-color: #f3e8ff; color: #7e22ce; }

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #dc2626;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
    100% { opacity: 1; transform: scale(1); }
}

.time-counter-tag {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
}

.card-main-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-time-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 0.875rem;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.time-item strong {
    color: var(--text-primary);
}

.card-neighborhoods {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.card-neighborhoods strong {
    color: var(--text-primary);
}

/* Sokak Listesi Akordeon */
.streets-accordion {
    margin-top: 0.5rem;
}

.streets-toggle-btn {
    background: none;
    border: none;
    color: var(--color-electric);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0;
}

.streets-toggle-btn:hover {
    text-decoration: underline;
}

.streets-content {
    display: none;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
    white-space: pre-line;
    max-height: 180px;
    overflow-y: auto;
}

.streets-content.open {
    display: block;
}

.card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.8125rem;
}

.card-source-tag {
    color: var(--text-muted);
}

.card-permalink {
    font-weight: 700;
    color: var(--color-electric);
}

/* ==============================================================================
   DUYURULAR & BASIN BÜLTENLERİ
   ============================================================================== */
.news-section {
    background-color: #f1f5f9;
    padding: 3.5rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.news-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.news-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.news-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
}

.news-card-title a {
    color: var(--text-primary);
}

.news-card-title a:hover {
    color: var(--color-electric);
}

.news-card-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex: 1;
}

.news-read-more {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-electric);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* ==============================================================================
   REHBER, TARİFE & SIKÇA SORULAN SORULAR (SSS)
   ============================================================================== */
.faq-section {
    padding: 3.5rem 0;
    background: #ffffff;
}

.faq-accordion-wrap {
    max-width: 860px;
    margin: 2rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item:hover {
    border-color: #cbd5e1;
}

.faq-question-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.125rem 1.25rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: inherit;
}

.faq-question-btn .faq-icon {
    font-size: 1.25rem;
    color: var(--color-electric);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer-pane {
    display: none;
    padding: 0 1.25rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid #f1f5f9;
}

.faq-item.active .faq-answer-pane {
    display: block;
}

/* ==============================================================================
   ALTBİLGİ (FOOTER)
   ============================================================================== */
.site-footer {
    background-color: var(--bg-dark);
    color: #cbd5e1;
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}

.footer-logo-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    display: block;
    margin-bottom: 1rem;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.footer-emergency {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.emergency-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 700;
    color: #f87171;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.25rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-district-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.f-district-link {
    color: #94a3b8;
    font-size: 0.8125rem;
    padding: 0.2rem 0;
    transition: color 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.f-district-link:hover {
    color: #38bdf8;
}

.footer-bottom {
    background-color: #08101a;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.75rem;
    color: #64748b;
}

.disclaimer-text {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.copyright-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legal-links a {
    color: #64748b;
}

.legal-links a:hover {
    color: #94a3b8;
}

/* ==============================================================================
   RESPONSIVE (MOBİL UYUMLULUK)
   ============================================================================== */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .hero-stats-grid { grid-template-columns: 1fr; }
    .footer-district-grid { grid-template-columns: repeat(2, 1fr); }
    .map-header { flex-direction: column; }
}

@media (max-width: 640px) {
    .header-container { height: 62px; }
    .emergency-text { display: none; }
    .district-cards-grid { grid-template-columns: 1fr 1fr; }
    .card-time-box { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .a11y-floating-trigger { bottom: 16px; left: 16px; padding: 0.5rem 0.75rem; }
    .a11y-trigger-text { display: none; }
}

/* ==============================================================================
   WHATSAPP İLE KOMŞUNA GÖNDER & ARİZA İHBAR BUTONLARI
   ============================================================================== */
.card-actions-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.whatsapp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #25D366;
    color: #ffffff !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3);
}

.whatsapp-share-btn:hover {
    background-color: #1eb954;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
}

.whatsapp-hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #25D366;
    color: #ffffff !important;
    font-size: 0.9375rem;
    font-weight: 800;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.whatsapp-hero-btn:hover {
    background-color: #1eb954;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Header WhatsApp Butonu */
.header-whatsapp-btn {
    background-color: #dcfce7 !important;
    color: #15803d !important;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
    text-decoration: none;
}

.header-whatsapp-btn:hover {
    background-color: #bbf7d0 !important;
    color: #166534 !important;
}

/* Sabit Yüzen WhatsApp Widget'ı (Sağ Alt) */
.floating-whatsapp-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    color: #ffffff !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.floating-whatsapp-widget:hover {
    background-color: #1eb954;
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.65);
}

.floating-whatsapp-tooltip {
    position: absolute;
    right: 68px;
    background: #0f172a;
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.2s ease;
    pointer-events: none;
    box-shadow: var(--shadow-md);
}

.floating-whatsapp-widget:hover .floating-whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* ==============================================================================
   ERİŞİLEBİLİRLİK (A11Y - WCAG 2.2 AAA STANDARTLARI)
   ============================================================================== */
/* Klavye İçeriğe Doğrudan Atla Bağlantısı */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: #000000;
    color: #facc15;
    padding: 0.75rem 1.25rem;
    font-weight: 800;
    font-size: 1rem;
    z-index: 100002;
    border-radius: 0 0 8px 8px;
    border: 3px solid #facc15;
    transition: top 0.2s;
}

.skip-to-content:focus {
    top: 0;
}

/* Yüzen Erişilebilirlik Butonu (Sol Alt) */
.a11y-floating-trigger {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9990;
    background: #0077ed;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: var(--radius-full);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.a11y-floating-trigger:hover,
.a11y-floating-trigger:focus-visible {
    background: #0056b3;
    transform: scale(1.05);
    outline: 3px solid #38bdf8;
    outline-offset: 3px;
}

/* Erişilebilirlik Modal/Panel */
.a11y-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 100001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.a11y-modal-backdrop.open {
    display: flex !important;
}

.a11y-modal-content {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 100002;
}

.a11y-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}

.a11y-modal-title {
    font-size: 1.125rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

.a11y-close-btn {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--text-muted);
    line-height: 1;
    padding: 0.25rem;
}

.a11y-modal-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.a11y-tool-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.a11y-tool-label strong {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.a11y-tool-desc {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.a11y-btn-row {
    display: flex;
    gap: 0.5rem;
}

.a11y-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.a11y-option-btn {
    flex: 1;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-family: inherit;
}

.a11y-option-btn:hover,
.a11y-option-btn:focus-visible {
    background: #e2e8f0;
    border-color: var(--color-electric);
    outline: 2px solid var(--color-electric);
}

.a11y-option-btn.active {
    background: #0077ed !important;
    color: #ffffff !important;
    border-color: #0056b3 !important;
    box-shadow: 0 2px 8px rgba(0, 119, 237, 0.4);
}

.a11y-option-btn.primary-voice {
    background: #10b981;
    color: #ffffff;
    border-color: #059669;
}

.a11y-option-btn.primary-voice:hover {
    background: #059669;
}

.a11y-option-btn.danger-voice {
    background: #ef4444;
    color: #ffffff;
    border-color: #dc2626;
}

.a11y-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
}

.a11y-reset-btn {
    background: none;
    border: none;
    color: #dc2626;
    font-weight: 700;
    font-size: 0.8125rem;
    cursor: pointer;
}

.a11y-reset-btn:hover {
    text-decoration: underline;
}

.a11y-done-btn {
    background: #0077ed;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
}

/* Okuma Cetveli */
.a11y-reading-ruler {
    position: fixed;
    left: 0;
    width: 100vw;
    height: 38px;
    background: rgba(250, 204, 21, 0.25);
    border-top: 2px solid #ca8a04;
    border-bottom: 2px solid #ca8a04;
    pointer-events: none;
    z-index: 100000;
    transform: translateY(-50%);
}

/* ==============================================================================
   ERİŞİLEBİLİRLİK TEMA SINIFLARI (HTML & BODY ÜZERİNDE AKTİFLEŞİR)
   ============================================================================== */
/* 1. Metin Boyutları (rem birimlerini doğru ölçeklemek için html üzerine uygulanır) */
html.a11y-size-large,
body.a11y-size-large {
    font-size: 19px !important;
}

html.a11y-size-xlarge,
body.a11y-size-xlarge {
    font-size: 22px !important;
}

/* 2. Yüksek Kontrast Modu (WCAG AAA - Siyah Zemin, Parlak Sarı/Beyaz Metin) */
body.a11y-contrast-high {
    background-color: #000000 !important;
    color: #ffff00 !important;
}

body.a11y-contrast-high main,
body.a11y-contrast-high .site-header,
body.a11y-contrast-high .site-footer,
body.a11y-contrast-high .hero-section,
body.a11y-contrast-high .interactive-map-wrapper,
body.a11y-contrast-high .outage-card,
body.a11y-contrast-high .news-card,
body.a11y-contrast-high .faq-item,
body.a11y-contrast-high .district-pill {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
    box-shadow: none !important;
}

body.a11y-contrast-high a {
    color: #00ffff !important;
    text-decoration: underline !important;
}

body.a11y-contrast-high .card-main-title,
body.a11y-contrast-high .section-title,
body.a11y-contrast-high .hero-title,
body.a11y-contrast-high strong {
    color: #ffff00 !important;
}

body.a11y-contrast-high .a11y-modal-content {
    background-color: #000000 !important;
    border: 3px solid #ffff00 !important;
    color: #ffff00 !important;
}

body.a11y-contrast-high .a11y-modal-header,
body.a11y-contrast-high .a11y-modal-footer {
    background-color: #111111 !important;
    border-color: #ffff00 !important;
}

body.a11y-contrast-high .a11y-modal-title,
body.a11y-contrast-high .a11y-tool-label strong {
    color: #ffff00 !important;
}

body.a11y-contrast-high .a11y-tool-desc {
    color: #ffffff !important;
}

body.a11y-contrast-high .a11y-close-btn {
    color: #ffff00 !important;
}

body.a11y-contrast-high .a11y-option-btn {
    background-color: #1a1a1a !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

body.a11y-contrast-high .a11y-option-btn.active {
    background-color: #ffff00 !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    font-weight: 800 !important;
}

body.a11y-contrast-high .a11y-done-btn {
    background-color: #ffff00 !important;
    color: #000000 !important;
    font-weight: 800 !important;
}

body.a11y-contrast-high .a11y-reset-btn {
    color: #ff4444 !important;
}

/* 3. Koyu Mod (Dark Theme) */
body.a11y-contrast-dark {
    background-color: #090d16 !important;
    color: #f1f5f9 !important;
}

body.a11y-contrast-dark .site-header,
body.a11y-contrast-dark .outage-card,
body.a11y-contrast-dark .news-card,
body.a11y-contrast-dark .faq-item,
body.a11y-contrast-dark .interactive-map-wrapper,
body.a11y-contrast-dark .district-pill {
    background-color: #111827 !important;
    border-color: #1f2937 !important;
    color: #f1f5f9 !important;
}

body.a11y-contrast-dark .a11y-modal-content {
    background-color: #0d1b2a !important;
    border-color: #1e293b !important;
    color: #f1f5f9 !important;
}

body.a11y-contrast-dark .a11y-modal-header,
body.a11y-contrast-dark .a11y-modal-footer {
    background-color: #111e33 !important;
    border-color: #1e293b !important;
}

body.a11y-contrast-dark .a11y-modal-title,
body.a11y-contrast-dark .a11y-tool-label strong {
    color: #f8fafc !important;
}

body.a11y-contrast-dark .a11y-tool-desc {
    color: #94a3b8 !important;
}

body.a11y-contrast-dark .a11y-option-btn {
    background-color: #1b263b !important;
    color: #e2e8f0 !important;
    border-color: #334155 !important;
}

body.a11y-contrast-dark .a11y-option-btn.active {
    background-color: #0077ed !important;
    color: #ffffff !important;
    border-color: #38bdf8 !important;
}

body.a11y-contrast-dark .card-main-title,
body.a11y-contrast-dark .section-title,
body.a11y-contrast-dark .faq-question-btn,
body.a11y-contrast-dark .pill-name {
    color: #f9fafb !important;
}

body.a11y-contrast-dark .card-time-box {
    background-color: #1f2937 !important;
}

/* 4. Gri Tonlama (Monokrom / Renk Körü) */
body.a11y-contrast-grayscale,
html.a11y-contrast-grayscale {
    filter: grayscale(100%) !important;
}

/* 5. Ters Renkler (Invert) */
body.a11y-contrast-invert,
html.a11y-contrast-invert {
    filter: invert(100%) hue-rotate(180deg) !important;
}

/* 6. Disleksi Dostu Yazı Tipi */
body.a11y-font-dyslexic *,
html.a11y-font-dyslexic * {
    font-family: "Comic Sans MS", "Comic Sans", "Arial Rounded MT Bold", sans-serif !important;
    letter-spacing: 0.08em !important;
    word-spacing: 0.16em !important;
    line-height: 1.8 !important;
}

/* 7. Bağlantıları Vurgula */
body.a11y-highlight-links a,
html.a11y-highlight-links a {
    text-decoration: underline !important;
    text-decoration-thickness: 2px !important;
    color: #0284c7 !important;
    background-color: #fef08a !important;
    padding: 0 2px !important;
    border-radius: 2px !important;
}

/* 8. Büyük İmleç (WCAG AAA Yüksek Görünürlüklü Pointer) */
body.a11y-big-cursor,
body.a11y-big-cursor *,
html.a11y-big-cursor,
html.a11y-big-cursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpolygon points='0,0 0,36 10,27 22,44 28,40 16,23 32,23' fill='%23000000' stroke='%23ffffff' stroke-width='2.5'/%3E%3C/svg%3E"), auto !important;
}

body.a11y-big-cursor a,
body.a11y-big-cursor button,
body.a11y-big-cursor [role="button"],
body.a11y-big-cursor input[type="submit"],
html.a11y-big-cursor a,
html.a11y-big-cursor button,
html.a11y-big-cursor [role="button"],
html.a11y-big-cursor input[type="submit"] {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44' viewBox='0 0 44 44'%3E%3Cpolygon points='0,0 0,36 10,27 22,44 28,40 16,23 32,23' fill='%230077ed' stroke='%23ffffff' stroke-width='2.5'/%3E%3C/svg%3E"), pointer !important;
}

/* Klavye Focus Göstergesi (Tüm Odaklanabilir Elemanlar İçin) */
*:focus-visible {
    outline: 3px solid #0077ed !important;
    outline-offset: 2px !important;
}

/* Mobil Uyumlu Sabit Butonlar */
@media (max-width: 640px) {
    .a11y-floating-trigger {
        bottom: 16px;
        left: 16px;
        padding: 0;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        justify-content: center;
    }
    .a11y-floating-trigger .a11y-trigger-text {
        display: none;
    }
    .floating-whatsapp-widget {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }
    .floating-whatsapp-widget svg {
        width: 26px;
        height: 26px;
    }
}


