/* ============================================================
   SonDakikaİ — Premium News Design System
   Inspired by: haberler.com, habertürk, sözcü, hürriyet
   Brand: #DC2626 (News Red) + #0F172A (Ink Navy)
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    /* Background */
    --bg-body: #f2f3f5;
    --bg-primary: #ffffff;
    --bg-secondary: #f7f8fa;
    --bg-card: #ffffff;
    --bg-card-hover: #fcfcfd;
    --bg-surface: #eef0f4;
    --bg-input: #f5f6f8;
    --bg-dark: #0F172A;

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    --text-inverse: #ffffff;
    --text-link: #DC2626;

    /* Brand */
    --red: #DC2626;
    --red-dark: #B91C1C;
    --red-light: #FEF2F2;
    --red-glow: 0 2px 12px rgba(220, 38, 38, 0.25);

    /* Category Colors */
    --cat-gundem: #DC2626;
    --cat-ekonomi: #059669;
    --cat-dunya: #EA580C;
    --cat-spor: #2563EB;
    --cat-teknoloji: #7C3AED;
    --cat-saglik: #16A34A;
    --cat-kultur: #9333EA;
    --cat-egitim: #4F46E5;
    --cat-magazin: #DB2777;
    --cat-otomobil: #D97706;
    --cat-siyaset: #DC2626;
    --cat-yasam: #0D9488;

    /* Typography */
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --sp-1: 0.25rem;
    --sp-2: 0.5rem;
    --sp-3: 0.75rem;
    --sp-4: 1rem;
    --sp-5: 1.25rem;
    --sp-6: 1.5rem;
    --sp-8: 2rem;
    --sp-10: 2.5rem;
    --sp-12: 3rem;
    --sp-16: 4rem;

    /* Radius */
    --r-sm: 4px;
    --r-md: 8px;
    --r-lg: 12px;
    --r-xl: 16px;
    --r-full: 9999px;

    /* Shadows */
    --sh-xs: 0 1px 2px rgba(0,0,0,0.04);
    --sh-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --sh-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --sh-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --sh-xl: 0 20px 25px -5px rgba(0,0,0,0.1);

    /* Border */
    --border: #E2E8F0;
    --border-light: #F1F5F9;

    /* Transition */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --dur: 200ms;
    --dur-slow: 350ms;

    /* Layout */
    --max-w: 1240px;
    --header-h: 52px;
    --topbar-h: 36px;
}


/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-body);
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; transition: color var(--dur) var(--ease); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
button { cursor: pointer; font-family: var(--font-body); }

::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Screen-reader only — hidden visually, accessible to bots & screen readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ============================================================
   3. TOP BAR (Finance / Date Bar)
   ============================================================ */
.top-bar {
    background: var(--bg-dark);
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.7);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.top-bar__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-6);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.top-bar__date {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-weight: 500;
    white-space: nowrap;
}

.top-bar__date svg { opacity: 0.5; }

.top-bar__finance {
    display: flex;
    align-items: center;
    gap: var(--sp-6);
    overflow-x: auto;
    scrollbar-width: none;
}
.top-bar__finance::-webkit-scrollbar { display: none; }

.finance-item {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    white-space: nowrap;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.finance-item__label {
    color: rgba(255,255,255,0.45);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.finance-item__val {
    color: #fff;
    font-weight: 600;
}

.finance-item__change { font-size: 0.63rem; }
.finance-item__change--up { color: #34D399; }
.finance-item__change--down { color: #F87171; }


/* ============================================================
   4. HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    transition: box-shadow var(--dur) var(--ease);
}

.site-header.header--scrolled {
    box-shadow: var(--sh-md);
}

.header__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-6);
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--sp-8);
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity var(--dur) var(--ease);
}
.header__logo:hover { opacity: 0.85; }

.header__logo-img {
    height: 32px;
    width: auto;
    display: block;
}

/* Nav */
.header__nav {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}
.header__nav::-webkit-scrollbar { display: none; }

.nav__link {
    padding: 0 var(--sp-4);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--dur) var(--ease);
    position: relative;
    height: var(--header-h);
    display: flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--red);
    border-radius: 3px 3px 0 0;
    transition: all var(--dur) var(--ease);
    transform: translateX(-50%);
}

.nav__link:hover {
    color: var(--text-primary);
}

.nav__link:hover::after {
    width: calc(100% - var(--sp-8));
}

.nav__link--active {
    color: var(--red);
    font-weight: 700;
}
.nav__link--active::after {
    width: calc(100% - var(--sp-8));
    background: var(--red);
}

/* Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-shrink: 0;
}

.header__search {
    position: relative;
    display: flex;
    align-items: center;
}

.search__input {
    width: 180px;
    padding: 7px 36px 7px 12px;
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: var(--r-full);
    color: var(--text-primary);
    font-size: 0.8rem;
    font-family: var(--font-body);
    transition: all var(--dur) var(--ease);
}
.search__input:focus {
    width: 240px;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
    outline: none;
    background: var(--bg-primary);
}
.search__input::placeholder { color: var(--text-muted); }

.search__btn {
    position: absolute;
    right: 6px;
    background: none;
    border: none;
    color: var(--text-muted);
    display: flex;
    padding: 4px;
    transition: color var(--dur);
}
.search__btn:hover { color: var(--red); }

/* Mobile menu */
.header__menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
}
.header__menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--dur) var(--ease);
}


