:root {
    /* Brand Colors */
    --brand-red: #da292e;
    --brand-red-dark: #b81e22;
    
    /* Light Theme Variables */
    --bg-main: #ffffff;
    --bg-gray: #f8fafc;
    --bg-header: #ffffff;
    --text-dark: #0f172a;
    --text-muted: #64748b;
    --border-color: #cbd5e1;
    --border-soft: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.05);

    --font-main: 'Poppins', sans-serif;
    --font-serif: 'Poppins', sans-serif;
    --font-heading: 'Poppins', sans-serif;
    
    --container-max: 1140px;
    --transition-speed: 0.3s;
}

/* Dark Theme Variables */
body.dark-theme {
    --bg-main: #0f172a;
    --bg-gray: #1e293b;
    --bg-header: #0f172a;
    --text-dark: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --border-soft: #1e293b;
    --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 16px;
}

/* ================= HEADER & NAV ================= */
.site-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.header-main {
    padding: 12px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dark);
    cursor: pointer;
    gap: 4px;
    padding: 8px;
    border-radius: 8px;
}
.menu-btn:hover { background-color: var(--bg-gray); }

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--brand-red);
}
.logo span { font-weight: 900; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.icon-btn:hover { background-color: var(--bg-gray); }

/* Theme Toggle */
.theme-toggle {
    width: 48px;
    height: 26px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 2px;
    cursor: pointer;
    position: relative;
    border: none;
    transition: background-color 0.3s, border-color 0.3s;
}
.theme-toggle-knob {
    width: 20px;
    height: 20px;
    background: var(--text-dark);
    color: var(--bg-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}
body.dark-theme .theme-toggle-knob {
    transform: translateX(22px);
    background: var(--brand-red);
    color: #fff;
}

/* Red Navigation Bar */
.nav-bar {
    background-color: var(--brand-red);
    border-bottom: 4px solid var(--brand-red-dark);
}
.nav-scroll {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav-scroll a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 16px;
    white-space: nowrap;
    transition: background-color 0.2s, color 0.2s;
}
.nav-scroll a:hover, .nav-scroll a.active {
    color: #fff;
    background-color: var(--brand-red-dark);
}

/* ================= OFF-CANVAS MENU ================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}
.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}
.mobile-menu {
    position: fixed;
    top: 0; left: -300px;
    width: 280px; height: 100vh;
    background: var(--bg-main);
    z-index: 1000;
    padding: 24px;
    overflow-y: auto;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    border-right: 1px solid var(--border-soft);
}
.mobile-menu.active { left: 0; }
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}
.close-menu-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 24px;
    cursor: pointer;
}
.mobile-nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mobile-nav-links a {
    font-size: 16px;
    font-weight: 700;
    display: block;
    color: var(--text-dark);
    padding: 8px 12px;
    border-radius: 8px;
}
.mobile-nav-links a:hover {
    background-color: var(--bg-gray);
    color: var(--brand-red);
}

/* ================= SEARCH BAR (HIDDEN BY DEFAULT) ================= */
.search-bar-container {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-soft);
    padding: 12px 16px;
    display: none;
}
.search-bar-container.active {
    display: block;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { transform: translateY(-10px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.search-form {
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}
.search-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-gray);
    color: var(--text-dark);
    font-family: var(--font-main);
    outline: none;
}
.search-form input:focus { border-color: var(--brand-red); }
.search-form button {
    background: var(--brand-red);
    color: #fff;
    border: none;
    padding: 0 16px;
    border-radius: 20px;
    font-weight: 700;
    cursor: pointer;
}

/* ================= MAIN CONTENT ================= */
.page-container {
    padding-top: 24px;
    padding-bottom: 40px;
}

/* Stories */
.stories-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 16px;
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 20px;
}
.stories-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 5px 0px;
}
.stories-scroll::-webkit-scrollbar { display: none; }
.story-item img {
    width: 65px; height: 65px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bg-main);
    outline: 2.5px solid var(--brand-red);
    padding: 2.5px;
    transition: transform 0.2s;
}
.story-item:hover img { transform: scale(1.08); }

.btn-for-you {
    background-color: var(--brand-red);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(218,41,46,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-for-you:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(218,41,46,0.4);
}

/* Layout Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

/* Featured Article (Manşet) */
.featured-article { margin-bottom: 32px; }
.article-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    color: var(--text-dark);
}
.article-title:hover { color: var(--brand-red); }

