/* ==========================================================================
   İZMİR CANLI (izmircanli.com) - PROFESYONEL EDİTORYAL GAZETE & KENT PORTALI CSS
   Tasarım Çizgisi: Reuters / Bloomberg / Modern Canlı Haber & Veri Terminali
   Taşma (Overflow) Korumalı, Manşet Slider Destekli, %100 Responsive Mimari
   ========================================================================== */

:root {
    --navy-950: #070e1a;
    --navy-900: #0f172a;
    --navy-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --border-hairline: #cbd5e1;
    --border-light: #e2e8f0;
    --bg-page: #f1f5f9;
    --bg-card: #ffffff;
    --bg-subtle: #f8fafc;

    --aegean-blue: #0284c7;
    --aegean-dark: #0369a1;
    --crimson-red: #dc2626;
    --crimson-dark: #b91c1c;
    --gold-amber: #d97706;
    --emerald-green: #059669;
    --Font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: var(--Font-sans);
    background-color: var(--bg-page);
    color: var(--navy-900);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

img, svg, video, canvas, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Okuma İlerleme Çubuğu (Haber Detay Üst Bar) */
#reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--crimson-red), var(--aegean-blue));
    z-index: 9999;
    transition: width 0.1s ease-out;
}

.container {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ==================== 1. ÜST CANLI İZMİR VERİ TERMİNAL ŞERİDİ ==================== */
.top-terminal-bar {
    background: linear-gradient(90deg, var(--navy-950) 0%, #0b192c 50%, var(--navy-950) 100%);
    color: #f8fafc;
    font-size: 0.81rem;
    border-bottom: 1px solid rgba(56, 189, 248, 0.22);
}

.top-terminal-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 38px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.top-terminal-inner::-webkit-scrollbar { display: none; }

.terminal-metrics {
    display: flex;
    align-items: center;
    gap: 16px;
}

.terminal-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}
.terminal-item:last-child {
    border-right: none;
    padding-right: 0;
}

.terminal-item .t-label {
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.terminal-item .t-val {
    color: #ffffff;
    font-weight: 700;
}
.terminal-item .t-badge-up {
    color: #34d399;
    font-weight: 700;
    font-size: 0.75rem;
}
.terminal-item .t-badge-warn {
    color: #fbbf24;
    font-weight: 700;
    font-size: 0.75rem;
}

.live-pulse-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    border-radius: 50%;
    background-color: #ef4444;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    animation: pulseRed 1.8s infinite;
}

@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.terminal-right-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.76rem;
    color: #cbd5e1;
}

/* ==================== 2. ANA MASTHEAD (LOGO, ARAMA & KATEGORİ MENÜSÜ) ==================== */
.site-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-hairline);
    position: sticky;
    top: 0;
    z-index: 900;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.masthead-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    gap: 16px;
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    font-size: 1.85rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1;
}
.brand-logo .logo-izmir {
    color: var(--navy-900);
    padding-right: 6px;
}
.brand-logo .logo-canli {
    background: linear-gradient(135deg, var(--crimson-red), var(--crimson-dark));
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 1.55rem;
    letter-spacing: 0.02em;
}

.brand-meta {
    border-left: 2px solid var(--border-hairline);
    padding-left: 12px;
    font-size: 0.76rem;
    line-height: 1.35;
    color: var(--slate-600);
}
.brand-meta strong {
    display: block;
    color: var(--crimson-red);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.header-search-form {
    flex: 1;
    max-width: 340px;
    min-width: 180px;
    display: flex;
    border: 1px solid var(--border-hairline);
    background: var(--bg-subtle);
    border-radius: 4px;
    overflow: hidden;
}
.header-search-form input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--navy-900);
    outline: none;
}
.header-search-form button {
    border: none;
    background: var(--navy-900);
    color: #ffffff;
    padding: 0 14px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}