/* ============================================================
   5. BREAKING NEWS TICKER
   ============================================================ */
.breaking-ticker {
    background: var(--red);
    display: flex;
    align-items: center;
    overflow: hidden;
    height: 38px;
}

.ticker__badge {
    background: var(--red-dark);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 0 var(--sp-5);
    flex-shrink: 0;
    text-transform: uppercase;
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    animation: ticker-pulse 2s ease-in-out infinite;
    position: relative;
}

.ticker__badge::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 0;
    bottom: 0;
    width: 8px;
    background: linear-gradient(to right, var(--red-dark), var(--red));
}

@keyframes ticker-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.ticker__badge-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: dot-blink 1s ease-in-out infinite;
}

@keyframes dot-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ticker__track {
    overflow: hidden;
    flex: 1;
    mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.ticker__content {
    display: flex;
    gap: var(--sp-10);
    animation: ticker-scroll 50s linear infinite;
    white-space: nowrap;
    width: max-content;
}

.ticker__item {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.92);
    transition: color var(--dur);
    padding: 0 var(--sp-2);
    font-weight: 500;
}
.ticker__item:hover { color: #fff; }
.ticker__item::before {
    content: '●';
    font-size: 0.4rem;
    color: rgba(255,255,255,0.4);
    margin-right: var(--sp-3);
    vertical-align: middle;
}

@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}


/* ============================================================
   6. CONTAINER & LAYOUTS
   ============================================================ */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.home-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--sp-8);
    margin-top: var(--sp-6);
}


/* ============================================================
   7. HERO SECTION — Haberturk / Hürriyet Style
   ============================================================ */
.hero-section {
    padding: var(--sp-6) 0 var(--sp-4);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--sp-4);
    min-height: 380px;
}

.hero-card {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--bg-dark);
}

.hero-card__link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    color: transparent;
    font-size: 0;
    transition: transform 0.6s var(--ease);
}
.hero-card:hover .hero-card__img { transform: scale(1.04); }

.hero-card__img--placeholder {
    background: linear-gradient(135deg, #1E293B 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.15);
}

.hero-card__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--sp-8) var(--sp-6) var(--sp-6);
    background: linear-gradient(0deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
    z-index: 1;
}

.hero-card__category {
    display: inline-block;
    font-size: 0.63rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: var(--r-sm);
    background: var(--cat-color, var(--red));
    color: #fff;
    margin-bottom: var(--sp-2);
}

.hero-card--main .hero-card__title {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.2;
    color: #fff;
    margin-bottom: var(--sp-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card--side .hero-card__title {
    font-size: 0.88rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-card__meta {
    display: flex;
    gap: var(--sp-2);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.55);
    margin-top: var(--sp-1);
}

.hero-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--sp-4);
}


/* ============================================================
   8. SECTION HEADER — Category Dividers (Sözcü style)
   ============================================================ */
.section-header {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-5);
    padding-bottom: var(--sp-3);
    border-bottom: 3px solid var(--section-color, var(--red));
}

.section-header__title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.section-header__icon {
    font-size: 1.1rem;
}

.section-header__line {
    flex: 1;
    height: 1px;
    background: var(--border);
}

.section-header__more {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color var(--dur);
    display: flex;
    align-items: center;
    gap: var(--sp-1);
}
.section-header__more:hover { color: var(--red); }
.section-header__more svg {
    width: 12px;
    height: 12px;
}


/* ============================================================
   9. CATEGORY SECTIONS — Vertical Blocks
   ============================================================ */
.category-section {
    padding: var(--sp-6) 0;
    border-bottom: 1px solid var(--border-light);
}

.category-section:last-child {
    border-bottom: none;
}

.cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--sp-4);
}

/* First item spans larger in category section */
.cat-grid--featured {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
}

.cat-grid--featured .article-card:first-child {
    grid-row: 1 / 3;
}

/* List-style card for category sections */
.cat-list-item {
    display: flex;
    gap: var(--sp-4);
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--border-light);
    transition: background var(--dur) var(--ease);
}

