/*
Theme Name: Özel Haber Teması V3 (Sözcü Style)
Theme URI: https://siteadresin.com
Author: Senin Adın & AI
Description: Profesyonel Header ve Piyasa Verili Tema
Version: 1.5
*/

/* --- GENEL AYARLAR --- */
body {
    background-color: #f4f6f8;
    font-family: 'Roboto', sans-serif;
    color: #212529;
    overflow-x: hidden; /* Taşmaları engelle */
}

a { text-decoration: none; color: inherit; }
a:hover { color: inherit; }

/* Font Tanımları */
h1, h2, h3, h4, h5, h6, .navbar-brand, .btn-theme {
    font-family: 'Oswald', sans-serif !important;
}

/* --- 1. KATMAN: ÜST HEADER (KIRMIZI ALAN) --- */
.top-header-brand {
    /* Rengi functions.php'den dinamik alıyor ama varsayılanı burada */
    background-color: #dc3545;
    min-height: 60px;
}

.logo-area img {
    max-height: 45px; /* Logo yüksekliğini sınırla */
    width: auto;
}

.header-tools .btn-theme {
    background-color: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    font-size: 13px;
    padding: 5px 15px;
    transition: all 0.3s ease;
}

.header-tools .btn-theme:hover {
    background-color: #fff;
    color: #dc3545; /* Tema rengine döner */
}

/* Arama Kutusu */
.header-tools form input::placeholder {
    font-size: 13px;
    color: #999;
}

/* --- 2. KATMAN: ANA MENÜ (BEYAZ ALAN) --- */
.navbar {
    padding: 0; /* Bootstrap boşluğunu sıfırla */
}

.navbar-nav .nav-link {
    color: #222 !important;
    font-size: 15px;
    font-weight: 700; /* Kalın font */
    padding: 18px 15px !important;
    font-family: 'Roboto', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 4px solid transparent;
    transition: all 0.2s ease;
}

/* Menü Hover Efekti */
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: #dc3545 !important; /* Kırmızı */
    background-color: #fcfcfc;
    border-bottom: 4px solid #dc3545;
}

/* --- 3. KATMAN: PİYASA BANDI --- */
.piyasa-bandi {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    white-space: nowrap; /* Satır kaymasını engelle */
    height: 45px;
}

.piyasa-item {
    display: inline-flex;
    align-items: center;
    padding: 0 15px;
    border-right: 1px solid #eee;
    height: 100%;
}

.piyasa-item i {
    font-size: 10px;
    margin-right: 3px;
}

/* Mobilde Piyasa Bandı Kaydırma */
.piyasa-bandi .overflow-auto::-webkit-scrollbar {
    display: none; /* Scrollbar'ı gizle */
}

/* --- MANŞET SLIDER ALANI --- */
.carousel-inner {
    border-radius: 4px;
    overflow: hidden;
}

.carousel-caption {
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0) 100%);
    bottom: 0; left: 0; right: 0;
    padding: 60px 20px 20px 20px;
    text-align: left;
}

.carousel-caption h3 {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    margin: 0;
}

.carousel-item img {
    transition: transform 0.6s ease;
}
.carousel-item:hover img {
    transform: scale(1.02);
}

/* --- SÜRMANŞET (YAN KUTULAR) --- */
.yan-kutu-container {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 195px; /* Yükseklik sabitleme */
}

.yan-kutu-baslik {
    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) 100%);
    color: #fff;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

/* --- SON DAKİKA BANDI --- */
.bg-warning {
    background-color: #ffc107 !important;
    border-radius: 4px;
}

.son-dakika-badge {
    animation: flash 2s infinite;
    font-size: 12px;
    padding: 5px 10px;
}

@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* --- HABER DETAY SAYFASI --- */
.haber-baslik {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: #000;
    font-family: 'Oswald', sans-serif;
}

.haber-meta {
    font-size: 14px;
    color: #666;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 10px 0;
    margin: 15px 0 25px 0;
}

.haber-icerik {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    font-family: 'Georgia', serif; /* Okuma kolaylığı için serif */
}

.haber-icerik p {
    margin-bottom: 25px;
}

/* --- SIDEBAR --- */
.list-group-item {
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 15px 10px;
    transition: background 0.2s;
}
.list-group-item:hover {
    background-color: #f9f9f9;
}
.list-group-item:last-child {
    border-bottom: none;
}

/* --- RESPONSIVE DÜZELTMELER --- */
@media (max-width: 768px) {
    .header-tools form { display: none !important; } /* Mobilde arama kutusunu gizle */
    .piyasa-bandi { overflow-x: auto; } /* Mobilde yatay kaydır */
    .haber-baslik { font-size: 1.8rem; }
    .carousel-item { height: 250px !important; } /* Mobilde slider küçülsün */
    .carousel-caption h3 { font-size: 16px; }
}

/* ==================================================== */
/* --- YORUM ALANI ÖZELLEŞTİRMESİ (SÖZCÜ/HABERTÜRK) --- */
/* ==================================================== */

.comments-area {
    font-family: 'Roboto', sans-serif;
}
.comments-title {
    font-family: 'Oswald', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f172a;
    text-transform: uppercase;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}
.comment-body {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
}
.comment-author img {
    border-radius: 50%;
    margin-right: 15px;
    float: left;
}
.comment-author cite {
    font-style: normal;
    font-weight: 700;
    color: #0f172a;
    font-size: 15px;
}
.comment-meta a {
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
    margin-left: 10px;
}
.comment-content {
    clear: both;
    margin-top: 15px;
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
}
.reply {
    position: absolute;
    top: 20px;
    right: 20px;
}
.comment-reply-link {
    background: var(--tema-ana-renk, #e11d2e);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s;
}
.comment-reply-link:hover {
    background: #0f172a;
    color: #fff;
}
.children .comment-body {
    background: #fff;
    border-left: 3px solid var(--tema-ana-renk, #e11d2e);
}
.comment-respond {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 8px;
}
.comment-reply-title {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    margin-bottom: 15px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #f8fafc;
    font-family: inherit;
    margin-bottom: 15px;
}
.comment-form input[type="submit"] {
    background: var(--tema-ana-renk, #e11d2e);
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}
.comment-form input[type="submit"]:hover {
    background: #0f172a;
}