/* Google News Banner */
.google-news-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--brand-red);
    color: #fff;
    padding: 12px 20px;
    border-radius: 24px;
    margin-bottom: 24px;
    transition: transform 0.2s;
    font-weight: 700;
}
.google-news-banner:hover { transform: scale(1.02); }
.gn-left { display: flex; align-items: center; gap: 12px; }
.gn-icon { font-size: 20px; font-weight: 800; }
.gn-text { font-family: var(--font-main); font-weight: 700; font-size: 15px; }
.gn-plus {
    background: #fff; color: var(--brand-red);
    width: 24px; height: 24px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
}

.article-excerpt {
    font-family: var(--font-serif);
    font-size: 18px; line-height: 1.6;
    margin-bottom: 24px;
    color: var(--text-muted);
}

.article-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.article-image img {
    width: 100%; aspect-ratio: 16 / 9; object-fit: cover;
    transition: transform 0.5s;
}
.article-image:hover img { transform: scale(1.03); }

/* Feed Cards */
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}
.feed-card a {
    display: flex; flex-direction: column; gap: 16px;
}
.card-img {
    border-radius: 12px; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.card-img img {
    aspect-ratio: 16 / 9; object-fit: cover; width: 100%;
    transition: transform 0.3s;
}
.feed-card:hover .card-img img { transform: scale(1.05); }
.card-category {
    font-size: 12px; font-weight: 700;
    color: var(--brand-red); text-transform: uppercase;
}
.card-content h2 {
    font-family: var(--font-serif);
    font-size: 20px; font-weight: 700; line-height: 1.35;
    margin-top: 4px; color: var(--text-dark);
}
.feed-card:hover h2 { color: var(--brand-red); }

/* Native Ad Box */
.feed-ad-box {
    background: var(--bg-gray);
    padding: 20px; border-radius: 12px;
    border-left: 5px solid var(--brand-red);
    box-shadow: var(--shadow-sm);
}
.ad-label-small {
    font-size: 11px; text-transform: uppercase;
    color: var(--text-muted); font-weight: 700;
    margin-bottom: 12px; display: block;
}
.native-ad-flex { display: flex; gap: 16px; }
.native-ad-flex img {
    width: 110px; height: 110px; object-fit: cover; border-radius: 8px;
}
.native-ad-text h3 {
    font-family: var(--font-heading);
    font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text-dark);
}
.native-ad-text p { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* Buttons */
.load-more-btn {
    width: 100%; padding: 18px;
    background: var(--bg-gray); border: 1px solid var(--border-soft); border-radius: 12px;
    font-size: 16px; font-weight: 700; color: var(--text-dark);
    margin-top: 30px; cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.load-more-btn:hover { background: var(--border-soft); transform: translateY(-1px); }
.load-more-btn.loading {
    opacity: 0.7; pointer-events: none;
}

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 30px; }
.ad-placeholder {
    background: var(--bg-gray);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 14px; font-weight: 700;
    border-radius: 12px; border: 1px dashed var(--border-color);
}
.box-ad { width: 100%; height: 250px; }
.sticky-ad { width: 100%; height: 600px; position: sticky; top: 120px; }

.trending-widget {
    background: var(--bg-main);
    border: 1px solid var(--border-soft);
    border-radius: 12px; padding: 20px;
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-family: var(--font-heading);
    font-size: 20px; font-weight: 700; margin-bottom: 20px;
    border-bottom: 2px solid var(--brand-red); padding-bottom: 8px;
    display: inline-block; color: var(--text-dark);
}
.trending-list { list-style: none; }
.trending-list li {
    display: flex; gap: 16px; padding: 16px 0;
    border-bottom: 1px solid var(--border-soft);
    align-items: flex-start;
}
.trending-list li:last-child { border-bottom: none; }
.trend-number {
    font-family: var(--font-heading);
    font-size: 28px; font-weight: 700; color: var(--brand-red);
    line-height: 1;
    opacity: 0.8;
}
.trending-list a {
    font-family: var(--font-serif);
    font-weight: 600; font-size: 15px; line-height: 1.45; color: var(--text-dark);
}
.trending-list a:hover { color: var(--brand-red); }

/* Footer */
.site-footer {
    background: #090d16; color: #f1f5f9;
    padding: 60px 0 40px; margin-top: 60px;
    border-top: 4px solid var(--brand-red);
}
.site-footer.dark-theme-active {
    background: #020617;
    border-top: 4px solid var(--brand-red);
}
.footer-inner {
    display: flex; flex-direction: column; gap: 32px; text-align: center;
}
.footer-brand .logo { color: #fff; }
.footer-brand p {
    color: #94a3b8; font-size: 14px; margin-top: 16px; max-width: 450px; margin-inline: auto;
    line-height: 1.5;
}
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.footer-links a { color: #cbd5e1; font-size: 14px; font-weight: 500; }
.footer-links a:hover { color: #fff; }

/* Readability Styles */
#articleBody {
    font-family: var(--font-serif); 
    color: var(--text-dark); 
    line-height: 1.95; 
    font-size: 1.2rem; 
}

#articleBody p {
    margin-bottom: 1.8em;
}

#articleBody strong, #articleBody b {
    font-weight: 700;
}

#articleBody a {
    color: var(--brand-red); 
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    font-weight: 700;
    transition: all 0.3s ease;
}
#articleBody a:hover {
    color: var(--brand-red-dark);
    background-color: rgba(218,41,46,0.08); 
}