.cat-list-item:last-child { border-bottom: none; }
.cat-list-item:hover { background: var(--bg-secondary); }

.cat-list-item__img {
    width: 120px;
    height: 80px;
    flex-shrink: 0;
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--bg-surface);
}

.cat-list-item__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-list-item__body { flex: 1; min-width: 0; }

.cat-list-item__title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--dur);
}

.cat-list-item:hover .cat-list-item__title { color: var(--red); }

.cat-list-item__meta {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: var(--sp-1);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}


/* ============================================================
   10. CATEGORY TABS (Horizontal scrollable)
   ============================================================ */
.category-tabs {
    margin: var(--sp-4) 0;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--bg-primary);
    border-radius: var(--r-lg);
    padding: var(--sp-3) var(--sp-4);
    box-shadow: var(--sh-xs);
    border: 1px solid var(--border-light);
}
.category-tabs::-webkit-scrollbar { display: none; }

.tabs__track {
    display: flex;
    gap: var(--sp-1);
}

.tab {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    padding: var(--sp-2) var(--sp-4);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: all var(--dur) var(--ease);
    border-radius: var(--r-full);
}
.tab:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}
.tab--active {
    color: #fff;
    background: var(--red);
}

.tab__icon { font-size: 0.9rem; }

.tab__count {
    background: rgba(0,0,0,0.06);
    padding: 1px 6px;
    border-radius: 20px;
    font-size: 0.63rem;
    color: var(--text-muted);
    font-weight: 500;
}
.tab--active .tab__count {
    background: rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.8);
}


/* ============================================================
   11. ARTICLE CARD — Standard & Compact
   ============================================================ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
}
.articles-grid--4 { grid-template-columns: repeat(4, 1fr); }
.articles-grid--2 { grid-template-columns: repeat(2, 1fr); }

.article-card {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--dur) var(--ease);
}
.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sh-lg);
    border-color: transparent;
}

.article-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.article-card__image-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-surface);
}

.article-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    color: transparent;
    font-size: 0;
    transition: transform var(--dur-slow) var(--ease);
}
.article-card:hover .article-card__img { transform: scale(1.05); }

.article-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
    color: var(--text-muted);
}

.article-card__category {
    position: absolute;
    top: var(--sp-2);
    left: var(--sp-2);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: var(--r-sm);
    background: var(--cat-color, var(--red));
    color: #fff;
}

.article-card__body {
    padding: var(--sp-4);
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card__title {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--sp-2);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--dur);
}
.article-card:hover .article-card__title { color: var(--red); }

.article-card__excerpt {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: auto;
}

.article-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--sp-3);
    margin-top: var(--sp-3);
    border-top: 1px solid var(--border-light);
}

.article-card__meta {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    font-size: 0.68rem;
    color: var(--text-muted);
}

.meta__dot { opacity: 0.3; font-size: 0.5rem; }

.article-card__views {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.article-card__source {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 500;
}

.source__logo {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    object-fit: contain;
}


/* ============================================================
   12. SIDEBAR
   ============================================================ */
.sidebar {
    position: sticky;
    top: calc(var(--header-h) + var(--sp-6));
    align-self: start;
}

.sidebar__widget {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-light);
    padding: var(--sp-5);
    margin-bottom: var(--sp-5);
}

.widget__title {
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 2px solid var(--red);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.widget__list { display: flex; flex-direction: column; gap: 0; }

.popular-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-2);
    border-radius: var(--r-md);
    transition: background var(--dur) var(--ease);
    border-bottom: 1px solid var(--border-light);
}
.popular-item:last-child { border-bottom: none; }
.popular-item:hover { background: var(--bg-secondary); }

.popular-item__rank {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
}

/* Top 3 ranks get red color */
.popular-item:nth-child(1) .popular-item__rank,
.popular-item:nth-child(2) .popular-item__rank,
.popular-item:nth-child(3) .popular-item__rank {
    color: var(--red);
}

.popular-item:nth-child(n+4) .popular-item__rank {
    color: var(--text-muted);
    opacity: 0.4;
}

.popular-item__content { flex: 1; min-width: 0; }

.popular-item__title {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--dur);
}

.popular-item:hover .popular-item__title { color: var(--red); }

.popular-item__source,
.popular-item__meta {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}

.widget__categories {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cat-badge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--dur) var(--ease);
}
.cat-badge:hover { background: var(--bg-surface); color: var(--text-primary); }
.cat-badge--active { background: var(--red-light); color: var(--red); font-weight: 600; }

.cat-badge__count {
    font-size: 0.68rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    padding: 1px 6px;
    border-radius: 10px;
}


