:root {
    /* --- VARSAYILAN MOD (Görseldeki Gibi) --- */
    /* Menü Arkaplanı: Koyu Gri/Siyah */
    --navbar-bg: #27272a; 
    /* Menü Yazısı: Beyaz */
    --navbar-text: #ffffff; 
    /* Vurgu Rengi (Hover/Aktif): Turuncu */
    --primary: #f5841d; 
    /* Aktif Buton Yazısı: Beyaz */
    --active-text: #ffffff; 

    /* Sayfa Geneli */
    --bg-color: #F9FBFE;
    --text-color: #05072A;
    --card-bg: #ffffff;
    --border-color: #ddd;
}

/* --- KARANLIK MOD (Renkleri Ters Çevirdik) --- */
body[data-theme="dark"] {
    /* Menü Arkaplanı: Siyah yerine TURUNCU */
    --navbar-bg: #f5841d; 
    /* Menü Yazısı: Beyaz yerine SİYAH */
    --navbar-text: #010053; 
    /* Vurgu Rengi: Turuncu yerine SİYAH */
    --primary: #010053; 
    /* Aktif Buton Yazısı: Siyah üstüne Turuncu veya Beyaz (Okunabilirlik için Beyaz seçtim) */
    --active-text: #ffffff; 

    /* Sayfa Geneli */
    --bg-color: #050728;
    --text-color: #ffffff;
    --card-bg: #080B48;
    --border-color: #fff;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Arial', sans-serif;
    transition: background 0.3s, color 0.3s;
}

/* Link Sıfırlama */
a { text-decoration: none !important; color: inherit; transition: 0.3s; }

/* =========================================
   NAVBAR & MENÜ TASARIMI
   ========================================= */
.navbar {
    background-color: var(--navbar-bg) !important;
    padding: 0; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.navbar-nav .nav-link {
    color: var(--navbar-text) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 20px 18px !important; /* Geniş tıklama alanı */
    transition: all 0.3s ease;
}

/* HOVER ve AKTİF DURUMU (Kutulu Yapı) */
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--primary); /* Varsayılan: Turuncu, Dark: Siyah */
    color: var(--active-text) !important;
}

/* =========================================
   DROPDOWN (ALT MENÜ)
   ========================================= */
.dropdown-menu {
    background-color: var(--navbar-bg); /* Ana menü rengini alır */
    border: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.dropdown-item {
    color: var(--navbar-text) !important;
    padding: 12px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Hafif çizgi */
    transition: all 0.2s ease;
}
.dropdown-item:last-child { border-bottom: none; }

/* Alt Menü Hover Efekti */
.dropdown-item:hover {
    background-color: var(--primary); /* Vurgu rengi */
    color: var(--active-text) !important;
    padding-left: 25px; /* Kayma animasyonu */
}

/* =========================================
   GENEL BİLEŞENLER
   ========================================= */
.text-primary { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }

/* Butonlar */
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff;
}
.btn-primary:hover {
    filter: brightness(1.1); /* Hafif parlatma */
}

/* Form Elemanları */
.form-control {
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(245, 132, 29, 0.25);
}

/* Kartlar */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
}

/* Footer */
footer {
    background-color: #111;
    color: #aaa;
    border-top: 5px solid var(--primary);
}

/* =========================================
   SAYFA İÇERİK STİLLERİ (OKUNABİLİRLİK)
   ========================================= */

/* İçerik Alanı Genel Ayarları */
.content-area {
    font-size: 1.1rem; /* Yazı boyutu ideal okuma için büyütüldü */
    line-height: 1.8;  /* Satır araları açıldı, ferah görünüm */
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Daha modern font */
}

/* Paragraflar arası boşluk */
.content-area p {
    margin-bottom: 20px;
}

/* Editörden gelen görselleri sınırlama (Taşmayı önler) */
.content-area img {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Başlıklar (h1, h2, h3...) */
.content-area h1, 
.content-area h2, 
.content-area h3 {
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary); /* Başlıklar her zaman Turuncu olsun */
}

/* Liste Maddeleri */
.content-area ul, 
.content-area ol {
    margin-bottom: 20px;
    padding-left: 20px;
}
.content-area li {
    margin-bottom: 10px;
}

/* --- KARANLIK MOD ÖZEL DÜZELTMELERİ --- */
/* Bu kısım ekran görüntüsündeki okunmama sorununu çözer */

body[data-theme="dark"] .content-area {
    color: #e0e0e0 !important; /* Düz metinleri Kırık Beyaz yap */
}

/* Karanlık modda paragraflar, spanlar ve divler kesinlikle açık renk olsun */
body[data-theme="dark"] .content-area p,
body[data-theme="dark"] .content-area span,
body[data-theme="dark"] .content-area div,
body[data-theme="dark"] .content-area li {
    color: #e0e0e0 !important;
    background-color: transparent !important; /* Editörden gelen arka planları temizle */
}