#articleBody h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 2em;
    margin-bottom: 0.8em;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-soft);
    line-height: 1.3;
}

#articleBody h3 {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1.8em;
    margin-bottom: 0.8em;
}

#articleBody h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

#articleBody ul {
    list-style-type: disc;
    padding-left: 1.5em;
    margin-bottom: 1.8em;
}
#articleBody ol {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin-bottom: 1.8em;
}
#articleBody li {
    margin-bottom: 0.6em;
    padding-left: 0.4em;
}
#articleBody li::marker {
    color: var(--brand-red);
    font-weight: bold;
}

#articleBody blockquote {
    border-left: 5px solid var(--brand-red);
    background-color: var(--bg-gray);
    padding: 1.6em 2em;
    margin: 2.2em 0;
    font-style: italic;
    color: var(--text-muted);
    border-radius: 0 1rem 1rem 0;
    font-size: 1.25rem;
}

#articleBody img {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    margin: 2.2em auto;
    display: block;
}

/* =========================================================
   DİNAMİK KARANLIK MOD KESİNTİLERİ (INTERCEPTORS)
   ========================================================= */
body.dark-theme .bg-white,
body.dark-theme .bg-slate-50,
body.dark-theme .bg-slate-100,
body.dark-theme .bg-\[\#ffffff\],
body.dark-theme .bg-slate-100 {
    background-color: var(--bg-gray) !important;
}

body.dark-theme .bg-\[\#f8fafc\],
body.dark-theme .bg-\[\#f1f5f9\],
body.dark-theme .bg-slate-100\/50,
body.dark-theme .bg-slate-50\/50 {
    background-color: #0f172a !important;
}

body.dark-theme .text-slate-900,
body.dark-theme .text-slate-800,
body.dark-theme .text-slate-700,
body.dark-theme .text-\[\#111111\],
body.dark-theme .text-slate-950 {
    color: var(--text-dark) !important;
}

body.dark-theme .text-slate-600,
body.dark-theme .text-slate-500,
body.dark-theme .text-slate-400 {
    color: var(--text-muted) !important;
}

body.dark-theme .border-slate-200,
body.dark-theme .border-slate-100,
body.dark-theme .border-slate-300\/50,
body.dark-theme .border-dashed {
    border-color: var(--border-color) !important;
}

body.dark-theme .shadow-sm,
body.dark-theme .shadow-md,
body.dark-theme .shadow-lg {
    box-shadow: var(--shadow-sm) !important;
}

/* Responsive Grid columns */
@media (min-width: 768px) {
    .content-grid { grid-template-columns: 2fr 1fr; }
    .feed-card a { flex-direction: row; align-items: center; }
    .card-img { width: 40%; flex-shrink: 0; }
    .article-title { font-size: 38px; }
    .footer-inner { flex-direction: row; text-align: left; justify-content: space-between; }
    .footer-brand p { margin-inline: 0; }
}