.header-search-form button:hover {
    background: var(--aegean-blue);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    overflow-x: auto;
    scrollbar-width: none;
    min-width: 0;
}
.primary-nav::-webkit-scrollbar { display: none; }

.primary-nav a {
    padding: 7px 10px;
    font-size: 0.81rem;
    font-weight: 700;
    color: var(--navy-900);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 3px;
    white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a.active {
    background: var(--navy-900);
    color: #ffffff;
}
.primary-nav a.nav-highlight {
    color: var(--crimson-red);
}
.primary-nav a.nav-highlight:hover {
    background: var(--crimson-red);
    color: #ffffff;
}

/* ==================== 3. İZMİR 30 İLÇE REHBER ŞERİDİ ==================== */
.district-strip-bar {
    background: #f8fafc;
    border-top: 1px solid var(--border-light);
}

.district-strip-inner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}
.district-strip-inner::-webkit-scrollbar { display: none; }

.district-strip-title {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #ffffff;
    background: var(--aegean-dark);
    padding: 3px 9px;
    border-radius: 2px;
    margin-right: 4px;
    flex-shrink: 0;
}

.district-pill {
    font-size: 0.79rem;
    font-weight: 600;
    color: var(--slate-700);
    padding: 3px 9px;
    border-radius: 2px;
    border: 1px solid transparent;
    flex-shrink: 0;
}
.district-pill:hover,
.district-pill.active {
    background: var(--aegean-blue);
    color: #ffffff;
    border-color: var(--aegean-dark);
}

/* ==================== 3.B SON DAKİKA KAYAN HABER BANDI (TICKER) ==================== */
.breaking-ticker-bar {
    background: var(--navy-900);
    color: #ffffff;
    border: 1px solid var(--border-hairline);
    border-left: 4px solid var(--crimson-red);
    margin: 12px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    overflow: hidden;
}

.bt-label {
    background: var(--crimson-red);
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0 14px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
}

.bt-viewport {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    overflow: hidden;
    position: relative;
}

.bt-item {
    display: none;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.85rem;
    font-weight: 700;
}
.bt-item.active {
    display: flex;
    animation: fadeSlideIn 0.3s ease;
}

.bt-item-time {
    color: #38bdf8;
    font-size: 0.76rem;
    font-weight: 800;
    flex-shrink: 0;
}
.bt-item-district {
    background: rgba(255, 255, 255, 0.14);
    color: #f8fafc;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 2px;
    flex-shrink: 0;
}
.bt-item-link {
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bt-item-link:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.bt-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-right: 8px;
    flex-shrink: 0;
}
.bt-btn {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 2px;
    font-weight: 900;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.bt-btn:hover {
    background: var(--aegean-blue);
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== 4. CANLI KENT SERVİSLERİ HIZLI KART ŞERİDİ ==================== */
.quick-services-band {
    margin: 12px 0;
}

.quick-services-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
}

.qs-card {
    min-width: 0;
    padding: 11px 14px;
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: background-color 0.15s ease;
}
.qs-card:last-child {
    border-right: none;
}
.qs-card:hover {
    background: #f0f9ff;
}

.qs-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
}

.qs-badge {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 2px;
    color: #ffffff;
    white-space: nowrap;
}

.qs-updated {
    font-size: 0.68rem;
    color: var(--slate-500);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qs-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--navy-900);
    line-height: 1.25;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qs-metric {
    font-size: 0.79rem;
    font-weight: 700;
    color: var(--aegean-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==================== 5. 12 SÜTUNLU EDİTORYAL ANA IZGARA (TAŞMA KORUMALI) ==================== */
.editorial-main-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 330px;
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    margin-bottom: 20px;
    max-width: 100%;
    overflow: hidden;
}

.ed-col-left {
    min-width: 0;
    max-width: 100%;
    border-right: 1px solid var(--border-hairline);
    padding: 16px;
    overflow: hidden;
}

.ed-col-center {
    min-width: 0;
    max-width: 100%;
    border-right: 1px solid var(--border-hairline);
    padding: 18px;
    overflow: hidden;
}

.ed-col-right {
    min-width: 0;
    max-width: 100%;
    padding: 16px;
    background: #fcfdfe;
    overflow: hidden;
}

.col-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-bottom: 9px;
    margin-bottom: 14px;
    border-bottom: 2px solid var(--navy-900);
}

