/**
 * 73Haber Professional Clean Stylesheet
 * Version: 4.0 (Final - Clean & Fixed Images)
 */

/* --- 1. CSS DEĞİŞKENLERİ --- */
:root {
    /* Renkler */
    --primary: #e63946;
    --primary-color: #e63946;
    --secondary: #1d3557;
    --dark: #0f172a;
    --dark-bg: #111827;
    
    /* Tipografi & Arka Plan */
    --text-main: #1a202c;
    --text-light: #f3f4f6;
    --text-muted: #718096;
    --bg-light: #f7fafc;
    --white: #ffffff;
    
    /* Efektler */
    --border: #edf2f7;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* --- 2. GLOBAL RESET & BASE --- */
* { box-sizing: border-box; }

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    margin: 0;
    overflow-x: hidden; 
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; display: block; }


/* --- 3. MODERN NAVBAR (SIFIRDAN) --- */
:root {
    --nbar-bg: #111827;
    --nbar-primary: #e63946;
    --nbar-text: #fff;
}

.nbar-wrapper {
    position: fixed;
    top: 0; left: 0; width: 100%;
    background: var(--nbar-bg);
    z-index: 9999;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
}

.nbar-wrapper.shrinked {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
}

.nbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    transition: height 0.4s ease;
}

.nbar-wrapper.shrinked .nbar-inner { height: 60px; }

.nbar-logo {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -2px;
}
.nbar-logo span { color: var(--nbar-primary); }

.nbar-links { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }

.nbar-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 15px;
    border-radius: 4px;
    transition: 0.3s;
}

.nbar-links a:hover, .nbar-links a.active {
    color: #fff;
    background: var(--nbar-primary);
}

.nbar-actions { display: flex; align-items: center; gap: 15px; }

.nbar-search-box {
    position: relative;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
    transition: width 0.3s;
    display: flex; align-items: center;
}
.nbar-search-box.active { width: 200px; background: rgba(0,0,0,0.3); }

.nbar-search-input {
    width: 100%; background: transparent; border: none; color: #fff;
    padding: 0 15px; outline: none; opacity: 0; transition: 0.3s 0.1s;
}
.nbar-search-box.active .nbar-search-input { opacity: 1; }

.nbar-search-btn {
    background: none; border: none; color: #fff; cursor: pointer;
    width: 40px; height: 40px; display: flex; justify-content: center; align-items: center;
}

.nbar-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; width: 30px;
}
.nbar-toggle span { width: 100%; height: 3px; background: #fff; border-radius: 2px; transition: 0.3s; }

.nbar-mobile-menu {
    position: fixed; top: 80px; left: 0; width: 100%;
    background: #0f172a; padding: 20px;
    transform: translateY(-150%); transition: 0.4s ease;
    z-index: 9998; border-bottom: 1px solid var(--nbar-primary);
}
.nbar-wrapper.shrinked .nbar-mobile-menu { top: 60px; }
.nbar-mobile-menu.open { transform: translateY(0); }

.nbar-mobile-links a {
    display: block; color: #fff; text-decoration: none; padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05); font-weight: 600;
}

.nbar-spacer { height: 80px; }
.nbar-wrapper.shrinked ~ .nbar-spacer { height: 60px; }

@media (max-width: 992px) {
    .nbar-links { display: none; }
    .nbar-toggle { display: flex; }
    .nbar-search-box { display: none; }
}


/* --- 4. MODERN MANŞET SLIDER (SIFIRDAN) --- */
.ms-wrapper {
    width: 100%; background: #000; margin-bottom: 25px;
    border-radius: 8px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    font-family: 'Segoe UI', sans-serif;
}

.ms-main {
    position: relative; width: 100%; height: 450px; overflow: hidden; background: #000;
}

.ms-img {
    width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease;
}

.ms-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 80%;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.2), transparent);
    pointer-events: none;
}

.ms-content {
    position: absolute; bottom: 0; left: 0; width: 100%;
    padding: 30px; pointer-events: none; z-index: 2;
}

.ms-tag {
    background: #e63946; color: #fff; padding: 5px 10px; border-radius: 4px;
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    display: inline-block; margin-bottom: 10px;
}

.ms-title {
    color: #fff; font-size: 32px; font-weight: 800; line-height: 1.2; margin: 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    opacity: 0; transform: translateY(20px);
    animation: msFadeUp 0.6s forwards;
}

@keyframes msFadeUp { to { opacity: 1; transform: translateY(0); } }

.ms-nav {
    display: flex; background: #0f131a; padding: 10px; gap: 5px;
    justify-content: center; flex-wrap: wrap;
}

