/* =====================================================
   CESUR HABER - Ana Stil Dosyası
   Tema: Kırmızı - Siyah - Beyaz
   ===================================================== */

:root {
    --color-red: #C8102E;
    --color-red-dark: #9A0C23;
    --color-black: #0A0A0A;
    --color-dark-gray: #1F1F1F;
    --color-text: #1A1A1A;
    --color-text-muted: #5A5A5A;
    --color-border: #E2E2E2;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F4F4F4;
    --font-display: 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
    --font-body: Georgia, 'Times New Roman', serif;
    --font-ui: -apple-system, 'Segoe UI', Arial, sans-serif;
    --max-width: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg-alt); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }

/* ===== ÜST ŞERİT ===== */
.top-strip { display: none; }

/* ===== ANA HEADER ===== */
.main-header { background: #FFFFFF; border-bottom: 4px solid var(--color-red); }
.main-header .container { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px; }
.logo-text { font-family: var(--font-display); font-weight: 900; font-size: 38px; letter-spacing: -1px; color: var(--color-black); text-transform: uppercase; line-height: 1; }
.logo-text span { color: var(--color-red); }
.logo-slogan { font-family: var(--font-ui); font-size: 11px; color: #666; letter-spacing: 2px; text-transform: uppercase; margin-top: 2px; }
.header-ad-slot { display: flex; align-items: center; justify-content: center; min-height: 90px; max-width: 100%; overflow: hidden; }
.header-ad-slot img { max-width: 100% !important; height: auto !important; }

/* ===== NAVİGASYON ===== */
.main-nav { background: var(--color-red); position: relative; z-index: 50; }
.main-nav .container { display: flex; }
.main-nav ul { display: flex; flex-wrap: wrap; }
.main-nav a { display: block; padding: 14px 18px; font-family: var(--font-ui); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.4px; color: #fff; transition: background 0.15s; }
.main-nav a:hover, .main-nav a.active { background: var(--color-black); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; padding: 12px 16px; cursor: pointer; }

/* ===== SON DAKİKA BANDI ===== */
.breaking-bar { background: var(--color-black); color: #fff; border-bottom: 1px solid #2a2a2a; position: relative; z-index: 40; }
.breaking-bar .container { display: flex; align-items: center; height: 42px; overflow: hidden; }
.breaking-label { background: var(--color-red); color: #fff; font-family: var(--font-ui); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; padding: 6px 22px 6px 14px; margin-right: 14px; white-space: nowrap; flex-shrink: 0; clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%); }
.breaking-ticker-wrap { flex: 1; overflow: hidden; position: relative; height: 42px; display: flex; align-items: center; }
.breaking-ticker { display: flex; gap: 60px; white-space: nowrap; animation: ticker-scroll 40s linear infinite; will-change: transform; }
.breaking-ticker a { font-family: var(--font-ui); font-size: 13px; color: #ddd; flex-shrink: 0; }
.breaking-ticker a:hover { color: var(--color-red); }
@keyframes ticker-scroll { 0% { transform: translateX(100vw); } 100% { transform: translateX(-50%); } }

/* ===== İÇERİK GENEL ===== */
.page-content { padding: 28px 0 48px; }
.layout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 28px; }

/* ===== KATEGORİ ETİKETİ ===== */
.cat-tag { display: inline-block; background: var(--color-red); color: #fff; font-family: var(--font-ui); font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 12px 4px 10px; clip-path: polygon(0 0, 100% 0, 88% 100%, 0% 100%); }
.cat-tag.cat-dark { background: var(--color-black); }

/* ===== MANŞET C - 1 Büyük Sol + 4 Küçük Sağ 2x2 ===== */
.hero-section-b { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3px; margin-bottom: 28px; background: #0A0A0A; }
.hero-main-b { position: relative; overflow: hidden; height: 420px; }
.hero-main-b img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.4s; }
.hero-main-b:hover img { transform: scale(1.02); }
.hero-overlay-b { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 50%, transparent 100%); padding: 80px 24px 24px; }
.hero-overlay-b .cat-tag { margin-bottom: 12px; }
.hero-overlay-b h1 { font-family: var(--font-display); font-weight: 900; font-size: 28px; line-height: 1.2; color: #fff; margin-bottom: 10px; }
.hero-overlay-b h1 a:hover { color: var(--color-red); }
.hero-summary { font-family: var(--font-ui); font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.5; }
.hero-bottom-b { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; }
.hero-bottom-item { position: relative; overflow: hidden; min-height: 0; }
.hero-bottom-item img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform 0.3s; }
.hero-bottom-item:hover img { transform: scale(1.05); }
.hero-bottom-item .hero-overlay { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, transparent 100%); padding: 28px 10px 10px; }
.hero-bottom-item .cat-tag { font-size: 9px; padding: 2px 8px 2px 7px; margin-bottom: 5px; }
.hero-bottom-item h2 { font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 1.3; color: #fff; }
.hero-bottom-item h2 a:hover { color: var(--color-red); }

/* ===== HABER KARTI ===== */
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--color-black); }
.section-title h2 { font-family: var(--font-display); font-weight: 800; font-size: 20px; text-transform: uppercase; letter-spacing: 0.3px; }
.section-title .bar { width: 6px; height: 22px; background: var(--color-red); }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 36px; }
.news-card { background: #fff; border: 1px solid var(--color-border); transition: box-shadow 0.15s, transform 0.15s; }
.news-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.12); transform: translateY(-2px); }
.news-card .thumb { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.news-card .card-body { padding: 14px 16px; }
.news-card .cat-tag { margin-bottom: 8px; }
.news-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.3; margin-bottom: 8px; }
.news-card h3 a:hover { color: var(--color-red); }
.news-card .summary { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 10px; }
.news-card .meta { font-family: var(--font-ui); font-size: 12px; color: #999; border-top: 1px solid var(--color-border); padding-top: 8px; }

/* ===== VİDEO ROZETİ ===== */
.video-badge { position: absolute; top: 10px; left: 10px; background: var(--color-red); color: #fff; font-family: var(--font-ui); font-size: 11px; font-weight: 800; padding: 4px 10px; letter-spacing: 0.5px; text-transform: uppercase; display: flex; align-items: center; gap: 4px; z-index: 5; }
.video-badge::before { content: '▶'; font-size: 9px; }

/* ===== SIDEBAR ===== */
.news-list-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.news-list-item:last-child { border-bottom: none; }
.news-list-item .rank { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: var(--color-red); width: 30px; flex-shrink: 0; line-height: 1; }
.news-list-item .thumb { width: 80px; height: 60px; flex-shrink: 0; overflow: hidden; }
.news-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-list-item h4 { font-family: var(--font-display); font-weight: 700; font-size: 14px; line-height: 1.3; }
.news-list-item h4 a:hover { color: var(--color-red); }
.sidebar-box { background: #fff; border: 1px solid var(--color-border); margin-bottom: 24px; }
.sidebar-box .box-header { background: var(--color-black); color: #fff; font-family: var(--font-ui); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; padding: 12px 16px; border-left: 5px solid var(--color-red); }
.sidebar-box .box-body { padding: 14px 16px; }
.ad-slot { display: flex; align-items: center; justify-content: center; background: #EFEFEF; border: 1px dashed #C5C5C5; color: #999; font-family: var(--font-ui); font-size: 12px; min-height: 250px; margin-bottom: 24px; text-align: center; }
.ad-slot img { width: 100%; height: 100%; object-fit: cover; }
.ad-slot.ad-leaderboard { min-height: 90px; }

/* ===== SIDEBAR YAZARLAR ===== */
.sidebar-yazar { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--color-border); transition: background 0.15s; }
.sidebar-yazar:last-child { border-bottom: none; }
.sidebar-yazar:hover { background: #FAFAFA; margin: 0 -16px; padding: 12px 16px; }
.sidebar-yazar-avatar { flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; display: block; border: 2px solid var(--color-red); box-shadow: 0 2px 8px rgba(200,16,46,0.2); }
.sidebar-yazar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-yazar-harf { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--color-red) 0%, #8B0015 100%); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 22px; font-weight: 900; color: #fff; }
.sidebar-yazar-bilgi { flex: 1; min-width: 0; }
.sidebar-yazar-ad { font-family: var(--font-ui); font-weight: 800; font-size: 14px; color: var(--color-text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; letter-spacing: 0.2px; margin-bottom: 2px; }
.sidebar-yazar-ad:hover { color: var(--color-red); }
.sidebar-yazar-email { font-family: var(--font-ui); font-size: 11px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px; }
.sidebar-yazar-email a { color: #999; }
.sidebar-yazar-email a:hover { color: var(--color-red); }
.sidebar-yazar-sayi { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-ui); font-size: 10px; font-weight: 700; color: #fff; background: var(--color-red); padding: 2px 8px; border-radius: 10px; letter-spacing: 0.3px; }

/* ===== HABER DETAY ===== */
.article-header { margin-bottom: 18px; }
.article-header .cat-tag { margin-bottom: 12px; }
.article-header h1 { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.2; margin-bottom: 12px; }
.article-header .summary { font-size: 17px; color: var(--color-text-muted); line-height: 1.5; margin-bottom: 14px; }
.article-meta { display: flex; gap: 16px; font-family: var(--font-ui); font-size: 13px; color: #888; border-bottom: 2px solid var(--color-border); padding-bottom: 14px; flex-wrap: wrap; }
.article-image { margin: 20px 0; overflow: hidden; background: #eee; }
.article-image img { width: 100%; height: auto; object-fit: cover; }
.article-body { font-size: 17px; line-height: 1.75; color: var(--color-text); }
.article-body p { margin-bottom: 16px; }
.article-body h2, .article-body h3 { font-family: var(--font-display); margin: 24px 0 12px; }
.article-body img { max-width: 100% !important; height: auto !important; margin: 10px 0; }
.article-body img[style*="width"] { max-width: 100% !important; }
.article-body iframe { max-width: 100% !important; }

/* ===== YAZAR KUTUSU ===== */
.author-box { display: flex; gap: 20px; align-items: flex-start; background: #F8F8F8; border: 1px solid var(--color-border); border-left: 5px solid var(--color-red); padding: 20px; margin-top: 32px; }
.author-avatar { flex-shrink: 0; width: 80px; height: 80px; }
.author-avatar img { width: 80px !important; height: 80px !important; border-radius: 50%; object-fit: cover; object-position: center top; border: 3px solid var(--color-red); display: block; }
.author-avatar-placeholder { width: 80px; height: 80px; border-radius: 50%; background: var(--color-red); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 32px; font-weight: 900; color: #fff; }
.author-info { flex: 1; }
.author-name { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin-bottom: 2px; }
.author-name a { color: var(--color-text); }
.author-name a:hover { color: var(--color-red); }
.author-stats { font-family: var(--font-ui); font-size: 12px; color: var(--color-red); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.author-bio { font-family: var(--font-ui); font-size: 14px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 10px; }
.author-social { display: flex; gap: 8px; }
.author-social-link { font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: #fff; background: var(--color-black); padding: 5px 14px; border-radius: 3px; transition: background 0.15s; }
.author-social-link:hover { background: var(--color-red); }

/* ===== YAZAR PROFİL SAYFASI ===== */
.yazar-profil-card { display: flex; gap: 24px; align-items: flex-start; background: #fff; border: 1px solid var(--color-border); border-top: 5px solid var(--color-red); padding: 28px; margin-bottom: 8px; }
.yazar-profil-avatar { flex-shrink: 0; }
.yazar-profil-avatar img { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; object-position: center top; border: 4px solid var(--color-red); display: block; }
.yazar-avatar-harf { width: 110px; height: 110px; border-radius: 50%; background: var(--color-red); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 46px; font-weight: 900; color: #fff; }
.yazar-profil-ad { font-family: var(--font-display); font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.yazar-profil-email { font-family: var(--font-ui); font-size: 14px; color: #666; margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.yazar-profil-email a { color: var(--color-red); }
.yazar-profil-istat { display: flex; gap: 16px; margin-bottom: 12px; }
.yazar-stat { font-family: var(--font-ui); font-size: 13px; color: #888; background: #F4F4F4; padding: 4px 12px; border-radius: 20px; }
.yazar-stat strong { color: var(--color-red); }
.yazar-profil-bio { font-family: var(--font-ui); font-size: 14px; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 14px; }
.yazar-profil-sosyal { display: flex; gap: 8px; }
.yazar-sosyal-btn { font-family: var(--font-ui); font-size: 12px; font-weight: 700; color: #fff; background: var(--color-black); padding: 5px 14px; border-radius: 3px; transition: background 0.15s; }
.yazar-sosyal-btn:hover { background: var(--color-red); }

/* ===== KURUMSAL SAYFA ===== */
.page-box { background: #fff; border: 1px solid var(--color-border); padding: 28px; }
.page-box h2 { font-family: var(--font-display); font-size: 26px; margin-bottom: 16px; border-bottom: 3px solid var(--color-red); padding-bottom: 10px; display: inline-block; }
.contact-form { display: grid; gap: 14px; max-width: 520px; margin-top: 16px; }
.contact-form label { font-family: var(--font-ui); font-size: 13px; font-weight: 700; margin-bottom: 4px; display: block; }
.contact-form input, .contact-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--color-border); font-family: var(--font-ui); font-size: 14px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--color-red); border-color: var(--color-red); }
.btn-submit { background: var(--color-red); color: #fff; border: none; padding: 12px 28px; font-family: var(--font-ui); font-weight: 700; font-size: 14px; text-transform: uppercase; cursor: pointer; transition: background 0.15s; }
.btn-submit:hover { background: var(--color-black); }
.alert-success { background: #E8F5E9; color: #1B5E20; padding: 12px 16px; border-left: 4px solid #2E7D32; margin-bottom: 16px; font-family: var(--font-ui); font-size: 14px; }
.alert-error { background: #FFEBEE; color: #B71C1C; padding: 12px 16px; border-left: 4px solid var(--color-red); margin-bottom: 16px; font-family: var(--font-ui); font-size: 14px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-family: var(--font-ui); font-size: 13px; color: #888; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--color-red); }

/* ===== SAYFALAMA ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; border: 1px solid var(--color-border); font-family: var(--font-ui); font-size: 14px; background: #fff; }
.pagination a:hover { background: var(--color-black); color: #fff; }
.pagination .current { background: var(--color-red); color: #fff; border-color: var(--color-red); }

/* ===== FOOTER ===== */
.main-footer { background: var(--color-black); color: #ccc; margin-top: 40px; }
.footer-top { padding: 36px 0; border-bottom: 1px solid #2a2a2a; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.footer-grid h4 { font-family: var(--font-ui); color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 14px; border-left: 4px solid var(--color-red); padding-left: 10px; }
.footer-grid ul li { margin-bottom: 8px; }
.footer-grid a { font-family: var(--font-ui); font-size: 13px; color: #aaa; transition: color 0.15s; }
.footer-grid a:hover { color: var(--color-red); }
.footer-logo { font-family: var(--font-display); font-weight: 900; font-size: 26px; color: #fff; text-transform: uppercase; margin-bottom: 10px; }
.footer-logo span { color: var(--color-red); }
.footer-bottom { padding: 16px 0; font-family: var(--font-ui); font-size: 12px; color: #888; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }

/* ===== EMBED ===== */
.embed-wrapper { margin: 28px 0; }
.yt-embed-wrap { position: relative !important; padding-bottom: 56.25% !important; height: 0 !important; overflow: hidden !important; margin: 20px 0 !important; }
.yt-embed-wrap iframe { position: absolute !important; top: 0 !important; left: 0 !important; width: 100% !important; height: 100% !important; border: none !important; }

/* ===== MOBİL RESİM DÜZELTME ===== */
@media (max-width: 720px) {
    .article-body img { width: 100% !important; height: auto !important; margin: 8px 0 !important; }
    .article-body .yt-embed-wrap, .embed-wrapper { margin: 12px 0 !important; }
}

/* ===== MOBİL TAŞMA DÜZELTME ===== */
@media (max-width: 720px) {
    .article-body img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        margin: 8px 0 !important;
    }
    .article-body * {
        max-width: 100% !important;
    }
    .article-body iframe {
        max-width: 100% !important;
    }
    .article-body table {
        display: block;
        overflow-x: auto;
        max-width: 100% !important;
    }
    .embed-wrapper {
        max-width: 100% !important;
        overflow: hidden;
    }
    .yt-embed-wrap {
        max-width: 100% !important;
    }
}

/* Genel resim taşma önleme */
.article-body img,
.article-image img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
}
.article-body img[style],
.article-body img[width] {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
}
@media (max-width: 980px) {
    .layout-grid { grid-template-columns: 1fr; }
    .hero-section-b { grid-template-columns: 1fr; }
    .hero-main-b { min-height: 300px; }
    .hero-bottom-b { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
    .hero-bottom-item { min-height: 130px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .yazar-profil-card { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 720px) {
    .main-nav ul { display: none; flex-direction: column; width: 100%; }
    .main-nav.nav-open ul { display: flex; }
    .nav-toggle { display: block; margin-left: auto; }
    .main-nav .container { flex-wrap: wrap; }
    .logo-text { font-size: 28px; }
    .news-grid { grid-template-columns: 1fr; }
    .hero-main-b { min-height: 220px; }
    .hero-overlay-b h1 { font-size: 20px; }
    .hero-summary { display: none; }
    .hero-bottom-b { grid-template-columns: 1fr 1fr; }
    .hero-bottom-item { min-height: 100px; }
    .hero-bottom-item h2 { font-size: 11px; }
    .article-header h1 { font-size: 24px; }
    .footer-grid { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; align-items: center; text-align: center; }
    .author-social { justify-content: center; }

    /* Header mobil düzeltme */
    .main-header .container { flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 10px 16px; }
    .header-ad-slot { max-width: 50%; min-height: auto; }
    .header-ad-slot img { max-height: 60px; width: auto; }

    /* Sayfa genişliği taşma önleme */
    body { overflow-x: hidden; }
    .container { overflow-x: hidden; }
    img { max-width: 100% !important; }

    /* Yazı taşma önleme */
    .article-body { word-break: break-word; overflow-wrap: break-word; }
    .article-body p { word-break: break-word; overflow-wrap: break-word; max-width: 100%; }
    p, h1, h2, h3, h4, span, div { word-break: break-word; overflow-wrap: break-word; }
}