/* Kalın yazıları (Bold) Turuncu veya Tam Beyaz yap */
body[data-theme="dark"] .content-area strong,
body[data-theme="dark"] .content-area b {
    color: #ffffff !important;
}

/* İçerik içindeki linkler */
body[data-theme="dark"] .content-area a {
    color: var(--primary) !important;
    text-decoration: underline;
}

/* Sayfa Başlığı (Page Header) */
.page-title {
    color: var(--primary) !important;
    font-weight: 800;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
    margin-bottom: 30px;
}

/* =========================================
   SAYFA İÇERİĞİ KARANLIK MOD DÜZELTMESİ
   ========================================= */

/* 1. Karanlık Modda Tüm Yazıları Açık Renk Yap */
body[data-theme="dark"] .content-area {
    color: #e0e0e0 !important; /* Kırık beyaz (Gözü yormaz) */
}

/* 2. Editörden Gelen Paragraf, Span, Div ve Listeleri Zorla Beyazlat */
body[data-theme="dark"] .content-area p,
body[data-theme="dark"] .content-area span,
body[data-theme="dark"] .content-area div,
body[data-theme="dark"] .content-area li,
body[data-theme="dark"] .content-area td {
    color: #e0e0e0 !important;
    background-color: transparent !important; /* Kopyala-yapıştır arka planlarını temizle */
}

/* 3. Başlıkları (H1, H2...) Turuncu Yap ki Parlasın */
body[data-theme="dark"] .content-area h1, 
body[data-theme="dark"] .content-area h2, 
body[data-theme="dark"] .content-area h3,
body[data-theme="dark"] .content-area h4,
body[data-theme="dark"] .content-area h5,
body[data-theme="dark"] .content-area h6 {
    color: var(--primary) !important; /* Senin belirlediğin Turuncu */
    font-weight: bold;
}

/* 4. Sayfa Ana Başlığını Düzelt (TARİHÇE yazısı) */
body[data-theme="dark"] .page-title {
    color: var(--primary) !important;
    border-bottom-color: #555 !important; /* Alt çizgiyi belirginleştir */
}

/* 5. Breadcrumb (Anasayfa > Tarihçe) Linklerini Düzelt */
body[data-theme="dark"] .breadcrumb-item a {
    color: #aaa !important;
}
body[data-theme="dark"] .breadcrumb-item.active {
    color: #fff !important;
}

/* 6. İçerikteki Linkler */
body[data-theme="dark"] .content-area a {
    color: var(--primary) !important;
    text-decoration: underline;
}

/* --- YATAY KAYDIRMA ALANLARI (SCROLL) --- */
.scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px 5px 20px 5px; /* Alt boşluk scrollbar için */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox ince çubuk */
    scrollbar-color: var(--primary) #eee;
}

/* Scrollbar Tasarımı (Chrome/Safari) */
.scroll-wrapper::-webkit-scrollbar { height: 8px; }
.scroll-wrapper::-webkit-scrollbar-track { background: #eee; border-radius: 4px; }
.scroll-wrapper::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

/* Kart Stilleri */
.scroll-item {
    min-width: 280px; /* Kart genişliği */
    max-width: 280px;
    flex: 0 0 auto;
    transition: transform 0.3s;
}
.scroll-item:hover { transform: translateY(-5px); }

/* Video Thumbnail */
.video-thumb {
    position: relative;
    height: 160px;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: 0.3s; }
.video-thumb:hover img { opacity: 1; }
.video-thumb i {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #fff; font-size: 40px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
/* --- GÖRSEL DÜZENLEMELERİ (FOTOĞRAFLAR VE SLIDER) --- */

/* Haber Kartı Resimleri (Slider ve Pinler) */
.news-thumb {
    width: 100%;
    height: 220px; /* Yüksekliği sabitledik */
    object-fit: cover; /* Resmi kutuya sığdırır, uzatmaz */
    border-radius: 8px 8px 0 0;
    transition: transform 0.3s;
}

/* Galeri Resimleri */
.gallery-thumb {
    width: 300px;      /* Genişlik */
    height: 200px;     /* Yükseklik */
    object-fit: cover; /* Görüntü bozulmasın */
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}
.gallery-thumb:hover {
    transform: scale(1.05); /* Üzerine gelince hafif büyüsün */
}

/* Kartların Hover Efekti */
.card:hover .news-thumb {
    transform: scale(1.03); /* Resim hafif yakınlaşsın */
}
.card {
    overflow: hidden; /* Resim büyürken karttan taşmasın */
}
/* --- KAYDIRMA ÇUBUĞUNU GİZLEME VE BUTONLAR --- */

/* Çubuğu (Scrollbar) Gizle */
.scroll-wrapper {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}
.scroll-wrapper::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* Kapsayıcı (Butonları Konumlandırmak İçin) */
.scroll-container {
    position: relative; /* Butonlar buna göre hizalanacak */
    display: flex;
    align-items: center;
}

/* Kaydırma Butonları */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: var(--primary); /* Temaya uygun renk */
    color: #fff;
    border: 3px solid #fff; /* Beyaz çerçeve */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s;
    opacity: 0.9;
}
.scroll-btn:hover {
    transform: translateY(-50%) scale(1.1); /* Büyüme efekti */
    opacity: 1;
}

/* Sol Buton */
.scroll-btn.left { left: -20px; }

/* Sağ Buton */
.scroll-btn.right { right: -20px; }

/* Mobilde butonları biraz küçült ve içeri al */
@media (max-width: 768px) {
    .scroll-btn { width: 35px; height: 35px; font-size: 14px; }
    .scroll-btn.left { left: -10px; }
    .scroll-btn.right { right: -10px; }
}
/* --- GÜNCELLENMİŞ KAYDIRMA BUTONLARI (NETFLIX TARZI) --- */

.scroll-container {
    position: relative; /* Butonlar resimlerin üzerinde dursun diye */
    overflow: hidden;   /* Taşmaları gizle */
}

.scroll-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto; /* Dikeyde ortala */
    width: 50px;
    height: 100%; /* Resim boyu kadar alan kaplasın (Tıklaması kolay olsun) */
    background: rgba(0, 0, 0, 0.3); /* YARI SAYDAM SİYAH */
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0; /* Normalde görünmesin */
}