.col-section-title {
    font-size: 0.84rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--navy-900);
    display: flex;
    align-items: center;
    gap: 7px;
}

.col-section-sub {
    font-size: 0.71rem;
    color: var(--slate-500);
    font-weight: 600;
}

/* Sol Sütun: Resmi Kurum & Gündem Akışı */
.stream-item {
    padding-bottom: 13px;
    margin-bottom: 13px;
    border-bottom: 1px solid var(--border-light);
    min-width: 0;
    max-width: 100%;
}
.stream-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.stream-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.73rem;
    color: var(--slate-500);
    margin-bottom: 5px;
}

.stream-time {
    font-weight: 800;
    color: var(--crimson-red);
}

.tag-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 7px;
    background: #e2e8f0;
    color: var(--navy-800);
    border-radius: 2px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tag-pill:hover {
    background: var(--aegean-blue);
    color: #ffffff;
}

.stream-headline {
    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1.38;
    color: var(--navy-900);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    margin-bottom: 6px;
}
.stream-headline:hover {
    color: var(--aegean-blue);
}

.stream-sublink {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--aegean-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.stream-sublink:hover {
    text-decoration: underline;
}

/* ==================== 5.B İNTERAKTİF HABER MANŞET SLIDER (CAROUSEL) ==================== */
.manset-slider {
    position: relative;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--border-hairline);
    background: var(--navy-950);
    margin-bottom: 18px;
    overflow: hidden;
}

.manset-progress-track {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}

.manset-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--crimson-red), #38bdf8);
    transition: width 0.1s linear;
}

.manset-slides-stage {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.manset-slide {
    display: none;
    width: 100%;
    background: #ffffff;
}
.manset-slide.active {
    display: block;
    animation: mansetFade 0.28s ease;
}

@keyframes mansetFade {
    from { opacity: 0.35; }
    to { opacity: 1; }
}

.manset-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 410px;
    overflow: hidden;
    background: var(--navy-950);
    display: block;
}

.manset-media-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    transition: transform 0.45s ease;
}
.manset-media-wrap:hover img {
    transform: scale(1.025);
}

.manset-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 14, 26, 0.94) 0%, rgba(7, 14, 26, 0.48) 48%, rgba(7, 14, 26, 0.05) 100%);
    pointer-events: none;
}

.manset-caption-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 20px 16px;
    color: #ffffff;
    z-index: 2;
}

.manset-badges-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.manset-slide-title {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.24;
    color: #ffffff;
    margin-bottom: 8px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.65);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.manset-slide-title a {
    color: #ffffff;
}
.manset-slide-title a:hover {
    color: #38bdf8;
}

.manset-slide-summary {
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* Manşet Alt Bilgi ve Numaralı (1..10) Seçim Çubuğu */
.manset-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--navy-900);
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    gap: 8px;
    flex-wrap: wrap;
}

