/* =========================================
   NEWS.CSS - HABERLER SAYFASI ÖZEL STİLLERİ
   (Layout, Hero Alanı, Haber Kartları, Sidebar)
   ========================================= */

/* -----------------------------------------------------------
   1. SAYFA DÜZENİ (Layout)
   ----------------------------------------------------------- */
.news-container { 
    display: flex; 
    gap: 30px; 
    align-items: flex-start; 
    margin-top: 30px; 
    margin-bottom: 50px; 
}

.news-main-column { flex: 1; min-width: 0; }
.news-sidebar-column { width: 340px; flex-shrink: 0; position: sticky; top: 110px; }

@media (max-width: 991px) {
    .news-container { flex-direction: column; }
    .news-sidebar-column { width: 100%; position: static; }
}

/* -----------------------------------------------------------
   2. HERO (MANŞET) BÖLÜMÜ
   ----------------------------------------------------------- */
.hero-news-wrapper { 
    position: relative; 
    height: 450px; 
    border-radius: 12px; 
    overflow: hidden; 
    margin-bottom: 40px; 
    border: 1px solid var(--border-color); 
}

.hero-news-bg { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 1s ease; 
}

.hero-news-wrapper:hover .hero-news-bg { transform: scale(1.05); }

.hero-overlay { 
    position: absolute; 
    bottom: 0; left: 0; 
    width: 100%; 
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 50%, transparent 100%); 
    padding: 40px; 
    z-index: 2; 
    pointer-events: none; 
}

.hero-content { pointer-events: auto; }

.hero-title { 
    font-size: 2.5rem; 
    color: #fff; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); 
    margin-bottom: 10px; 
    font-family: 'Rajdhani', sans-serif; 
    font-weight: 700; 
    text-transform: uppercase; 
}

@media (max-width: 768px) {
    .hero-news-wrapper { height: 300px; }
    .hero-title { font-size: 1.5rem; }
}

/* -----------------------------------------------------------
   3. HABER KARTLARI (Yatay Liste)
   ----------------------------------------------------------- */
.news-card-horizontal { 
    display: flex; 
    background-color: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    overflow: hidden; 
    margin-bottom: 25px; 
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; 
}

.news-card-horizontal:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    border-color: var(--primary); 
}

[data-theme="dark"] .news-card-horizontal:hover { 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6) !important; 
    background-color: #1a1a1a !important; 
}

/* Kart Görseli */
.news-card-img-wrapper { 
    width: 280px; 
    flex-shrink: 0; 
    position: relative; 
    overflow: hidden; 
}

.news-card-img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s ease; 
}

.news-card-horizontal:hover .news-card-img { transform: scale(1.1); }

@media (max-width: 768px) {
    .news-card-horizontal { flex-direction: column; }
    .news-card-img-wrapper { width: 100%; height: 200px; }
}

/* Kart İçeriği */
.news-card-body { 
    padding: 25px; 
    display: flex; 
    flex-direction: column; 
    flex: 1; 
}

.news-card-title { 
    font-family: 'Rajdhani', sans-serif; 
    font-weight: 800; 
    font-size: 1.4rem; 
    line-height: 1.2; 
    margin-bottom: 10px; 
    color: var(--text-main); 
    transition: color 0.2s; 
}

.news-card-horizontal:hover .news-card-title { color: var(--primary); }
[data-theme="dark"] .news-card-title { color: #ffffff !important; }

.news-card-excerpt { 
    color: var(--text-muted); 
    font-size: 0.95rem; 
    line-height: 1.6; 
    margin-bottom: 15px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}

.news-card-footer { 
    margin-top: auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    border-top: 1px solid var(--border-color); 
    padding-top: 15px; 
    font-size: 0.85rem; 
    color: var(--text-muted); 
}

.read-more-btn { 
    font-weight: 700; 
    text-transform: uppercase; 
    color: var(--primary); 
    font-size: 0.8rem; 
    display: flex; 
    align-items: center; 
    gap: 5px; 
}

/* -----------------------------------------------------------
   4. SIDEBAR KATEGORİ LİSTESİ (Kritik Düzeltmeler)
   ----------------------------------------------------------- */
.news-sidebar-column .list-group-item {
    background-color: transparent !important;
    border-bottom: 1px solid var(--border-color) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    color: var(--text-main) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 12px 10px !important;
}

[data-theme="dark"] .news-sidebar-column .list-group-item {
    color: #ffffff !important;
    border-color: #2a2a2a !important;
}

.news-sidebar-column .list-group-item:hover {
    color: var(--primary) !important;
    background-color: rgba(var(--primary-rgb), 0.05) !important; /* RGB dönüşümü yoksa düz renk kullanabilirsin */
    padding-left: 20px !important;
}

.news-sidebar-column .list-group-item i { 
    color: var(--primary) !important; 
}

.news-sidebar-column .badge {
    background-color: var(--primary) !important;
    color: #fff !important;
}

/* -----------------------------------------------------------
   5. BİLEŞENLER VE YARDIMCILAR
   ----------------------------------------------------------- */
/* Badge (Global'de var ama buraya özel override olabilir) */
.badge-static { 
    display: inline-flex; align-items: center; justify-content: center; 
    font-family: 'Rajdhani', sans-serif; font-weight: 800; 
    text-transform: uppercase; color: #ffffff !important; 
    border-radius: 0px !important; box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    z-index: 5; line-height: 1; 
}

/* Sayfalama */
.custom-pagination { display: flex; justify-content: center; }

/* Arama Kutusu (Global Formdan gelmeli ama özelleştirme varsa burada kalabilir) */
/* Not: .form-control-pixel zaten Global.css içinde tanımlı, burada tekrar etmeye gerek yok.
   Eğer sadece bu sayfada farklı davranacaksa buraya ekleyebilirsin, 
   ama kod tekrarını önlemek için sildim. Global.css'deki stil yeterli olacaktır. */