.ms-nav-item {
    width: 35px; height: 35px; background: #1f2937; color: #aaa;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-weight: 700; font-size: 14px;
    border-radius: 4px; position: relative; overflow: hidden;
    transition: 0.2s;
}

.ms-nav-item:hover, .ms-nav-item.active { background: #e63946; color: #fff; }

.ms-progress {
    position: absolute; bottom: 0; left: 0; height: 3px;
    background: rgba(255,255,255,0.5); width: 0%;
}

@media(max-width: 768px) {
    .ms-main { height: 250px; }
    .ms-title { font-size: 18px; }
    .ms-content { padding: 15px; }
    .ms-nav-item { width: 30px; height: 30px; font-size: 12px; }
}


/* --- 5. GRID & KARTLAR (RESİM BOYUTLARI DÜZELTİLDİ) --- */

.sub-headline-grid {
    display: grid;
    gap: 24px;
    margin-top: 30px;
}

/* Varsayılan Grid (Otomatik Sütunlar) */
.sub-headline-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* 3 Sütunlu Grid (.grid-3 sınıfı ile) */
.sub-headline-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

/* Mobil Uyum */
@media (max-width: 768px) {
    .sub-headline-grid, .sub-headline-grid.grid-3 {
        grid-template-columns: 1fr;
    }
}

/* === A. NEWS-CARD (Son Eklenenler) === */
.news-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

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

/* !!! CRUCIAL FIX !!! */
.news-card img {
    width: 100%;
    aspect-ratio: 16 / 9; /* 16:9 Oranı */
    object-fit: cover;     /* Resmi kesip kutuya sığdır */
    height: auto;          /* Yüksekliği otomatik hesapla */
    background-color: #eee;
}

.news-card .card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-card .card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-main);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card .card-meta {
    margin-top: auto;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* === B. NEWS-CARD-ITEM (Kategori Blokları İçin) === */
.news-card-item {
    display: block;
    border: none;
    background: #fff;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.news-card-item .img-wrapper {
    position: relative;
    overflow: hidden;
    height: auto !important; /* CSS ile çakışmayı önler */
    background-color: #eee;
}

/* !!! CRUCIAL FIX (Kategori İçin) !!! */
.news-card-item .img-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 9; /* 16:9 Oranı */
    object-fit: cover;     /* Resmi kesip kutuya sığdır */
    height: auto;
}

.news-card-item .card-body-custom { padding: 15px; }