/* ============================================================
   13. SECTION TITLE (Simple)
   ============================================================ */
.section__title {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: var(--sp-5);
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.section__title-bar {
    width: 4px;
    height: 20px;
    background: var(--red);
    border-radius: 2px;
    flex-shrink: 0;
}


/* ============================================================
   14. ARTICLE DETAIL PAGE
   ============================================================ */
.article-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--sp-6);
}

.article-content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--sp-8);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-bottom: var(--sp-5);
    font-size: 0.78rem;
    color: var(--text-muted);
}
.breadcrumb__link { transition: color var(--dur); }
.breadcrumb__link:hover { color: var(--red); }
.breadcrumb__sep { opacity: 0.3; font-size: 0.65rem; }
.breadcrumb__current { color: var(--text-secondary); }

/* Detail card */
.article-detail {
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-light);
    padding: var(--sp-8);
    margin-bottom: var(--sp-6);
}

.article-detail__header { margin-bottom: var(--sp-6); }

.article-detail__category {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: var(--r-sm);
    background: var(--cat-color, var(--red));
    color: #fff;
    margin-bottom: var(--sp-4);
}

.article-detail__title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: var(--sp-4);
    color: var(--text-primary);
}

.article-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.article-detail__author {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Featured image */
.article-detail__image {
    margin-bottom: var(--sp-6);
    border-radius: var(--r-md);
    overflow: hidden;
}
.article-detail__image img {
    width: 100%;
    border-radius: var(--r-md);
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: var(--header-h);
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), #FF6B6B);
    width: 0%;
    z-index: 999;
    transition: width 100ms linear;
}

/* Article body */
.article-detail__body {
    font-size: 1.02rem;
    line-height: 1.85;
    color: var(--text-primary);
    margin-bottom: var(--sp-8);
}

.article-detail__body h2 {
    font-size: 1.3rem;
    margin: var(--sp-8) 0 var(--sp-4);
    color: var(--text-primary);
    padding-bottom: var(--sp-2);
    border-bottom: 2px solid var(--border-light);
}

.article-detail__body h3 {
    font-size: 1.05rem;
    margin: var(--sp-6) 0 var(--sp-3);
    color: var(--text-primary);
}

.article-detail__body p { margin-bottom: var(--sp-4); }

.article-detail__body ul, .article-detail__body ol {
    margin-bottom: var(--sp-4);
    padding-left: var(--sp-6);
}

.article-detail__body li { margin-bottom: var(--sp-2); }

.article-detail__body blockquote {
    border-left: 4px solid var(--red);
    padding: var(--sp-4) var(--sp-6);
    margin: var(--sp-6) 0;
    background: var(--red-light);
    border-radius: 0 var(--r-md) var(--r-md) 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-detail__body a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(220,38,38,0.3);
}
.article-detail__body a:hover { text-decoration-color: var(--red); }

/* Tags */
.article-detail__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    margin: var(--sp-6) 0;
    padding-top: var(--sp-5);
    border-top: 1px solid var(--border-light);
}

.tags__label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: var(--sp-1);
}

.tag-link,
.tag-badge {
    padding: 4px 12px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--r-full);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--dur) var(--ease);
}
.tag-link:hover,
.tag-badge:hover {
    background: var(--red-light);
    border-color: rgba(220,38,38,0.2);
    color: var(--red);
}

/* Related Articles */
.related-articles {
    margin-top: var(--sp-8);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--border-light);
}

.articles-grid--related {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

/* CTA Button */
.article-detail__cta { margin-bottom: var(--sp-6); }
.cta-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--sp-4) var(--sp-6);
    background: var(--red);
    color: #fff;
    border-radius: var(--r-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--dur) var(--ease);
    box-shadow: var(--red-glow);
}
.cta-button:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    color: #fff;
}
.cta-button__source {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.85;
}


/* ============================================================
   15. SOURCE ATTRIBUTION
   ============================================================ */
.source-attribution {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: var(--r-md);
    padding: var(--sp-5);
    margin-bottom: var(--sp-6);
}

.source-attribution__badge {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: var(--sp-1);
    color: var(--text-primary);
}

.source-attribution__logo {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    object-fit: contain;
}