.manset-num-list {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

.manset-num-btn {
    min-width: 30px;
    height: 28px;
    padding: 0 7px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 2px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.manset-num-btn:hover,
.manset-num-btn.active {
    background: var(--crimson-red);
    border-color: var(--crimson-red);
    color: #ffffff;
    transform: translateY(-1px);
}

.manset-arrow-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.manset-arrow-btn {
    height: 28px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 2px;
    cursor: pointer;
}
.manset-arrow-btn:hover {
    background: var(--aegean-blue);
    border-color: var(--aegean-blue);
}

/* Rozetler & İlgili Linkler */
.badge-breaking {
    background: var(--crimson-red);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
}

.badge-district {
    background: var(--aegean-blue);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 2px;
    white-space: nowrap;
}

.lead-cluster-links {
    list-style: none;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 10px 14px;
    margin-bottom: 18px;
}
.lead-cluster-links li {
    margin-bottom: 5px;
    font-size: 0.81rem;
    font-weight: 700;
    min-width: 0;
}
.lead-cluster-links li:last-child {
    margin-bottom: 0;
}
.lead-cluster-links li a {
    color: var(--navy-800);
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lead-cluster-links li a::before {
    content: "▪";
    color: var(--crimson-red);
    font-weight: 900;
    flex-shrink: 0;
}
.lead-cluster-links li a:hover {
    color: var(--aegean-blue);
    text-decoration: underline;
}

/* Orta Sütun Alt 2x2 Izgara (Taşma Korumalı) */
.center-subgrid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--border-light);
}

.subgrid-card {
    min-width: 0;
    max-width: 100%;
    padding: 14px;
    border-right: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}
.subgrid-card:nth-child(2n) {
    border-right: none;
}

.subgrid-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
    background: var(--navy-900);
}
.subgrid-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.subgrid-title {
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--navy-900);
    margin: 7px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.subgrid-title a:hover {
    color: var(--aegean-blue);
}

.subgrid-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.72rem;
    color: var(--slate-500);
}

/* Sağ Sütun: Canlı İzmir Veri Terminali */
.terminal-widget {
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--border-light);
    background: #ffffff;
    padding: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}
.terminal-widget:last-child {
    margin-bottom: 0;
}

.tw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 7px;
    margin-bottom: 9px;
}
.tw-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--navy-900);
    text-transform: uppercase;
}
.tw-timestamp {
    font-size: 0.68rem;
    color: var(--emerald-green);
    font-weight: 700;
}

.mini-data-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 0.79rem;
    table-layout: fixed;
}
.mini-data-table th {
    text-align: left;
    font-size: 0.69rem;
    text-transform: uppercase;
    color: var(--slate-500);
    padding: 4px 4px;
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mini-data-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #f1f5f9;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mini-data-table tr:last-child td {
    border-bottom: none;
}
.mini-data-table .num-col {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.dam-bar-item {
    margin-bottom: 9px;
}
.dam-bar-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 3px;
}
.dam-progress-track {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}
.dam-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--aegean-blue), #06b6d4);
}

.outage-counter-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}
.outage-pill-btn {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    padding: 7px 9px;
    background: #f8fafc;
    border: 1px solid var(--border-hairline);
    font-size: 0.76rem;
    font-weight: 700;
    overflow: hidden;
}
.outage-pill-btn:hover {
    border-color: var(--crimson-red);
    background: #fef2f2;
}
.outage-pill-btn span.cnt {
    color: var(--crimson-red);
    font-weight: 800;
    flex-shrink: 0;
}

/* ==================== 6. HABER KARTLARI VE BÖLÜM BLOKLARI (TAŞMA KORUMALI) ==================== */
.section-block {
    min-width: 0;
    max-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    padding: 18px;
    margin-bottom: 20px;
    overflow: hidden;
}

.section-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 2px solid var(--navy-900);
}

.section-heading {
    font-size: 1.06rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--navy-900);
}

.news-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.news-card {
    min-width: 0;
    max-width: 100%;
    border: 1px solid var(--border-light);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.news-card:hover {
    border-color: var(--aegean-blue);
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08);
}

.nc-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
    background: var(--navy-900);
}
.nc-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}
.nc-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 7px;
    text-transform: uppercase;
    max-width: calc(100% - 16px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nc-body {
    min-width: 0;
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.nc-title {
    font-size: 0.93rem;
    font-weight: 800;
    line-height: 1.36;
    color: var(--navy-900);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.nc-title a:hover {
    color: var(--aegean-blue);
}
.nc-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--slate-500);
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
    overflow: hidden;
}

/* ==================== 7. HABER DETAY VE SERVİS SAYFALARI (TAŞMA KORUMALI) ==================== */
.breadcrumb-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    padding: 9px 14px;
    margin: 14px 0;
    font-size: 0.8rem;
    color: var(--slate-600);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 100%;
    overflow: hidden;
}
.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    min-width: 0;
}
.breadcrumb-list a {
    color: var(--aegean-dark);
    font-weight: 700;
}
.breadcrumb-list a:hover {
    text-decoration: underline;
}

