/* =========================================
   DETAIL.CSS - HABER DETAY SAYFASI STİLLERİ
   (Makale Okuma, Yorumlar, Sidebar)
   ========================================= */

/* -----------------------------------------------------------
   1. SAYFA İSKELETİ (Layout)
   ----------------------------------------------------------- */
.news-container { 
    display: flex; 
    gap: 30px; 
    align-items: flex-start; 
    margin-top: 20px; 
    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. MAKALE İÇERİĞİ (Article Content)
   ----------------------------------------------------------- */
.article-box { 
    background-color: var(--bg-card); 
    border: 1px solid var(--border-color); 
    border-radius: 12px; 
    overflow: hidden; 
}

.article-header-img-wrapper { 
    position: relative; 
    width: 100%; 
    aspect-ratio: 16/9; 
    overflow: hidden; 
    border-bottom: 1px solid var(--border-color); 
}

.article-header-img { width: 100%; height: 100%; object-fit: cover; }
.article-content-wrapper { padding: 40px; }

.article-title { 
    font-family: 'Rajdhani', sans-serif; 
    font-weight: 800; 
    font-size: 2.5rem; 
    line-height: 1.1; 
    color: var(--text-main); 
    margin-bottom: 20px; 
}
[data-theme="dark"] .article-title { color: #ffffff !important; }

.article-meta { 
    display: flex; align-items: center; flex-wrap: wrap; 
    gap: 20px; color: var(--text-muted); 
    font-size: 0.9rem; margin-bottom: 30px; 
    padding-bottom: 20px; border-bottom: 1px solid var(--border-color); 
}

.article-body { font-size: 1.15rem; line-height: 1.9; color: var(--text-main); }
[data-theme="dark"] .article-body { color: #e0e0e0 !important; }
[data-theme="dark"] .article-body strong { color: #fff !important; }

/* -----------------------------------------------------------
   3. SIDEBAR BİLEŞENLERİ (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-bottom-color: #2a2a2a !important;
}

.news-sidebar-column .list-group-item:hover {
    background-color: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary) !important;
    padding-left: 20px !important;
    border-color: var(--primary) !important;
}

.news-sidebar-column .list-group-item i { color: var(--primary) !important; opacity: 0.8; }
.news-sidebar-column .badge { background-color: var(--primary) !important; color: #fff !important; }

/* Popüler Haber Linkleri */
.news-sidebar-column a.text-main { color: var(--text-main) !important; transition: color 0.2s ease; }
[data-theme="dark"] .news-sidebar-column a.text-main { color: #e0e0e0 !important; }
.news-sidebar-column a.text-main:hover { color: var(--primary) !important; }

/* -----------------------------------------------------------
   4. YORUM ALANI (Comments)
   ----------------------------------------------------------- */
.pixel-comments-section {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.pixel-comments-section h4, 
.comment-form-box h5 {
    color: var(--text-main) !important;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}
[data-theme="dark"] .pixel-comments-section h4 { color: #fff !important; }

/* -----------------------------------------------------------
   5. BİLEŞENLER (Video & Toast)
   ----------------------------------------------------------- */
.video-container { 
    position: relative; padding-bottom: 56.25%; 
    height: 0; overflow: hidden; margin: 30px 0; 
    border-radius: 12px; background: #000; 
}
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.pixel-toast {
    position: fixed; bottom: 30px; right: 30px; 
    background-color: var(--primary); color: #fff;
    padding: 12px 25px; border-radius: 50px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999; transform: translateY(100px); opacity: 0; 
    transition: all 0.4s ease; display: flex; align-items: center; 
    gap: 10px; font-weight: bold;
}
.pixel-toast.show { transform: translateY(0); opacity: 1; }
@media (max-width: 768px) {
    .news-card-horizontal {
        flex-direction: column !important; /* Resmi ve yazıyı alt alta al */
        height: auto !important;
    }

    .news-card-img-wrapper {
        width: 100% !important;
        height: 200px !important;
    }

    .news-card-body {
        padding: 15px !important;
    }

    .hero-news-wrapper {
        height: 300px !important; /* Manşeti küçült */
    }

    .hero-title {
        font-size: 1.4rem !important;
    }
}
/* news-show.css veya detail.css içine ekle */

/* HABER DETAY MOBİL TOPARLAYICI */
@media (max-width: 991px) {
    /* Ana taşıyıcıyı dikey yap */
    .news-container {
        display: block !important;
        padding: 10px !important;
    }

    /* Makale kutusunun iç boşluğunu mobilde azalt */
    .article-content-wrapper {
        padding: 20px 15px !important;
    }

    /* Başlığı mobilde okunabilir boyuta getir */
    .article-title {
        font-size: 1.6rem !important;
        line-height: 1.2 !important;
    }

    /* Sidebar'ı haberin altına it ve genişlet */
    .news-sidebar-column {
        width: 100% !important;
        margin-top: 30px !important;
        position: relative !important;
        top: 0 !important;
    }

    /* Resimlerin taşmasını engelle */
    .article-header-img-wrapper {
        aspect-ratio: 16/9 !important;
        height: auto !important;
    }

    /* Yorumlardaki aşırı boşlukları mobilde sil */
    .comment-wrapper .ms-5 {
        margin-left: 15px !important;
        padding-left: 10px !important;
    }
    
    .comment-item-card {
        padding: 10px !important;
    }
}