.source-attribution__badge a {
    color: var(--red);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.source-attribution__text {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.5;
}


/* ============================================================
   16. SHARE BUTTONS
   ============================================================ */
.article-detail__share {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.82rem;
    transition: all var(--dur) var(--ease);
}
.share-btn--twitter { background: #E8F5FD; color: #1DA1F2; }
.share-btn--twitter:hover { background: #1DA1F2; color: #fff; transform: scale(1.08); }
.share-btn--facebook { background: #E8EAF6; color: #4267B2; }
.share-btn--facebook:hover { background: #4267B2; color: #fff; transform: scale(1.08); }
.share-btn--whatsapp { background: #E8F5E9; color: #25D366; }
.share-btn--whatsapp:hover { background: #25D366; color: #fff; transform: scale(1.08); }


/* ============================================================
   17. RELATED ARTICLES
   ============================================================ */
.related-section {
    margin-top: var(--sp-8);
    padding-top: var(--sp-6);
    border-top: 2px solid var(--border-light);
}

/* ── Infinite Full Article Feed ── */
.article-main-col {
    min-width: 0;
}

.article-feed {
    margin-top: var(--sp-4);
}

.feed-article {
    margin-bottom: var(--sp-6);
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-light);
    padding: var(--sp-8);
}

.feed-article__divider {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
    padding-top: var(--sp-6);
}

.feed-article__divider::before,
.feed-article__divider::after {
    content: '';
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, var(--red), transparent);
}

.feed-article__divider::after {
    background: linear-gradient(to left, var(--red), transparent);
}

.feed-article__divider-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--red);
    white-space: nowrap;
    padding: var(--sp-2) var(--sp-4);
    background: var(--bg-surface);
    border-radius: var(--r-full);
    border: 1px solid var(--border-light);
}

.feed-article__header {
    margin-bottom: var(--sp-5);
}

.feed-article__category {
    display: inline-block;
    padding: 3px 12px;
    background: var(--cat-color, var(--red));
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--r-sm);
    margin-bottom: var(--sp-3);
    text-decoration: none;
    transition: opacity var(--dur);
}

.feed-article__category:hover {
    opacity: 0.85;
}

.feed-article__title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-bottom: var(--sp-3);
}

.feed-article__title a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur);
}

.feed-article__title a:hover {
    color: var(--red);
}

.feed-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-4);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.feed-article__image {
    margin-bottom: var(--sp-5);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.feed-article__image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.feed-article__body {
    font-size: 0.95rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: var(--sp-5);
}

.feed-article__body p {
    margin-bottom: var(--sp-4);
}

.feed-article__footer {
    padding-top: var(--sp-4);
    border-top: 1px solid var(--border-light);
}

.feed-article__read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: gap var(--dur) var(--ease);
}

.feed-article__read-more:hover {
    gap: var(--sp-3);
}


/* ============================================================
   18. CATEGORY & SEARCH PAGES
   ============================================================ */
.category-layout, .search-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--sp-6);
}

/* ── Category Header ── */
.cat-header {
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-5);
    border-bottom: 3px solid var(--cat-accent, var(--red));
}

.cat-header__title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

.cat-header__icon { font-size: 1.6rem; }

.cat-header__suffix {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 1.4rem;
}

.cat-header__desc {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: var(--sp-2);
    line-height: 1.6;
}

/* ── Category Hero ── */
.cat-hero {
    margin-bottom: var(--sp-8);
}

.cat-hero__grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--sp-4);
    min-height: 380px;
}

.cat-hero__main,
.cat-hero__side-item {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    background: var(--navy-dark);
}

.cat-hero__link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cat-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    color: transparent;
    font-size: 0;
    transition: transform 0.5s var(--ease);
}

.cat-hero__link:hover .cat-hero__img {
    transform: scale(1.04);
}

.cat-hero__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}

.cat-hero__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--sp-6);
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    color: #fff;
    z-index: 1;
}

.cat-hero__title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: var(--sp-2);
    font-family: var(--font-heading);
}

.cat-hero__title--sm {
    font-size: 1rem;
    font-weight: 700;
}

.cat-hero__excerpt {
    font-size: 0.85rem;
    opacity: 0.85;
    line-height: 1.5;
    margin-bottom: var(--sp-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cat-hero__meta {
    font-size: 0.75rem;
    opacity: 0.7;
    display: flex;
    gap: var(--sp-2);
}

.cat-hero__side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: var(--sp-4);
}

.cat-hero__side-item {
    min-height: 0;
}

/* ── Category Content Grid ── */
.cat-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--sp-8);
    margin-top: var(--sp-6);
}

/* ── Feed List Items ── */
.cat-feed__list {
    display: flex;
    flex-direction: column;
}

.list-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: var(--sp-5);
    padding: var(--sp-5) 0;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    transition: all var(--dur) var(--ease);
}

.list-item:first-child {
    padding-top: 0;
}

.list-item:hover {
    background: var(--bg-surface);
    margin-left: calc(var(--sp-4) * -1);
    margin-right: calc(var(--sp-4) * -1);
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
    border-radius: var(--r-md);
}

.list-item__img-wrap {
    border-radius: var(--r-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--bg-surface);
}

.list-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease);
}