.article-layout-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
    margin-bottom: 24px;
    max-width: 100%;
}

.sticky-side-panel {
    min-width: 0;
    max-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    padding: 14px;
    position: sticky;
    top: 76px;
    overflow: hidden;
}

.article-main-card {
    min-width: 0;
    max-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-hairline);
    padding: 24px;
    overflow: hidden;
}

.article-h1 {
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.25;
    color: var(--navy-900);
    margin: 10px 0 14px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.article-lead {
    font-size: 1.04rem;
    font-weight: 600;
    color: var(--slate-700);
    line-height: 1.55;
    padding: 12px 16px;
    background: var(--bg-subtle);
    border-left: 4px solid var(--aegean-blue);
    margin-bottom: 16px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.article-meta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 16px;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.8rem;
    color: var(--slate-600);
}

/* Haber Kapak Görseli Kapsayıcısı */
.article-hero-figure {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 460px;
    margin: 0 0 20px 0;
    border: 1px solid var(--border-light);
    background: var(--navy-950);
    overflow: hidden;
    position: relative;
}
.article-hero-figure img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

/* Haber İçindekiler (Table of Contents - SEO Jump Links) */
.article-toc-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-left: 4px solid var(--navy-900);
    padding: 14px 16px;
    margin-bottom: 20px;
}
.article-toc-title {
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--navy-900);
    margin-bottom: 8px;
}
.article-toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 6px 14px;
    margin: 0 !important;
}
.article-toc-list li {
    font-size: 0.84rem;
    font-weight: 700;
    margin: 0 !important;
}
.article-toc-list a {
    color: var(--aegean-dark);
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 6px;
}
.article-toc-list a:hover {
    text-decoration: underline !important;
}

