/*
Theme Name: Modern Haber Portalı Pro
Theme URI: https://example.com
Author: Geliştirici
Author URI: https://example.com
Description: Kayan haberler, manşet alanı ve tema ayarları bulunan WordPress haber teması.
Version: 2.1
License: GNU General Public License v2 or later
License URI: http://gnu.org
Text Domain: modern-haber-portali
*/

:root {
    --ana-renk: #d90429;
    --koyu-renk: #111827;
    --acik-gri: #f3f4f6;
    --yazi-rengi: #1f2937;
}

* { box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; background: var(--acik-gri); color: var(--yazi-rengi); }
a { text-decoration: none; color: inherit; }

/* Üst Bilgi ve Menü */
.top-bar { background: var(--koyu-renk); color: #fff; font-size: 13px; padding: 6px 5%; display: flex; justify-content: space-between; }
header { background: var(--ana-renk); color: #fff; padding: 18px 5%; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.logo { font-size: 28px; font-weight: 800; letter-spacing: -1px; text-transform: uppercase; }
nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; font-weight: 600; }
nav ul li a:hover { text-decoration: underline; }

/* Kayan Son Dakika Bandı */
.son-dakika-bar { 
    background: #fff; 
    border-bottom: 2px solid var(--ana-renk); 
    display: flex; 
    align-items: center; 
    padding: 0 5%; 
    height: 44px; 
    overflow: hidden; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.sd-etiket { 
    background: var(--ana-renk); 
    color: #fff; 
    font-weight: bold; 
    padding: 5px 12px; 
    font-size: 13px; 
    border-radius: 3px; 
    margin-right: 15px; 
    white-space: nowrap; 
    z-index: 2;
    animation: blink 1.5s infinite; 
}

@keyframes blink { 50% { opacity: 0.7; } }

.kayan-haber-alani {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.kayan-haber-icerik {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: haberKaydir 35s linear infinite;
}

.kayan-haber-alani:hover .kayan-haber-icerik {
    animation-play-state: paused;
}

.kayan-haber-icerik a {
    font-size: 14px;
    font-weight: 600;
    color: var(--yazi-rengi);
    transition: color 0.2s;
}

.kayan-haber-icerik a:hover {
    color: var(--ana-renk);
}

.saat-etiket {
    background: #e5e7eb;
    color: #374151;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    margin-right: 5px;
    font-weight: 700;
}

.ayrac {
    margin: 0 18px;
    color: var(--ana-renk);
    font-weight: bold;
}

@keyframes haberKaydir {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Ana Konteyner */
.container { max-width: 1200px; margin: 25px auto; padding: 0 15px; }

/* Reklam Alanı */
.reklam-alani { background: #e5e7eb; border: 1px dashed #9ca3af; color: #6b7280; text-align: center; padding: 20px; margin-bottom: 25px; border-radius: 6px; font-size: 13px; }

/* Manşet Alanı */
.manset-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 30px; }
.ana-manset { position: relative; border-radius: 8px; overflow: hidden; height: 400px; background: #000; }
.ana-manset img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: transform 0.3s; }
.ana-manset:hover img { transform: scale(1.03); }
.manset-baslik { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.9)); color: #fff; padding: 25px; }
.manset-baslik span { background: var(--ana-renk); padding: 3px 8px; font-size: 12px; font-weight: bold; border-radius: 3px; }
.manset-baslik h2 { margin: 10px 0 0; font-size: 26px; line-height: 1.3; }

.yan-mansetler { display: flex; flex-direction: column; gap: 15px; }
.yan-kart { display: flex; background: #fff; border-radius: 6px; overflow: hidden; height: 123px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.yan-kart img { width: 130px; height: 100%; object-fit: cover; }
.yan-kart-icerik { padding: 12px; display: flex; flex-direction: column; justify-content: center; }
.yan-kart-icerik h3 { margin: 0; font-size: 15px; line-height: 1.4; }

/* Haber Akışı Grid */
.bolum-baslik { border-left: 5px solid var(--ana-renk); padding-left: 12px; font-size: 22px; margin-bottom: 20px; font-weight: 700; }
.haber-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.haber-kart { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.06); transition: transform 0.2s; }
.haber-kart:hover { transform: translateY(-4px); }
.haber-kart img { width: 100%; height: 180px; object-fit: cover; }
.haber-icerik { padding: 16px; }
.kategori-etiket { color: var(--ana-renk); font-size: 12px; font-weight: bold; text-transform: uppercase; }
.haber-icerik h2 { font-size: 17px; margin: 8px 0; line-height: 1.4; }
.haber-meta { font-size: 12px; color: #6b7280; }

/* Tekil Haber Sayfası */
.tekil-haber { background: #fff; padding: 35px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.tekil-haber h1 { font-size: 32px; margin-top: 0; line-height: 1.3; }
.tekil-icerik { font-size: 17px; line-height: 1.8; margin-top: 20px; }

footer { background: var(--koyu-renk); color: #9ca3af; text-align: center; padding: 30px 15px; margin-top: 50px; }

@media (max-width: 768px) {
    .manset-grid { grid-template-columns: 1fr; }
    .ana-manset { height: 280px; }
}