.list-item:hover .list-item__img {
    transform: scale(1.06);
}

.list-item__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
}

.list-item__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.list-item__title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: var(--sp-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-item:hover .list-item__title {
    color: var(--red);
}

.list-item__excerpt {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--sp-3);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-item__meta {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.list-item__source {
    color: var(--red);
    font-weight: 600;
}

/* Legacy search styles */
.search-header {
    margin-bottom: var(--sp-8);
}

.search-header__title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.search-form {
    display: flex;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
    max-width: 500px;
}

.search-form__input {
    flex: 1;
    padding: 10px var(--sp-4);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-size: 0.88rem;
    font-family: var(--font-body);
}
.search-form__input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(220,38,38,0.08);
}

.search-form__btn {
    padding: 10px var(--sp-6);
    background: var(--red);
    border: none;
    border-radius: var(--r-md);
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all var(--dur);
    box-shadow: var(--red-glow);
}
.search-form__btn:hover { background: var(--red-dark); transform: translateY(-1px); }

.search-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: var(--sp-5);
}


/* ============================================================
   19. STATIC PAGES
   ============================================================ */
.static-page {
    max-width: 720px;
    margin: var(--sp-8) auto;
    padding: var(--sp-8) var(--sp-6);
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-light);
}

.static-page h1 {
    font-size: 1.6rem;
    margin-bottom: var(--sp-5);
    color: var(--text-primary);
}

.static-page h2 {
    font-size: 1.15rem;
    margin: var(--sp-6) 0 var(--sp-4);
    color: var(--text-primary);
}

.static-page p, .static-page ul {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--sp-4);
}

.static-page ul { padding-left: var(--sp-6); }
.static-page li { margin-bottom: var(--sp-2); }


/* ============================================================
   20. CONTENT GRID
   ============================================================ */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--sp-8);
}


/* ============================================================
   21. PAGINATION
   ============================================================ */
nav[aria-label="Pagination Navigation"] .flex { display: none; }
nav[aria-label="Pagination Navigation"] > div:last-child {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin-top: var(--sp-8);
    flex-wrap: wrap;
}

nav[aria-label="Pagination Navigation"] span,
nav[aria-label="Pagination Navigation"] a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 var(--sp-2);
    border-radius: var(--r-md);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--dur) var(--ease);
}

nav[aria-label="Pagination Navigation"] a {
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
nav[aria-label="Pagination Navigation"] a:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
    border-color: var(--red);
}

nav[aria-label="Pagination Navigation"] span[aria-current="page"] span {
    background: var(--red);
    color: #fff;
    border-radius: var(--r-md);
    min-width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: var(--red-glow);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: var(--sp-12);
    font-size: 0.9rem;
    background: var(--bg-card);
    border-radius: var(--r-lg);
    border: 1px dashed var(--border);
}


/* ============================================================
   22. FOOTER — Professional (Haberler.com + Sözcü style)
   ============================================================ */
.site-footer {
    margin-top: var(--sp-12);
    background: var(--bg-dark);
    color: #fff;
}

.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--sp-12) var(--sp-6) var(--sp-8);
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: var(--sp-10);
}

.footer__logo-img {
    height: 30px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    margin-bottom: var(--sp-3);
}

.footer__brand .logo__text {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}
.footer__brand .logo__text strong { color: var(--red); }

.footer__tagline {
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
    margin-top: var(--sp-2);
    line-height: 1.5;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-6);
}

.footer__col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: var(--sp-4);
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.footer__col a {
    display: block;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
    padding: 3px 0;
    transition: color var(--dur);
}
.footer__col a:hover { color: var(--red); }

.footer__bottom {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--sp-5) var(--sp-6);
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
}

.footer__disclaimer {
    margin-top: var(--sp-1);
    font-size: 0.68rem;
    opacity: 0.6;
}


/* ============================================================
   23. RESPONSIVE
   ============================================================ */