.news-card-item h6 {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0;
    color: #2c3e50;
    transition: color 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-item:hover h6 { color: #000; }


/* --- 6. KATEGORİ BLOKLARI --- */
.modern-cat-block {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
}

/* Renk Desteği (CSS Variable) */
.modern-cat-block::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 6px;
    background-color: var(--cat-color, #333); 
}

.block-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    background-color: #fcfcfc;
}

.block-title-custom {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
    
.block-title-custom::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 10px;
}

.btn-custom-cat {
    font-size: 0.85rem;
    padding: 5px 15px;
    border-radius: 20px;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    transition: opacity 0.2s;
}
.btn-custom-cat:hover { opacity: 0.8; }


/* --- 7. SIDEBAR TASARIMLARI --- */

/* Tabs */
.sidebar-tabs-container {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #eee;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
}

.nav-tabs-custom { display: flex; background: #f8f9fa; border-bottom: 1px solid #eee; }

.tab-btn {
    flex: 1; padding: 14px 5px; border: none; background: none;
    font-size: 12px; font-weight: 800; color: #777;
    text-transform: uppercase; cursor: pointer; transition: 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover { color: var(--primary); background: #f1f1f1; }
.tab-btn.active { color: var(--primary); background: #fff; border-bottom: 3px solid var(--primary); }

.tab-content-custom { position: relative; }
.tab-pane-custom {
    padding: 0;
    animation: fadeIn 0.4s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* Sidebar Liste Öğeleri */
.sidebar-list-item {
    display: flex; align-items: center; gap: 12px; padding: 14px 15px;
    border-bottom: 1px solid #f5f5f5; text-decoration: none !important; transition: 0.2s;
    background: #fff;
}
.sidebar-list-item:last-child { border-bottom: none; }
.sidebar-list-item:hover { background: #fcfcfc; transform: translateX(3px); }

.sidebar-list-img { 
    width: 75px; height: 55px; border-radius: 6px; object-fit: cover; flex-shrink: 0; border: 1px solid #eee; 
}

.sidebar-list-info h4 { 
    font-size: 13px; font-weight: 700; margin: 0; color: #333; line-height: 1.4; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
}

/* Yazarlar Widget */
.opinion-widget { 
    background: #111; border-radius: 12px; padding: 20px; margin-bottom: 30px; 
}

.opinion-header { 
    padding-bottom: 15px; border-bottom: 1px solid #222; margin-bottom: 15px; 
    display: flex; justify-content: space-between; align-items: center; 
}

.opinion-header h3 { font-size: 14px; font-weight: 900; color: #fff; letter-spacing: 1px; margin: 0; }

.opinion-item { 
    display: flex; padding: 12px 0; gap: 15px; align-items: center; 
    text-decoration: none !important; transition: 0.3s; 
}

.opinion-item:hover { opacity: 0.8; }
.opinion-item img { 
    width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--primary); 
    object-fit: cover; padding: 2px; background: #fff; 
}

.opinion-info { flex: 1; }

.author-name-side { 
    font-size: 11px; color: var(--primary); font-weight: 800; text-transform: uppercase; 
    display: block; margin-bottom: 4px; 
}

.article-title-side { 
    font-size: 13px; color: #eee; font-weight: 500; line-height: 1.3; 
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; 
}

/* Sticky Reklam */
.sidebar-ad-fixed { 
    position: sticky; top: 100px; text-align: center; 
    background: #fff; padding: 10px; border-radius: 12px; border: 1px solid #eee; 
}

/* --- 8. DETAY SAYFASI --- */
.detail-wrapper { display: flex; gap: 30px; align-items: flex-start; }
.main-stream { flex: 0 0 calc(70% - 30px); max-width: calc(70% - 30px); }
.side-stream { flex: 0 0 30%; max-width: 30%; position: sticky; top: 90px; }

.article-container { background: #fff; border-radius: 15px; overflow: hidden; box-shadow: 0 5px 25px rgba(0,0,0,0.05); margin-bottom: 50px; border: 1px solid #eee; }
.article-header { padding: 40px 40px 20px; }
.article-cat-badge { background: var(--primary); color: #fff; padding: 5px 15px; border-radius: 5px; font-weight: 700; font-size: 12px; text-transform: uppercase; margin-bottom: 15px; display: inline-block; }
.article-title { font-size: 34px; font-weight: 900; line-height: 1.2; color: #111; margin-bottom: 20px; }
.article-meta { display: flex; align-items: center; gap: 20px; color: #888; font-size: 13px; border-top: 1px solid #eee; padding-top: 20px; }
.article-main-img { width: 100%; height: auto; display: block; }
.article-content { padding: 40px; font-size: 19px; line-height: 1.8; color: #333; }

.comment-list-box { padding: 0 40px; margin-bottom: 20px; }
.single-comment { background: #f8f9fa; padding: 15px; border-radius: 10px; margin-bottom: 10px; border-left: 4px solid var(--primary); }
.comment-area { background: #fdfdfd; padding: 40px; border-top: 1px solid #eee; }
.btn-submit { background: var(--primary); color: #fff; border: none; padding: 12px 30px; border-radius: 8px; font-weight: 700; transition: 0.3s; width: 100%; }

.related-news { background: #fff; padding: 30px 40px; border-top: 1px solid #eee; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.related-card { text-decoration: none !important; }
.related-img-container { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 8px; margin-bottom: 8px; border: 1px solid #eee; }
.related-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.related-card:hover img { transform: scale(1.1); }
.related-card h6 { font-size: 13px; font-weight: 700; color: #333; line-height: 1.3; height: 35px; overflow: hidden; }

/* --- 9. MOBİL UYUMLULUK --- */
@media (max-width: 992px) {
    .detail-wrapper { flex-direction: column; }
    .main-stream, .side-stream { flex: 0 0 100%; max-width: 100%; }
    .side-stream { position: static; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .sub-headline-grid { grid-template-columns: 1fr; }
    
    .article-title { font-size: 24px; }
    .article-header { padding: 20px; }
    .article-content { padding: 20px; font-size: 16px; }
    
    .nbar-logo { font-size: 24px; }
    
    .ms-main { height: 260px; } 
    .ms-title { font-size: 18px; line-height: 1.3; }
    .ms-content { padding: 15px; }
    
    .ms-nav-item { width: 30px; height: 30px; font-size: 12px; }
    .ms-nav { padding: 5px; gap: 3px; }
}

.article-main-img {
    width: 100%;
    aspect-ratio: 16 / 9; /* !!! 16:9 Oranı (Sinema Formatı) SABİTLENİYOR !!! */
    object-fit: cover;     /* !!! Resmi keserek kutuya sığdırır, taşmaz !!! */
    height: auto;          /* Yüksekliği otomatik hesaplar */
    border-radius: 8px;    /* Kenarları yuvarlar */
    margin-bottom: 25px;   /* Yazıdan biraz boşluk */
}