/* Haber Paylaşım & Google News Abone Barı */
.article-share-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    margin-bottom: 18px;
}
.share-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 3px;
    color: #ffffff !important;
    text-decoration: none !important;
}
.share-whatsapp { background: #16a34a; }
.share-twitter  { background: #0f172a; }
.share-telegram { background: #0284c7; }
.share-gnews    { background: #ea580c; }

/* Haber Metni İçeriği - Tam Taşma Koruması */
.article-content {
    font-size: 1.01rem;
    line-height: 1.75;
    color: #1e293b;
    max-width: 100%;
    overflow-x: hidden;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.article-content * {
    max-width: 100%;
}
.article-content p {
    margin-bottom: 16px;
}
.article-content h2,
.article-content h3,
.article-content h4 {
    color: var(--navy-900);
    font-weight: 800;
    margin: 24px 0 12px;
    line-height: 1.3;
    scroll-margin-top: 90px;
}
.article-content ul,
.article-content ol {
    margin: 0 0 18px 22px;
}
.article-content li {
    margin-bottom: 6px;
}
.article-content a {
    color: var(--aegean-dark);
    text-decoration: underline;
    font-weight: 700;
    word-break: break-word;
}
.article-content img,
.article-content figure,
.article-content video,
.article-content iframe {
    max-width: 100% !important;
    height: auto !important;
    margin: 14px auto;
    border-radius: 2px;
}
.article-content pre,
.article-content code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Haber İçi ve Servis Sayfası Veri Tabloları */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 16px 0;
    border: 1px solid var(--border-hairline);
}

.article-content table,
.data-portal-table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    background: #ffffff;
}
.article-content table th,
.data-portal-table th {
    background: var(--navy-900);
    color: #ffffff;
    font-weight: 800;
    text-align: left;
    padding: 10px 12px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.article-content table td,
.data-portal-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
    word-break: break-word;
}
.article-content table tr:nth-child(even) td,
.data-portal-table tr:nth-child(even) td {
    background: #f8fafc;
}

.update-timestamp-banner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: 0.79rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 3px;
    max-width: 100%;
    flex-wrap: wrap;
}

.legal-notice-box {
    margin-top: 22px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid var(--gold-amber);
    font-size: 0.82rem;
    color: #78350f;
    line-height: 1.5;
}

/* ==================== 8. FOOTER & DİNAMİK POPÜLER ARAMALAR MATRİSİ ==================== */
.site-footer {
    background: var(--navy-950);
    color: #cbd5e1;
    border-top: 3px solid var(--aegean-blue);
    margin-top: 32px;
    padding-top: 28px;
    overflow: hidden;
}

.footer-popular-searches {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 16px;
    margin-bottom: 24px;
}

.fps-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.fps-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #38bdf8;
    letter-spacing: 0.04em;
}

.fps-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.fps-tag {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 4px 10px;
    border-radius: 2px;
}
.fps-tag:hover {
    background: var(--aegean-blue);
    color: #ffffff;
    border-color: var(--aegean-blue);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
    gap: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-col {
    min-width: 0;
}

.footer-col h4 {
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 6px;
    font-size: 0.82rem;
}
.footer-links a:hover {
    color: #38bdf8;
    text-decoration: underline;
}

.footer-districts-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.footer-districts-mini a {
    font-size: 0.75rem;
    color: #94a3b8;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-districts-mini a:hover {
    color: #ffffff;
    border-color: #38bdf8;
}

.footer-bottom {
    padding: 18px 0;
    font-size: 0.78rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* ==================== 9. RESPONSIVE (MOBİL & TABLET) ==================== */
@media (max-width: 1180px) {
    .editorial-main-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
    .ed-col-left {
        grid-column: 1 / -1;
        border-right: none;
        border-bottom: 1px solid var(--border-hairline);
    }
    .quick-services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .qs-card {
        border-bottom: 1px solid var(--border-light);
    }
    .article-layout-grid {
        grid-template-columns: minmax(0, 1fr) 310px;
    }
    .article-layout-grid > .sticky-side-panel:first-child {
        display: none;
    }
    .news-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .container {
        padding: 0 10px;
    }
    .top-terminal-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .terminal-metrics {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    .terminal-right-meta {
        display: none;
    }
    .masthead-row {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 0;
    }
    .header-search-form {
        max-width: 100%;
        order: 3;
        width: 100%;
    }
    .primary-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    .primary-nav a {
        flex-shrink: 0;
    }
    .editorial-main-grid,
    .article-layout-grid,
    .footer-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .sticky-side-panel {
        position: static !important;
    }
    .ed-col-center {
        border-right: none;
        border-bottom: 1px solid var(--border-hairline);
        padding: 12px;
    }
    .quick-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
    .center-subgrid,
    .news-grid-4 {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .subgrid-card {
        border-right: none;
    }
    .manset-caption-overlay {
        padding: 12px;
    }
    .manset-slide-title {
        font-size: 1.08rem;
        margin-bottom: 4px;
    }
    .manset-slide-summary {
        font-size: 0.78rem;
        -webkit-line-clamp: 1;
    }
    .manset-controls-bar {
        padding: 6px 8px;
    }
    .manset-num-btn {
        min-width: 26px;
        height: 26px;
        font-size: 0.74rem;
    }
    .article-main-card {
        padding: 14px;
    }
    .article-h1 {
        font-size: 1.32rem;
    }
    .article-main-card div[style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        font-size: 1.4rem;
    }
    .quick-services-grid {
        grid-template-columns: minmax(0, 1fr) !important;
    }
    .manset-arrow-group {
        display: none;
    }
}