/* Mouse üzerine gelince butonlar görünsün */
.scroll-container:hover .scroll-btn {
    opacity: 1;
}

/* Butonun üzerine gelince biraz daha koyulaşsın */
.scroll-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.scroll-btn.left { left: 0; }
.scroll-btn.right { right: 0; }

.scroll-btn i {
    font-size: 24px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.8);
}

/* --- BANNER DÜZELTMESİ --- */
.main-banner {
    width: 100%;
    height: auto; /* Kesilmeyi engeller, orjinal boyutu korur */
    display: block;
}

/* --- OPTİMİZASYON VE GÖRÜNÜM --- */
.news-thumb, .gallery-thumb {
    /* Görsel kalitesini korurken kutuya sığdır */
    width: 100%;
    height: 200px; 
    object-fit: cover; 
}

/* Mobilde butonlar hep görünsün */
@media (max-width: 768px) {
    .scroll-btn { opacity: 1; width: 30px; background: rgba(0,0,0,0.5); }
}
/* --- KAYDIRMA ALANI VE BUTONLAR (NETFLIX TARZI - DÜZELTİLMİŞ) --- */

/* Kapsayıcı: Butonları içinde tutar */
.scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden; /* Dışarı taşanları gizle */
    padding: 0;
}

/* Kaydırma Alanı (İçerik) */
.scroll-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 15px;
    padding: 10px 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Mobilde akıcı kaydırma */
    
    /* Kaydırma Çubuğunu Gizle */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}
.scroll-wrapper::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* Kartların Boyutları ve Hizalaması */
.scroll-item {
    flex: 0 0 auto; /* Kartlar sıkışmasın */
    transition: transform 0.3s;
}
/* Mobilde kartlar ekranın %85'ini kaplasın ki yandaki kartın ucu görünsün */
@media (max-width: 768px) {
    .scroll-item {
        min-width: 85vw !important;
        max-width: 85vw !important;
    }
}

/* --- BUTONLAR --- */
.scroll-btn {
    position: absolute;
    top: 50%; /* Dikeyde ortala */
    transform: translateY(-50%); /* Tam ortalamak için yukarı çek */
    width: 40px;
    height: 80px; /* Dikdörtgen yapı */
    background: rgba(0, 0, 0, 0.5); /* Yarı saydam siyah */
    color: #fff;
    border: none;
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Normalde gizli */
    transition: opacity 0.3s, background 0.3s;
}

/* Mouse üzerine gelince butonlar görünsün */
.scroll-container:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: rgba(0, 0, 0, 0.8); /* Üzerine gelince koyulaş */
}

.scroll-btn.left { 
    left: 0; 
    border-radius: 0 5px 5px 0; 
}
.scroll-btn.right { 
    right: 0; 
    border-radius: 5px 0 0 5px; 
}

/* MOBİLDE BUTON AYARLARI */
@media (max-width: 768px) {
    /* Mobilde butonlar hep görünsün ama daha küçük olsun */
    .scroll-btn {
        opacity: 0.6; 
        width: 30px;
        height: 60px;
    }
    .scroll-container:hover .scroll-btn {
        opacity: 1;
    }
}

/* --- RESİM AYARLARI --- */
.news-thumb, .gallery-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}
.main-banner {
    width: 100%;
    height: auto;
    display: block;
}