/* ===== HaberX - Ana Stil ===== */
:root {
    --kirmizi: #e63946;
    --koyu: #1a1a2e;
    --gri: #f8f8f8;
    --yazi: #222;
    --yazi-ik: #555;
    --sinir: #e0e0e0;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: Arial, Helvetica, sans-serif; color: var(--yazi); background: #fff; font-size: 16px; line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.konteyner { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* Üst Bar */
.ust-bar { background: var(--koyu); color: #aaa; font-size: 12px; padding: 6px 0; }
.ust-bar .konteyner { display: flex; justify-content: space-between; align-items: center; }
.ust-bar-sag a { color: #aaa; margin-left: 16px; }
.ust-bar-sag a:hover { color: #fff; }

/* Header */
.header { background: #fff; padding: 16px 0; border-bottom: 3px solid var(--kirmizi); }
.header-ic { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { font-family: Arial, Helvetica, sans-serif; font-size: 36px; font-weight: 900; color: var(--kirmizi); letter-spacing: -1px; }
.arama-form { display: flex; border: 1.5px solid var(--sinir); border-radius: 6px; overflow: hidden; }
.arama-form input { border: none; padding: 8px 14px; font-size: 14px; width: 260px; outline: none; }
.arama-form button { background: var(--kirmizi); color: #fff; border: none; padding: 8px 14px; cursor: pointer; font-size: 16px; }

/* Nav */
.nav { background: var(--koyu); }
.nav-liste { list-style: none; display: flex; overflow-x: auto; -ms-overflow-style: none; scrollbar-width: none; }
.nav-liste::-webkit-scrollbar { display: none; }
.nav-liste li a { display: block; color: #ccc; padding: 12px 16px; font-size: 14px; font-weight: 600; white-space: nowrap; transition: color 0.2s, background 0.2s; }
.nav-liste li a:hover, .nav-liste li a.aktif { color: #fff; background: rgba(255,255,255,0.08); }

/* Son Dakika Bandı */
.son-dakika-bant { background: var(--kirmizi); color: #fff; padding: 12px 0; overflow: hidden; }
.son-dakika-bant .konteyner { display: flex; align-items: center; }
.son-dakika-kayan { display: flex; gap: 16px; font-size: 16px; font-weight: 600; width: max-content; }
.son-dakika-kayan a { color: #fff; white-space: nowrap; flex-shrink: 0; }
.son-dakika-kayan a:hover { opacity: 0.9; }
.ayrac { opacity: 0.7; margin: 0 8px; flex-shrink: 0; }

/* Ana Grid */
.ana-icerik { padding: 28px 20px; }
.ana-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }

/* Manşet */
.manset-alani { margin-bottom: 32px; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 320px; gap: 4px; border-radius: 8px; overflow: hidden; }
.manset-buyuk { position: relative; grid-row: 1; }
.manset-buyuk img, .manset-resim-yok { width: 100%; height: 320px; object-fit: cover; }
.manset-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.85)); padding: 20px; color: #fff; }
.manset-overlay h2 { font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 1.3; margin: 8px 0 6px; }
.manset-overlay h2 a { color: #fff; }
.manset-overlay h2 a:hover { text-decoration: underline; }
.manset-overlay p { font-size: 13px; opacity: 0.85; }
.manset-tarih { font-size: 12px; opacity: 0.7; margin-top: 6px; display: block; }
.manset-kucuk-grid { display: grid; grid-template-rows: repeat(2, 1fr); gap: 4px; }
.manset-kucuk { position: relative; overflow: hidden; }
.manset-kucuk img, .mk-resim-yok { width: 100%; height: 100%; object-fit: cover; }
.mk-icerik { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.8)); padding: 12px; color: #fff; }
.mk-icerik h4 { font-size: 13px; line-height: 1.3; margin: 4px 0; }
.mk-icerik h4 a { color: #fff; }

/* Kategori Etiket */
.kategori-etiket { display: inline-block; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 3px; text-transform: uppercase; letter-spacing: 0.5px; }
.kategori-etiket.kucuk { font-size: 10px; padding: 2px 6px; }
.kategori-etiket.buyuk { font-size: 13px; padding: 5px 12px; margin-bottom: 10px; }

/* Kategori Bölüm */
.kat-bolum { margin-bottom: 32px; }
.kat-baslik { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid; padding-bottom: 10px; margin-bottom: 16px; }
.kat-baslik h3 { font-family: Arial, Helvetica, sans-serif; font-size: 20px; }
.tumunu-goster { font-size: 13px; color: var(--yazi-ik); }
.tumunu-goster:hover { color: var(--kirmizi); }

/* Haber Grid */
.haber-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.haber-grid.buyuk { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.haber-kart { background: #fff; border: 1px solid var(--sinir); border-radius: 8px; overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.haber-kart:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.1); transform: translateY(-2px); }
.haber-kart img { width: 100%; height: 140px; object-fit: cover; }
.resim-yok { width: 100%; height: 140px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.haber-kart-icerik { padding: 12px; }
.haber-kart-icerik h3 { font-size: 14px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.haber-kart-icerik h3 a:hover { color: var(--kirmizi); }
.haber-kart-icerik p { font-size: 13px; color: var(--yazi-ik); margin-bottom: 8px; }
.tarih-kucuk { font-size: 12px; color: #999; }

/* Sidebar */
.sidebar-widget { background: #fff; border: 1px solid var(--sinir); border-radius: 8px; padding: 16px; margin-bottom: 20px; }
.widget-baslik { font-family: Arial, Helvetica, sans-serif; font-size: 18px; border-bottom: 2px solid var(--kirmizi); padding-bottom: 8px; margin-bottom: 14px; }
.en-cok-liste { list-style: none; }
.en-cok-liste li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sinir); align-items: flex-start; }
.en-cok-liste li:last-child { border: none; }
.numara { background: var(--kirmizi); color: #fff; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; margin-top: 2px; }
.en-cok-liste li a { font-size: 13px; line-height: 1.4; }
.en-cok-liste li a:hover { color: var(--kirmizi); }
.kat-liste { list-style: none; }
.kat-liste li a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 14px; border-bottom: 1px solid var(--sinir); }
.kat-liste li:last-child a { border: none; }
.kat-liste li a:hover { color: var(--kirmizi); background: var(--gri); }
.sayi { background: var(--gri); color: #666; font-size: 12px; padding: 2px 8px; border-radius: 10px; }
.sidebar-haber { padding: 10px 0; border-bottom: 1px solid var(--sinir); }
.sidebar-haber:last-child { border: none; }
.sidebar-haber a { font-size: 13px; line-height: 1.4; display: block; margin-bottom: 3px; }
.sidebar-haber a:hover { color: var(--kirmizi); }

/* Haber Detay */
.haber-detay-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; }
.breadcrumb { font-size: 13px; color: #999; margin-bottom: 16px; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: var(--kirmizi); }
.haber-baslik { font-family: Arial, Helvetica, sans-serif; font-size: 30px; line-height: 1.3; margin: 10px 0 16px; }
.haber-meta { display: flex; gap: 20px; color: #888; font-size: 13px; padding: 12px 0; border-top: 1px solid var(--sinir); border-bottom: 1px solid var(--sinir); margin-bottom: 20px; flex-wrap: wrap; }
.haber-ozet { background: var(--gri); border-left: 3px solid var(--kirmizi); padding: 14px 18px; margin-bottom: 20px; font-size: 16px; color: var(--yazi-ik); font-style: italic; }
.haber-resim { margin-bottom: 24px; border-radius: 8px; overflow: hidden; }
.haber-resim img { width: 100%; max-height: 460px; object-fit: cover; }
.haber-icerik { font-size: 16px; line-height: 1.8; color: #333; margin-bottom: 28px; }
.paylasim { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-top: 1px solid var(--sinir); margin-bottom: 28px; flex-wrap: wrap; }
.paylasim span { font-weight: 600; font-size: 14px; }
.paylasim-btn { display: inline-block; padding: 6px 16px; border-radius: 5px; font-size: 13px; font-weight: 600; color: #fff; }
.paylasim-btn.twitter { background: #1da1f2; }
.paylasim-btn.facebook { background: #1877f2; }
.paylasim-btn.whatsapp { background: #25d366; }
.ilgili-haberler h3 { font-family: Arial, Helvetica, sans-serif; font-size: 20px; margin-bottom: 16px; border-bottom: 2px solid var(--kirmizi); padding-bottom: 8px; }

/* Kategori Sayfası */
.kat-hero { background: var(--gri); padding: 24px 0; margin-bottom: 0; }
.kat-hero h1 { font-family: Arial, Helvetica, sans-serif; font-size: 32px; }
.kat-hero span { font-size: 14px; color: #888; }
.sayfalama { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.sayfalama a { display: inline-block; padding: 8px 14px; border: 1px solid var(--sinir); border-radius: 5px; font-size: 14px; }
.sayfalama a.aktif, .sayfalama a:hover { background: var(--kirmizi); color: #fff; border-color: var(--kirmizi); }
.bulunamadi { text-align: center; padding: 40px; color: #999; font-size: 16px; }
.arama-sonuclari h2 { font-family: Arial, Helvetica, sans-serif; font-size: 22px; margin-bottom: 20px; }

/* Footer */
.footer { background: var(--koyu); color: #aaa; margin-top: 40px; padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 32px; }
.footer-kol h4 { color: #fff; font-size: 16px; margin-bottom: 14px; font-weight: 600; }
.footer-kol p { font-size: 14px; line-height: 1.6; }
.footer-kol ul { list-style: none; }
.footer-kol ul li { margin-bottom: 8px; }
.footer-kol ul li a { font-size: 14px; color: #aaa; }
.footer-kol ul li a:hover { color: #fff; }
.footer-alt { border-top: 1px solid rgba(255,255,255,0.1); padding: 16px 0; text-align: center; font-size: 13px; }

/* Responsive */
@media (max-width: 900px) {
    .ana-grid, .haber-detay-grid { grid-template-columns: 1fr; gap: 24px; }
    .sidebar { margin-top: 16px; }
    .manset-alani { display: flex; flex-direction: column; height: auto; }
    .manset-buyuk img, .manset-resim-yok { height: 280px; }
    .manset-kucuk-grid { grid-template-columns: 1fr 1fr; auto-rows: 140px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 600px) {
    .ust-bar .konteyner { flex-direction: column; gap: 4px; text-align: center; }
    .ust-bar-sag a { margin: 0 8px; }
    
    .header { padding: 12px 0; }
    .header-ic { flex-direction: column; text-align: center; gap: 12px; }
    .logo { font-size: 28px; }
    .arama-form { width: 100%; }
    .arama-form input { width: 100%; }
    
    .manset-buyuk img, .manset-resim-yok { height: 220px; }
    .manset-kucuk-grid { grid-template-columns: 1fr; auto-rows: 130px; }
    .manset-overlay { padding: 12px; }
    .manset-overlay h2 { font-size: 16px; }
    .manset-overlay p { display: none; }
    
    .haber-baslik { font-size: 22px; }
    .haber-meta { gap: 10px; font-size: 12px; }
    .haber-ozet { padding: 10px 14px; font-size: 14px; }
    .haber-icerik { font-size: 15px; }
    
    .paylasim { justify-content: center; }
    .paylasim span { width: 100%; text-align: center; margin-bottom: 6px; }
    .paylasim-btn { flex: 1; text-align: center; padding: 10px 6px; font-size: 12px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
    .footer { padding-top: 28px; }
}