/* Large Desktop */
@media (max-width: 1280px) {
    :root { --max-w: 1080px; }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    .content-grid,
    .article-content-grid,
    .main-grid,
    .cat-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-5);
    }

    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .articles-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }

    .cat-hero__grid { min-height: 320px; }
    .cat-hero__title { font-size: 1.2rem; }

    .footer__inner { grid-template-columns: 1fr; }
    .footer__links { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --header-h: 48px;
        --topbar-h: 0px;
    }

    .top-bar { display: none; }

    .hero-grid {
        grid-template-columns: 1fr;
        min-height: auto;
        gap: var(--sp-3);
    }

    .hero-card--main {
        min-height: 260px;
    }
    .hero-card--main .hero-card__title { font-size: 1.2rem; }
    .hero-side { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
    .hero-side .hero-card {
        min-height: 180px;
    }

    .header__nav { display: none; }
    .header__menu-toggle { display: flex; }

    .header__nav--open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        padding: var(--sp-4) var(--sp-6);
        z-index: 999;
        animation: slideDown var(--dur-slow) var(--ease);
        border-top: 1px solid var(--border);
        overflow-y: auto;
    }

    .header__nav--open .nav__link {
        padding: var(--sp-4);
        font-size: 0.9rem;
        border-bottom: 1px solid var(--border-light);
        height: auto;
    }

    .header__nav--open .nav__link::after { display: none; }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .articles-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
    .articles-grid--4 { grid-template-columns: 1fr 1fr; }
    .cat-grid { grid-template-columns: 1fr; }

    .cat-hero__grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .cat-hero__main {
        min-height: 260px;
    }
    .cat-hero__side {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .cat-hero__side-item {
        min-height: 180px;
    }
    .cat-hero__title { font-size: 1.15rem; }
    .cat-hero__excerpt { display: none; }

    .list-item {
        grid-template-columns: 140px 1fr;
        gap: var(--sp-3);
    }

    .article-detail { padding: var(--sp-5); }
    .article-detail__title { font-size: 1.35rem; }

    .search__input { width: 120px; }
    .search__input:focus { width: 160px; }

    .sidebar {
        grid-template-columns: 1fr;
    }

    .category-tabs { border-radius: 0; margin-left: calc(var(--sp-6) * -1); margin-right: calc(var(--sp-6) * -1); padding: var(--sp-3) var(--sp-6); }

    .footer__links { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 480px) {
    .hero-side { grid-template-columns: 1fr; }
    .hero-side .hero-card { min-height: 160px; }
    .articles-grid { grid-template-columns: 1fr; }
    .articles-grid--4 { grid-template-columns: 1fr; }

    .hero-card--main .hero-card__title { font-size: 1.05rem; }
    .article-detail__title { font-size: 1.15rem; }

    .cat-hero__side { grid-template-columns: 1fr; }
    .cat-hero__side-item { min-height: 160px; }
    .cat-header__title { font-size: 1.3rem; }
    .cat-header__suffix { font-size: 1rem; }
    .list-item { grid-template-columns: 110px 1fr; gap: var(--sp-3); }
    .list-item__title { font-size: 0.9rem; }
    .list-item__excerpt { display: none; }
    .article-detail__meta { font-size: 0.72rem; gap: var(--sp-2); }
    .article-detail { padding: var(--sp-4); }

    .header__logo-img { height: 26px; }

    .footer__links { grid-template-columns: 1fr; }

    .section-header__title { font-size: 0.88rem; }

    .category-header__title, .search-header__title { font-size: 1.15rem; }

    .breaking-ticker { height: 34px; }
    .ticker__badge { font-size: 0.58rem; padding: 0 var(--sp-3); }
    .ticker__item { font-size: 0.72rem; }
}


/* ============================================================
   24. UTILITIES & MISC
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Image lazy-load fade-in */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
img[loading="lazy"].img--loaded,
img[loading="eager"] {
    opacity: 1;
}

/* Ad placeholder */
.ad-slot {
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.72rem;
    min-height: 90px;
    margin: var(--sp-5) 0;
}


/* ============================================================
   25. INFINITE SCROLL
   ============================================================ */
.infinite-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    padding: var(--sp-8) 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    opacity: 0.4;
    transition: opacity var(--dur) var(--ease);
}

.infinite-loader--active {
    opacity: 1;
}

.infinite-loader__spinner {
    display: flex;
    animation: spin 1s linear infinite;
}

.infinite-loader__spinner svg {
    color: var(--red);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.infinite-end {
    text-align: center;
    padding: var(--sp-6) 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
    position: relative;
}

.infinite-end::before,
.infinite-end::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: var(--border);
}
.infinite-end::before { right: calc(50% + 70px); }
.infinite-end::after { left: calc(50% + 70px); }


/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: cookieSlideUp 0.4s var(--ease) both;
}

@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.cookie-banner__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: var(--sp-4) var(--sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
}

.cookie-banner__text {
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    line-height: 1.5;
    flex: 1;
}

.cookie-banner__text a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cookie-banner__text a:hover { color: var(--red); }

.cookie-banner__btn {
    background: var(--red);
    color: #fff;
    border: none;
    padding: var(--sp-2) var(--sp-6);
    border-radius: var(--r-full);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all var(--dur) var(--ease);
    flex-shrink: 0;
}
.cookie-banner__btn:hover {
    background: var(--red-dark);
    box-shadow: var(--red-glow);
}


/* ============================================================
   DARK MODE
   ============================================================ */
