/* assets/css/style.css - TAM GÜNCEL HALİ */

:root {
    /* --- GÜNDÜZ (VARSAYILAN) RENKLERİ --- */
    --primary-color: #b91c1c;  /* Haber Kırmızısı */
    --text-color: #333333;     /* Genel Yazı */
    --text-light: #666666;     /* Açık/Gri Yazı */
    --bg-color: #f9f9f9;       /* Arka Plan */
    --card-bg: #ffffff;        /* Kutu/Kart Arka Planı */
    --border-color: #e5e7eb;   /* Çizgiler */
    --heading-color: #000000;  /* Başlıklar */
}

/* --- GECE MODU RENKLERİ --- */
body.dark-theme {
    --primary-color: #ff5252;  /* Karanlıkta daha parlak kırmızı */
    --text-color: #e0e0e0;     /* Açık Gri Yazı */
    --text-light: #a0a0a0;     /* Soluk Yazı */
    --bg-color: #121212;       /* Koyu Arka Plan */
    --card-bg: #1e1e1e;        /* Koyu Kutu */
    --border-color: #333333;   /* Koyu Çizgiler */
    --heading-color: #ffffff;  /* Beyaz Başlıklar */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s; /* Mod geçişi yumuşak olsun */
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* --- HEADER --- */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--heading-color);
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo span { color: var(--primary-color); }
.logo small { font-size: 12px; color: var(--text-light); font-weight: 400; margin-top: 2px; letter-spacing: 2px; }

.main-nav ul { display: flex; gap: 20px; }
.main-nav a { font-weight: 500; font-size: 15px; color: var(--text-color); }
.main-nav a:hover { color: var(--primary-color); }

.btn-contact {
    background: var(--heading-color); /* Siyah veya Beyaz */
    color: var(--bg-color) !important; /* Zıt renk */
    padding: 8px 15px;
    border-radius: 4px;
}

.mobile-menu-icon { display: none; cursor: pointer; font-size: 24px; color: var(--text-color); }

/* --- GENEL İÇERİK --- */
.main-content { padding: 40px 0; }
h1, h2, h3, h4, h5 { color: var(--heading-color); }

/* --- HABER KARTLARI (GRID) --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    border: 1px solid var(--border-color); /* Gece modunda sınır belli olsun */
}

.news-card:hover { transform: translateY(-5px); }

.news-img {
    height: 200px;
    background-color: var(--border-color);
    overflow: hidden;
}
.news-img img { width: 100%; height: 100%; object-fit: cover; }

.news-body { padding: 20px; }
.news-cat {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.news-title {
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--heading-color);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    font-family: 'Merriweather', serif;
}

.news-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

/* --- DÜZEN: SIDEBAR & MAIN --- */
.content-wrapper {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: flex-start;
}

.main-area { flex: 3; }
.sidebar-area {
    flex: 1;
    position: sticky;
    top: 90px;
}

/* --- HERO SECTION (MANŞET) --- */
.hero-section {
    position: relative;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #333;
}
.hero-bg {
    width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: 0.5s;
}
.hero-section:hover .hero-bg { transform: scale(1.05); opacity: 0.5; }
.hero-content {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent); color: #fff;
}
.hero-cat {
    background: var(--primary-color); color: #fff; padding: 5px 10px;
    font-size: 12px; text-transform: uppercase; border-radius: 4px; font-weight: bold;
}
.hero-title {
    font-size: 32px; margin-top: 15px; font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5); color: #fff;
}
.hero-meta { margin-top: 10px; font-size: 14px; opacity: 0.8; color: #fff; }

/* --- SIDEBAR WIDGETS --- */
.widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.widget h3 {
    font-size: 18px; border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px; margin-bottom: 20px; display: inline-block;
    color: var(--heading-color);
}
.author-widget { text-align: center; }
.author-avatar {
    width: 100px; height: 100px; border-radius: 50%; object-fit: cover;
    margin-bottom: 15px; border: 3px solid var(--primary-color);
}
.author-bio { font-size: 14px; color: var(--text-light); margin-bottom: 15px; }

/* --- HABER DETAY SAYFASI ÖZEL --- */
#progress-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 4px; background: transparent; z-index: 9999;
}
#progress-bar { height: 4px; background: var(--primary-color); width: 0%; transition: width 0.1s; }

.article-header { margin-bottom: 30px; }
.article-meta { color: var(--text-light); font-size: 0.9rem; margin-top: 10px; }

.reading-tools {
    display: inline-flex; align-items: center; gap: 15px; margin-bottom: 20px; padding: 10px;
    background: var(--card-bg); border: 1px solid var(--border-color); border-radius: 8px;
}
.tool-btn {
    background: none; border: none; cursor: pointer; color: var(--text-color); font-size: 16px; padding: 5px;
}
.tool-btn:hover { color: var(--primary-color); }

.article-content {
    font-family: 'Merriweather', serif; font-size: 18px; line-height: 1.8; color: var(--text-color);
}
.article-content p { margin-bottom: 20px; }
.article-content img { max-width: 100%; height: auto; border-radius: 8px; margin: 20px 0; }
.article-content h2 { margin-top: 30px; margin-bottom: 15px; color: var(--heading-color); }

.tags-container { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border-color); }
.tag {
    display: inline-block; background: var(--bg-color); border: 1px solid var(--border-color);
    padding: 5px 12px; border-radius: 20px; font-size: 13px; margin-right: 10px; color: var(--text-light);
}
.tag:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* --- FOOTER --- */
.site-footer {
    background: #1a1a1a; color: #ccc; padding: 40px 0 20px; margin-top: 50px; border-top: 1px solid #333;
}
.footer-content {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 30px;
}
.footer-social a { color: #fff; margin-right: 15px; font-size: 18px; }
.footer-bottom { text-align: center; border-top: 1px solid #333; padding-top: 20px; font-size: 13px; }

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .content-wrapper { flex-direction: column; }
    .hero-section { height: 300px; }
    .hero-title { font-size: 24px; }
    .sidebar-area { width: 100%; position: static; }
}
@media (max-width: 768px) {
    .main-nav ul { display: none; }
    .mobile-menu-icon { display: block; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
}