/* --- GENEL AYARLAR (Birfanatik Vibe) --- */
:root {
    --primary: #d90429; /* Fanatik Kırmızısı */
    --body-bg: #f5f6f7;
    --text-dark: #111;
    --text-gray: #606770;
    --border: #e1e4e8;
    --nav-bg: #111;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Poppins', sans-serif; background-color: var(--body-bg); color: var(--text-dark); line-height: 1.5; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Global Konteyner (Fanatik Genişliği) */
.fanatik-container { max-width: 1240px; margin: auto; padding: 0 15px; width: 100%; }

/* --- EN ÜST BAR (Tarih ve Puan Durumu Linkleri) --- */
.top-bar { background: #fff; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.75rem; color: var(--text-gray); }
.top-bar-flex { display: flex; justify-content: space-between; align-items: center; }
.top-links { display: flex; gap: 15px; }
.top-links a { font-weight: 600; color: #333; }
.top-links a:hover { color: var(--primary); }

/* --- HEADER & NAVİGASYON (Tam Genişlik) --- */
header { background: #fff; padding: 15px 0; border-bottom: 5px solid var(--primary); position: sticky; top: 0; z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.05); }
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 2rem; font-weight: 900; color: #000; display: flex; align-items: center; gap: 5px; }
.logo::before { content: ''; width: 35px; height: 35px; background: var(--primary); border-radius: 50%; display: inline-block; } /* Yuvarlak Logo Detayı */
.logo span { color: var(--primary); }

/* Ana Menü */
nav ul { display: flex; gap: 20px; font-weight: 700; font-size: 0.85rem; text-transform: uppercase; color: #000; }
nav a:hover { color: var(--primary); }
.special-menu { display: flex; gap: 10px; }
.special-menu a { background: #eee; padding: 3px 10px; border-radius: 4px; font-size: 0.75rem; }
.special-menu .live-btn { background: var(--primary); color: #fff; border-radius: 20px; }

/* --- SON DAKİKA BANDI --- */
.breaking-news { background: #111; color: #fff; padding: 12px 0; font-size: 0.85rem; }
.flex-ticker { display: flex; align-items: center; }
.ticker-label { background: var(--primary); padding: 0 12px; font-weight: bold; margin-right: 15px; }

/* --- LAYOUT (Portal Düzeni) --- */
.main-wrapper { display: grid; grid-template-columns: 8fr 4fr; gap: 30px; margin-top: 30px; }

/* --- MANŞET ALANI (Parçalı Grid) --- */
.hero-manset { display: grid; grid-template-columns: 2fr 1fr; gap: 15px; margin-bottom: 30px; }

/* Büyük Manşet */
.large-manset { background: #000; border-radius: 8px; overflow: hidden; position: relative; height: 450px; }
.large-manset img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); transition: 0.3s; }
.large-manset:hover img { filter: brightness(0.9); }
.manset-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%); }
.manset-overlay .tag { background: var(--primary); color: #fff; padding: 3px 8px; font-size: 0.65rem; font-weight: bold; border-radius: 4px; }
.manset-overlay h2 { font-size: 2rem; color: #fff; margin-top: 10px; line-height: 1.2; font-weight: 800; }

/* Küçük Yan Manşetler */
.small-manset-wrapper { display: flex; flex-direction: column; gap: 15px; }
.small-manset { background: #000; border-radius: 8px; overflow: hidden; position: relative; height: 217px; }
.small-manset img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.7); }
.small-manset-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.9) 100%); }
.small-manset-overlay h3 { font-size: 1rem; color: #fff; line-height: 1.3; font-weight: 700; }

/* --- HABER BÖLÜMLERİ VE HABER LİSTESİ --- */
.section-block { margin-bottom: 30px; }
.section-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid #000; padding-bottom: 8px; margin-bottom: 20px; position: relative; }
.section-head::after { content: ''; width: 60px; height: 3px; background: var(--primary); position: absolute; bottom: -2px; left: 0; }
.section-title { font-size: 1.1rem; font-weight: 700; text-transform: uppercase; color: #000; }
.section-head a { font-size: 0.7rem; color: var(--primary); font-weight: bold; text-transform: uppercase; }

/* Haber Kutuları (Alt Alta Liste) */
.news-entry { background: #fff; display: flex; gap: 20px; padding: 20px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 15px; transition: 0.3s; }
.news-entry:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-color: var(--primary); }
.news-entry img { width: 220px; height: 140px; object-fit: cover; border-radius: 4px; }
.entry-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.category { color: var(--primary); font-size: 0.7rem; font-weight: bold; text-transform: uppercase; }
.entry-content h3 { font-size: 1.1rem; line-height: 1.3; color: #000; margin: 8px 0; }
.entry-content p { color: var(--text-gray); font-size: 0.85rem; }
.date { font-size: 0.7rem; color: #999; }

/* --- SIDEBAR (YAN PANEL) --- */
.sidebar-widget { background: #fff; padding: 20px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 20px; }
.widget-head { font-size: 0.95rem; font-weight: 700; color: #000; border-bottom: 2px solid #000; padding-bottom: 5px; margin-bottom: 15px; position: relative; text-transform: uppercase; }
.widget-head::after { content: ''; width: 40px; height: 3px; background: var(--primary); position: absolute; bottom: -2px; left: 0; }

.ad-box { background: var(--body-bg); border: 2px dashed #ccc; padding: 50px; text-align: center; color: #999; font-weight: bold; font-size: 0.75rem; text-transform: uppercase; }

/* Puan Durumu Tablosu (Örnek) */
.standing-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.standing-table th { text-align: left; padding: 8px; background: #eee; color: #000; }
.standing-table td { padding: 8px; border-bottom: 1px solid var(--border); color: #333; }
.standing-table .active { background: #fff8f0; border-left: 3px solid var(--primary); }

/* --- FOOTER --- */
footer { background: #000; color: #999; padding: 60px 0; text-align: center; margin-top: 80px; }
.footer-logo { font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 15px; display: block; gap: 5px; align-items: center; justify-content: center; display: flex; }
.footer-logo::before { content: ''; width: 30px; height: 30px; background: var(--primary); border-radius: 50%; display: inline-block; }
.footer-logo span { color: var(--primary); }
footer p { font-size: 0.8rem; }

/* --- MOBİL UYUMLULUK --- */
@media (max-width: 992px) {
    .fanatik-container { padding: 0 10px; }
    .main-wrapper { grid-template-columns: 1fr; }
    .hero-manset { grid-template-columns: 1fr; }
    .nav-flex { flex-direction: column; gap: 10px; }
    nav ul { font-size: 0.7rem; gap: 10px; }
    .news-entry { flex-direction: column; gap: 10px; }
    .news-entry img { width: 100%; height: 180px; }
    .logo { font-size: 1.5rem; }
    .top-bar-flex { flex-direction: column; gap: 5px; }
}
/* --- EKSTRA DETAYLAR: BİRFANATİK VİBE --- */

/* Kategori Bazlı Renkler */
.cat-galatasaray { border-bottom: 3px solid #fdb912 !important; color: #811216 !important; }
.cat-fenerbahce { border-bottom: 3px solid #fbdf07 !important; color: #002e5d !important; }
.cat-besiktas { border-bottom: 3px solid #000 !important; color: #000 !important; }

/* Haber Kartlarını Daha Keskin Yapalım */
.news-entry {
    background: #fff;
    border: none;
    border-bottom: 1px solid #eee; /* Çerçeve yerine sadece alt çizgi */
    border-radius: 0;
    padding: 15px 0;
}

.news-entry:hover {
    box-shadow: none;
    background: #fafafa;
}

/* Manşet Yanındaki Küçük Haberler İçin Hover Efekti */
.small-manset:hover img {
    transform: scale(1.05);
    filter: brightness(0.9);
}

/* Sayfa Arka Planını Biraz Daha Gri Yapalım ki Beyaz Kartlar Patlasın */
body { background-color: #e9ecef; }

/* Widget Başlıklarını Daha Kalın Yapalım */
.widget-head {
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: #111;
    color: #fff;
    padding: 8px 12px;
    border-bottom: none;
}
.widget-head::after { display: none; } /* Eskisini sildik */
/* --- RESPONSIVE DOKUNUŞLAR --- */

/* 1. Konteyner Genişliği */
.fanatik-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 2. Navigasyon (Mobilde Menüyü Kaydırılabilir Yapalım) */
header nav {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

header nav ul {
    display: flex;
    padding: 10px 0;
}

header nav ul li {
    display: inline-block;
    margin-right: 15px;
}

/* 3. Manşet Alanı (Mobilde Alt Alta, Masaüstünde Grid) */
.hero-manset {
    display: grid;
    grid-template-columns: 1fr; /* Mobilde tek sütun */
    gap: 10px;
}

@media (min-width: 992px) {
    .hero-manset {
        grid-template-columns: 2fr 1fr; /* Masaüstünde eski hali */
    }
}

.large-manset {
    height: 300px; /* Mobilde biraz küçültelim */
}

@media (min-width: 768px) {
    .large-manset {
        height: 450px;
    }
}

/* 4. Ana Layout (Sidebari Alta Atma) */
.main-wrapper {
    display: flex;
    flex-direction: column; /* Mobilde her şey alt alta */
    gap: 20px;
}

@media (min-width: 992px) {
    .main-wrapper {
        flex-direction: row; /* Masaüstünde yan yana */
    }
    main { width: 66.6%; }
    aside { width: 33.3%; }
}

/* 5. Haber Listesi (Resimleri Mobilde Tam Genişlik Yapma) */
.news-entry {
    flex-direction: column; /* Mobilde resim üstte metin altta */
    gap: 15px;
}

.news-entry img {
    width: 100%;
    height: auto;
    max-height: 200px;
}

@media (min-width: 768px) {
    .news-entry {
        flex-direction: row; /* Tablet ve üstünde yan yana */
    }
    .news-entry img {
        width: 220px;
        height: 140px;
    }
}

/* 6. 3'lü Haber Bloğu (Mobilde 1, Tablette 2, Masaüstünde 3) */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

@media (min-width: 600px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* 7. Yazı Boyutları */
@media (max-width: 768px) {
    .large-manset .manset-overlay h2 {
        font-size: 1.4rem;
    }
    .logo {
        font-size: 1.5rem;
    }
}