@media (prefers-color-scheme: dark) {
    :root:not(.light-mode) {
        --bg-body: #0a0f1a;
        --bg-primary: #111827;
        --bg-secondary: #1a2236;
        --bg-card: #151d2e;
        --bg-card-hover: #1a2540;
        --bg-surface: #1e293b;
        --bg-input: #1e293b;
        --bg-dark: #030712;

        --text-primary: #e2e8f0;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        --text-inverse: #0f172a;

        --border: #1e293b;
        --border-light: #1e293b;

        --sh-xs: 0 1px 2px rgba(0,0,0,0.3);
        --sh-sm: 0 1px 3px rgba(0,0,0,0.4);
        --sh-md: 0 4px 6px rgba(0,0,0,0.4);
        --sh-lg: 0 10px 15px rgba(0,0,0,0.4);
    }
}

.dark-mode {
    --bg-body: #0a0f1a;
    --bg-primary: #111827;
    --bg-secondary: #1a2236;
    --bg-card: #151d2e;
    --bg-card-hover: #1a2540;
    --bg-surface: #1e293b;
    --bg-input: #1e293b;
    --bg-dark: #030712;

    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;

    --border: #1e293b;
    --border-light: #1e293b;

    --sh-xs: 0 1px 2px rgba(0,0,0,0.3);
    --sh-sm: 0 1px 3px rgba(0,0,0,0.4);
    --sh-md: 0 4px 6px rgba(0,0,0,0.4);
    --sh-lg: 0 10px 15px rgba(0,0,0,0.4);
}

/* Dark mode: logo beyaz */
.dark-mode .header__logo-img {
    filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {
    :root:not(.light-mode) .header__logo-img {
        filter: brightness(0) invert(1);
    }
}

/* Dark mode toggle button */
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    width: 34px;
    height: 34px;
    border-radius: var(--r-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--dur) var(--ease);
    color: var(--text-secondary);
}
.theme-toggle:hover {
    border-color: var(--red);
    color: var(--red);
    background: var(--bg-surface);
}


/* ============================================================
   SEO COMPONENTS
   ============================================================ */

/* Home H1 — Visible but tasteful */
.home-h1 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--sp-2);
    padding-top: var(--sp-6);
    line-height: 1.3;
}

/* Nav breaking dot */
.nav__link--breaking {
    color: var(--red) !important;
    font-weight: 700 !important;
    gap: var(--sp-1);
}
.nav__breaking-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    margin-right: 3px;
    animation: dot-blink 1.2s ease-in-out infinite;
}

/* Breaking Header (Son Dakika page) */
.breaking-layout {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.breaking-header {
    padding: var(--sp-8) 0 var(--sp-6);
}

.breaking-header__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 12px;
    border-radius: var(--r-full);
    margin-bottom: var(--sp-3);
}

.breaking-header__dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: dot-blink 1s ease-in-out infinite;
}

.breaking-header__title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--sp-3);
}

.breaking-header__desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 640px;
}

.breaking-header__stats {
    display: flex;
    gap: var(--sp-6);
    margin-top: var(--sp-4);
    flex-wrap: wrap;
}

.breaking-stat {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
}
.breaking-stat strong {
    color: var(--text-primary);
}

/* Breaking Category Quick Links */
.breaking-cats {
    display: flex;
    gap: var(--sp-2);
    overflow-x: auto;
    scrollbar-width: none;
    padding: var(--sp-4) 0;
    margin-bottom: var(--sp-4);
}
.breaking-cats::-webkit-scrollbar { display: none; }

/* SEO Content Block (Topical Authority Text) */
.seo-content {
    margin-top: var(--sp-10);
    padding: var(--sp-8);
    background: var(--bg-primary);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-light);
}

.seo-content__title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--sp-4);
}

.seo-content__body {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.seo-content__body p {
    margin-bottom: var(--sp-4);
}
.seo-content__body p:last-child {
    margin-bottom: 0;
}

.seo-content__body a {
    color: var(--red);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.seo-content__body a:hover {
    color: var(--red-dark);
}

.seo-content__body strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Dark mode overrides */
.dark-mode .seo-content {
    background: var(--bg-secondary);
    border-color: var(--border);
}

.dark-mode .home-h1 {
    color: var(--text-primary);
}

.dark-mode .breaking-header__title {
    color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
    :root:not(.light-mode) .seo-content {
        background: var(--bg-secondary);
        border-color: var(--border);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .home-h1 {
        font-size: 1.15rem;
    }

    .breaking-header__title {
        font-size: 1.5rem;
    }

    .breaking-header__stats {
        flex-direction: column;
        gap: var(--sp-2);
    }

    .seo-content {
        padding: var(--sp-5);
    }
}
