/* =====================================================================
   ThriveDraft homepage v2
   Sections: header · hero (1+4) · trending · most popular · recommended
             · latest · footer
   ===================================================================== */

:root {
    --h-text: #111827;
    --h-muted: #6B7280;
    --h-bg:   #FFFFFF;
    --h-bg-alt: #F7F7F8;
    --h-border: #E5E7EB;
    --h-primary: #0EA5E9;       /* electric blue — refs use blue chips */
    --h-accent:  #EF4F4F;       /* pink/red accent — refs use red tag */
    --h-success: #10B981;
    /* WCAG AA: acik zeminde METIN olarak kullanilan tonlar. Ayni renk,
       yalnizca koyulastirildi. color-mix yoksa asagidaki sabitler devrede. */
    --h-primary-aa: #0A78AA;
    --h-accent-aa:  #C64242;
    /* siralama numaralarinin okunur gri tonu (34px => >=3:1) */
    --h-rank: #858FA1;
    --h-muted-aa: #474B54;
}
html[data-theme="dark"] {
    --h-text: #F3F4F6;
    --h-muted: #9CA3AF;
    --h-bg:   #0B0F1A;
    --h-bg-alt: #111827;
    --h-border: #1F2937;
    --h-primary-aa: var(--h-primary);
    --h-accent-aa:  var(--h-accent);
    --h-rank: #3A4354;
    --h-muted-aa: var(--h-muted);
}

html, body { background: var(--h-bg); color: var(--h-text); font-family: var(--font-body, 'Inter'), system-ui, sans-serif; }
.site-header a, .site-footer-v2 a { color: inherit; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Section heads (used in all modules) */
.home-section-head { margin: 0 0 28px; }
.home-section-head__title {
    font-family: var(--font-heading, 'Outfit'), system-ui, sans-serif;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
    color: var(--h-text);
}
.home-section-head--two-line .home-section-head__title { margin-bottom: 4px; }
.home-section-head__sub { margin: 0; font-size: 14px; color: var(--h-muted); }

/* ==================================================================
   HEADER
   ================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(180%) blur(8px);
    -webkit-backdrop-filter: saturate(180%) blur(8px);
    border-bottom: 1px solid transparent;
    transition: background .2s, border-color .2s;
}
.site-header[data-state="scrolled"] { border-bottom-color: var(--h-border); }
html[data-theme="dark"] .site-header { background: rgba(11,15,26,0.88); }

/* Dikey bosluk + logo boyutu Ozellestir → Menu'den; varsayilanlar mevcut
   degerlerin aynisi (14px / 44px) — sifir kayma. */
.site-header__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--h-menu-pady, 14px) 32px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
    min-height: 72px;
}
.site-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.site-logo      { height: var(--h-menu-logo, 44px); width: auto; display: block; }
.site-title     { font-family: var(--font-heading, 'Outfit'), sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--h-text); }

.site-nav { display: flex; justify-content: center; }
.site-nav ul {
    display: flex; gap: 32px;
    list-style: none; margin: 0; padding: 0;
    align-items: center;
}
.site-nav a {
    font-size: 15px;
    font-weight: 500;
    color: var(--h-text);
    text-decoration: none;
    padding: 6px 0;
    position: relative;
    transition: color .15s;
}
.site-nav a:hover { color: var(--h-primary-aa); }
.site-nav a.is-active { color: var(--h-primary-aa); font-weight: 600; }
.site-nav a.is-active::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 2px; background: var(--h-primary);
}

.site-header__tools { display: inline-flex; align-items: center; gap: 8px; }
.site-socials { display: inline-flex; align-items: center; gap: 10px; margin-right: 6px; }
.site-socials a {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--h-muted);
    transition: color .15s;
}
.site-socials a:hover { color: var(--h-primary-aa); }
.site-socials svg { width: 16px; height: 16px; display: block; }

.site-header__btn {
    width: 38px !important; height: 38px !important;
    border-radius: 9999px !important;
    border: 0 !important;
    background: var(--h-bg-alt) !important;
    color: var(--h-text) !important;
    display: inline-flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important;
    transition: background .15s, color .15s !important;
    padding: 0 !important;
}
.site-header__btn:hover { background: var(--h-border) !important; color: var(--h-primary-aa) !important; }
.site-header__btn svg { display: block !important; width: 18px !important; height: 18px !important; color: inherit !important; }
.site-header__btn .icon-moon { display: none !important; }
html[data-theme="dark"] .site-header__btn .icon-sun  { display: none !important; }
html[data-theme="dark"] .site-header__btn .icon-moon { display: block !important; }

/* Mobile hamburger — hidden on desktop, shown â‰¤768px via media query below */
.site-nav-toggle { display: none !important; }
.site-nav-toggle .icon-close { display: none !important; }
.site-header.nav-open .site-nav-toggle .icon-menu  { display: none !important; }
.site-header.nav-open .site-nav-toggle .icon-close { display: block !important; }

/* Search overlay */
.site-search-overlay {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: var(--h-bg);
    border-bottom: 1px solid var(--h-border);
    padding: 24px 32px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .2s ease, visibility 0s linear .3s;
}
.site-header.is-search-open .site-search-overlay {
    transform: translateY(0); opacity: 1; visibility: visible;
    transition: transform .3s ease, opacity .2s ease, visibility 0s;
}
.site-search-overlay form {
    max-width: 900px; margin: 0 auto;
    display: flex; align-items: center; gap: 12px;
}
.site-search-overlay input {
    flex: 1; font-size: 20px; padding: 12px 0;
    border: 0; border-bottom: 1px solid var(--h-border);
    background: transparent; color: var(--h-text); outline: none;
}
.site-search-overlay input:focus { border-bottom-color: var(--h-primary); }
.site-search-overlay button {
    width: 40px; height: 40px;
    background: transparent; border: 0; cursor: pointer; color: var(--h-text);
}
.site-search-overlay button:hover { color: var(--h-primary-aa); }
.site-search-overlay button[aria-label="Close"] { font-size: 28px; line-height: 1; }

/* ==================================================================
   HERO — 1 main + 4 rail
   ================================================================== */
.home-hero { padding: 32px 0 8px; }
.home-hero__grid {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: stretch;  /* rail matches main-slider height */
}
.home-hero__main {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: #111;
}
.hero-main-slide {
    position: absolute; inset: 0;
    opacity: 0; visibility: hidden;
    transition: opacity .6s ease;
}
.hero-main-slide.is-active { opacity: 1; visibility: visible; }
.hero-main-slide__link {
    display: block; height: 100%;
    text-decoration: none; color: #fff;
    position: relative;
}
.hero-main-slide picture,
.hero-main-slide img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-main-slide__overlay {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 48px 36px 32px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.75) 100%);
    color: #fff;
}
.hero-main-slide__title {
    font-family: var(--font-heading, 'Outfit'), system-ui, sans-serif;
    font-size: clamp(24px, 3vw, 42px);
    line-height: 1.1;
    margin: 0 0 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    max-width: 720px;
    text-shadow: 0 2px 16px rgba(0,0,0,.4);
}
.hero-main-slide__meta {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,.9);
}
.hero-main-slide__category {
    /* AA: beyaz yazi #EF4F4F uzerinde 3.56:1 kaliyordu */
    background: var(--h-accent-aa);
    padding: 4px 10px;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 4px;
}
.hero-main-slide__dot { opacity: .6; }

.home-hero__rail {
    display: flex; flex-direction: column;
    background: var(--h-bg-alt);
    border-radius: 14px;
    padding: 10px 16px;
    gap: 0;
    height: 100%;          /* fill grid cell */
    overflow: hidden;
}
.hero-rail-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--h-text);
    border-bottom: 1px solid var(--h-border);
    transition: background .15s;
    flex: 1 1 0;            /* 5 cards share main-slider height evenly */
    min-height: 0;
    align-items: center;
}
.hero-rail-card:last-child { border-bottom: 0; }
.hero-rail-card__thumb { width: 64px; height: 64px; }
.hero-rail-card:hover { background: rgba(14,165,233,0.04); }
.hero-rail-card__thumb {
    display: block; width: 72px; height: 72px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--h-border);
    position: relative;
}
.hero-rail-card__thumb picture,
.hero-rail-card__thumb img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero-rail-card__title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-rail-card__meta {
    font-size: 12px;
    color: var(--h-muted);
    display: inline-flex;
    gap: 8px;
    align-items: center;
}
.hero-rail-card__dot { opacity: 1; }

@media (max-width: 1000px) {
    .home-hero__grid { grid-template-columns: 1fr; }
    /* Rail no longer shares the main-slider height once stacked â†’ the
       flex:1/basis:0/min-height:0 cards collapse to ~0 and their titles
       overlap. Restore natural, content-sized cards. */
    .home-hero__rail { height: auto; }
    .hero-rail-card   { flex: 0 0 auto; min-height: 0; }
}

/* ==================================================================
   MOBILE HEADER — hamburger + slide-down nav (â‰¤768px)
   ================================================================== */
@media (max-width: 768px) {
    .site-header__inner { padding: 12px 20px; gap: 16px; }

    .site-nav-toggle { display: inline-flex !important; }

    /* Save room in the bar — socials live in the footer too */
    .site-header .site-socials { display: none; }

    /* Desktop nav becomes a slide-down panel under the header */
    .site-nav {
        position: absolute;
        top: 100%; left: 0; right: 0;
        display: block;
        background: var(--h-bg);
        border-bottom: 1px solid var(--h-border);
        box-shadow: 0 12px 28px rgba(0,0,0,.10);
        padding: 4px 20px 12px;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        transition: transform .22s ease, opacity .18s ease, visibility 0s linear .22s;
        z-index: 150;
    }
    .site-header.nav-open .site-nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform .22s ease, opacity .18s ease, visibility 0s;
    }
    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        width: 100%;
    }
    .site-nav li { width: 100%; }
    .site-nav a {
        display: block;
        width: 100%;
        padding: 14px 2px;
        font-size: 16px;
        border-bottom: 1px solid var(--h-border);
    }
    .site-nav li:last-child a { border-bottom: 0; }
    .site-nav a.is-active::after { display: none; }
}

html[data-theme="dark"] .site-nav { background: var(--h-bg) !important; }

/* ==================================================================
   TRENDING TOPICS
   ================================================================== */
.home-trending { padding: 56px 0; }
.home-trending__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.trending-card {
    position: relative;
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    background: #111;
}
.trending-card picture, .trending-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}
.trending-card:hover img { transform: scale(1.05); }
.trending-card__body {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 24px 20px;
    text-align: center;
    color: #fff;
}
.trending-card__count {
    font-size: 12px;
    color: rgba(255,255,255,.85);
    letter-spacing: .04em;
}
.trending-card__name {
    font-family: var(--font-heading, 'Outfit'), system-ui, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin: 6px 0 0;
    letter-spacing: -0.01em;
}

@media (max-width: 900px) { .home-trending__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .home-trending__grid { grid-template-columns: 1fr; } }

/* ==================================================================
   MOST POPULAR
   ================================================================== */
.home-mostpop { padding: 72px 0; background: var(--h-bg-alt); }
.home-mostpop__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.home-mostpop__head {
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    margin-bottom: 24px;
}
.home-mostpop__tabs { display: inline-flex; gap: 6px; }
.mostpop-tab {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--h-border);
    border-radius: 9999px;
    color: var(--h-text);
    cursor: pointer;
    transition: all .15s;
}
.mostpop-tab:hover { border-color: var(--h-primary); color: var(--h-primary-aa); }
.mostpop-tab.is-active {
    background: var(--h-text);
    color: var(--h-bg);
    border-color: var(--h-text);
}
html[data-theme="dark"] .mostpop-tab.is-active { background: var(--h-primary); color: #06283a; border-color: var(--h-primary); } /* beyaz, sky (#0ea5e9) ustunde 2.77 idi */

.mostpop-panel { display: none; }
.mostpop-panel.is-active { display: block; }

.mostpop-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 220px;
    gap: 20px;
    padding: 20px 0;
    border-top: 1px solid var(--h-border);
    align-items: center;
}
.mostpop-item:first-child { border-top: 0; }
.mostpop-item__num {
    font-family: var(--font-heading, 'Outfit'), system-ui, sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--h-rank);
    line-height: 1;
}
.mostpop-item__category {
    display: inline-block;
    font-size: 12px;
    color: var(--h-primary-aa);
    text-decoration: none;
    letter-spacing: .02em;
    margin-bottom: 6px;
}
.mostpop-item__title {
    font-family: var(--font-heading, 'Outfit'), system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 12px;
}
.mostpop-item__title a { color: var(--h-text); text-decoration: none; }
.mostpop-item__title a:hover { color: var(--h-primary-aa); }
.mostpop-item__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.mostpop-item__author {
    display: inline-flex; gap: 8px; align-items: center;
    text-decoration: none; color: var(--h-text);
}
.mostpop-item__author img { width: 28px; height: 28px; border-radius: 9999px; object-fit: cover; }
.mostpop-item__author strong { display: block; font-size: 13px; }
.mostpop-item__author em { font-size: 11px; color: var(--h-muted); font-style: normal; }
.mostpop-item__share { display: inline-flex; gap: 10px; }
.mostpop-item__share a {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--h-muted);
    transition: color .15s;
}
.mostpop-item__share a:hover { color: var(--h-primary-aa); }

.mostpop-item__thumb {
    display: block; width: 220px; aspect-ratio: 4/3;
    border-radius: 10px; overflow: hidden;
    background: var(--h-border);
    justify-self: end;
    position: relative;
}
.mostpop-item__thumb picture, .mostpop-item__thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s;
}
.mostpop-item:hover .mostpop-item__thumb img { transform: scale(1.04); }

.home-mostpop__right { display: flex; flex-direction: column; gap: 24px; }
.mostpop-feature {
    background: var(--h-bg);
    border: 1px solid var(--h-border);
    border-radius: 14px;
    overflow: hidden;
}
.mostpop-feature__img {
    display: block;
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
    background: var(--h-border);
}
.mostpop-feature__img picture, .mostpop-feature__img img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s;
}
.mostpop-feature:hover .mostpop-feature__img img { transform: scale(1.04); }
.mostpop-feature__body { padding: 16px 18px 20px; }
.mostpop-feature__category {
    font-size: 12px;
    color: var(--h-accent-aa);
    text-decoration: none;
    letter-spacing: .02em;
}
.mostpop-feature__title {
    font-family: var(--font-heading, 'Outfit'), system-ui, sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 8px 0 14px;
}
.mostpop-feature__title a { color: var(--h-text); text-decoration: none; }
.mostpop-feature__title a:hover { color: var(--h-primary-aa); }
.mostpop-feature__author {
    display: inline-flex; gap: 8px; align-items: center;
    text-decoration: none; color: var(--h-text);
}
.mostpop-feature__author img { width: 28px; height: 28px; border-radius: 9999px; object-fit: cover; }
.mostpop-feature__author strong { display: block; font-size: 13px; }
.mostpop-feature__author em { font-size: 11px; color: var(--h-muted); font-style: normal; }

@media (max-width: 900px) {
    .home-mostpop__grid { grid-template-columns: 1fr; }
    .mostpop-item { grid-template-columns: 36px minmax(0, 1fr); }
    .mostpop-item__thumb { grid-column: span 2; width: 100%; }
}

/* ==================================================================
   RECOMMENDED
   ================================================================== */
.home-reco { padding: 72px 0; }
.home-reco__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}
.home-reco__left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.reco-item {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}
.reco-item__thumb {
    display: block; width: 140px; aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 10px;
    background: var(--h-border);
    position: relative;
}
.reco-item__thumb picture, .reco-item__thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.reco-item__author {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--h-text); text-decoration: none;
    margin-bottom: 6px;
}
.reco-item__author img { width: 24px; height: 24px; border-radius: 9999px; object-fit: cover; }
.reco-item__title {
    font-family: var(--font-heading, 'Outfit'), system-ui, sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0 0 8px;
}
.reco-item__title a { color: var(--h-text); text-decoration: none; }
.reco-item__title a:hover { color: var(--h-primary-aa); }
.reco-item__meta {
    font-size: 12px;
    color: var(--h-muted);
    display: inline-flex; gap: 8px; align-items: center;
    flex-wrap: wrap;
}
.reco-item__category { color: var(--h-primary-aa); text-decoration: none; font-weight: 500; }
.reco-item__dot { opacity: 1; }

.home-reco__right {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--h-bg-alt);
    border-radius: 16px;
    padding: 20px;
    align-items: stretch;
}
.reco-big {
    display: flex; flex-direction: column;
}
.reco-big__img {
    display: block;
    aspect-ratio: 2/1;
    overflow: hidden;
    border-radius: 12px;
    background: var(--h-border);
    position: relative;
    margin-bottom: 12px;
}
.reco-big__img picture, .reco-big__img img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s;
}
.reco-big:hover .reco-big__img img { transform: scale(1.04); }
.reco-big__author {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; text-decoration: none; color: var(--h-text);
    margin-bottom: 8px;
}
.reco-big__author img { width: 28px; height: 28px; border-radius: 9999px; object-fit: cover; }
.reco-big__title {
    font-family: var(--font-heading, 'Outfit'), system-ui, sans-serif;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0 0 8px;
}
.reco-big__title a { color: var(--h-text); text-decoration: none; }
.reco-big__title a:hover { color: var(--h-primary-aa); }
.reco-big__excerpt {
    font-size: 14px; line-height: 1.5;
    color: var(--h-muted);
    margin: 0 0 12px;
}
.reco-big__meta {
    font-size: 12px; color: var(--h-muted);
    display: inline-flex; gap: 8px; align-items: center;
}
.reco-big__meta a { color: var(--h-accent-aa); text-decoration: none; }

/* Right-side cards — 2 cards side-by-side below the big card, horizontal
   layout (thumb left, title right) so neither feels cramped. */
.home-reco__right-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.home-reco__right-side .reco-item {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    width: 100%;
}
.home-reco__right-side .reco-item__thumb {
    width: 100px;
    aspect-ratio: 1/1;
    border-radius: 8px;
}
.home-reco__right-side .reco-item__author { display: none; }
.home-reco__right-side .reco-item__title { font-size: 14px; line-height: 1.3; margin-bottom: 6px; }
.home-reco__right-side .reco-item__meta { font-size: 11px; }

@media (max-width: 640px) {
    .home-reco__right-side { grid-template-columns: 1fr; }
}

@media (max-width: 1100px) { .home-reco__grid { grid-template-columns: 1fr; } .home-reco__right { grid-template-columns: 1fr; } }

/* ==================================================================
   LATEST — paginated list
   ================================================================== */
.home-latest { padding: 72px 0 96px; }
.home-latest__list { display: flex; flex-direction: column; }
.latest-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 40px;
    padding: 32px 0;
    border-top: 1px solid var(--h-border);
    align-items: center;
}
.latest-item:first-child { border-top: 0; }
.latest-item__category {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--h-primary-aa);
    text-decoration: none;
    margin-bottom: 10px;
}
.latest-item__title {
    font-family: var(--font-heading, 'Outfit'), system-ui, sans-serif;
    font-size: clamp(22px, 2vw, 28px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.2;
    margin: 0 0 18px;
}
.latest-item__title a { color: var(--h-text); text-decoration: none; }
.latest-item__title a:hover { color: var(--h-primary-aa); text-decoration: underline; text-underline-offset: 4px; }
.latest-item__foot {
    display: flex; align-items: center; justify-content: space-between;
    gap: 14px; flex-wrap: wrap;
}
.latest-item__author { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--h-text); }
.latest-item__author img { width: 32px; height: 32px; border-radius: 9999px; object-fit: cover; }
.latest-item__author strong { display: block; font-size: 14px; }
.latest-item__author em { font-size: 12px; color: var(--h-muted); font-style: normal; }
.latest-item__share { display: inline-flex; gap: 10px; }
.latest-item__share a {
    width: 28px; height: 28px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--h-muted); transition: color .15s;
}
.latest-item__share a:hover { color: var(--h-primary-aa); }
.latest-item__thumb {
    display: block; width: 360px; aspect-ratio: 4/3;
    overflow: hidden; border-radius: 12px; background: var(--h-border);
    justify-self: end;
    position: relative;
}
.latest-item__thumb picture, .latest-item__thumb img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
    transition: transform .8s;
}
.latest-item:hover .latest-item__thumb img { transform: scale(1.04); }

@media (max-width: 900px) {
    .latest-item { grid-template-columns: 1fr; gap: 20px; }
    .latest-item__thumb { width: 100%; }
}

/* ==================================================================
   FOOTER v2 (6-col)
   ================================================================== */
.site-footer-v2 {
    background: var(--h-bg-alt);
    border-top: 1px solid var(--h-border);
    padding: 56px 0 24px;
    color: var(--h-text);
}
.site-footer-v2__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
    margin-bottom: 40px;
}
.footer-col h4 {
    font-family: var(--font-heading, 'Outfit'), system-ui, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--h-text);
    margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
    font-size: 13px;
    color: var(--h-muted);
    text-decoration: none;
    transition: color .15s;
}
.footer-col a:hover { color: var(--h-primary-aa); }

.footer-brand-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    padding: 24px 0;
    border-top: 1px solid var(--h-border);
    border-bottom: 1px solid var(--h-border);
}
.footer-brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--h-text); }
.footer-brand-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-width: 480px; }
.footer-brand__blurb { margin: 0; font-size: 13px; line-height: 1.55; color: var(--h-muted); }
.footer-brand__img { height: 56px !important; width: auto !important; display: block !important; max-width: none !important; }
.footer-brand__text { font-family: var(--font-heading, 'Outfit'), sans-serif; font-weight: 800; font-size: 22px; letter-spacing: -0.02em; color: var(--h-text); }
.footer-follow {
    display: inline-flex; align-items: center; gap: 14px;
    font-size: 13px; color: var(--h-muted);
}
.footer-follow a {
    width: 32px; height: 32px;
    border-radius: 9999px;
    background: var(--h-bg);
    color: var(--h-muted);
    display: inline-flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s;
}
.footer-follow a:hover { background: var(--h-primary); color: #fff; }
.footer-follow svg { width: 16px; height: 16px; display: block; }

.footer-fineprint {
    padding: 20px 0 0;
    font-size: 12px;
    color: var(--h-muted-aa);
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.footer-fineprint nav { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.footer-fineprint a { color: var(--h-muted-aa); text-decoration: none; }
.footer-fineprint a:hover { color: var(--h-primary-aa); }
.footer-fineprint p { margin: 0; }

@media (max-width: 1100px) { .footer-cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px)  { .footer-cols { grid-template-columns: repeat(2, 1fr); } }

/* ==================================================================
   Kill legacy demo styles that could bleed through
   ================================================================== */
.site-header .header-inner,
.site-footer .footer__inner,
body > .site-footer { display: none !important; }
body:has(.site-footer-v2) > .site-footer { display: none !important; }

/* ==================================================================
   DARK MODE — force overrides beyond the variable cascade
   Customizer CSS writes :root --c-* vars AFTER this file loads and can
   pin backgrounds/text to light values. These specific rules win with
   html[data-theme="dark"] specificity (0,1,1) over :root (0,1,0).
   ================================================================== */
html[data-theme="dark"] body,
html[data-theme="dark"] .home-hero,
html[data-theme="dark"] .home-trending,
html[data-theme="dark"] .home-reco,
html[data-theme="dark"] .home-latest { background: var(--h-bg) !important; color: var(--h-text) !important; }
html[data-theme="dark"] .home-mostpop { background: var(--h-bg-alt) !important; }
html[data-theme="dark"] .home-hero__rail,
html[data-theme="dark"] .home-reco__right { background: var(--h-bg-alt) !important; }
html[data-theme="dark"] .home-section-head__title,
html[data-theme="dark"] .hero-rail-card__title,
html[data-theme="dark"] .trending-card__name,
html[data-theme="dark"] .mostpop-item__title a,
html[data-theme="dark"] .mostpop-feature__title a,
html[data-theme="dark"] .reco-item__title a,
html[data-theme="dark"] .reco-big__title a,
html[data-theme="dark"] .latest-item__title a,
html[data-theme="dark"] .latest-item__author strong,
html[data-theme="dark"] .mostpop-item__author strong,
html[data-theme="dark"] .mostpop-feature__author strong,
html[data-theme="dark"] .reco-big__author { color: var(--h-text) !important; }
html[data-theme="dark"] .latest-item,
html[data-theme="dark"] .mostpop-item { border-color: var(--h-border) !important; }
html[data-theme="dark"] .mostpop-feature { background: var(--h-bg) !important; border-color: var(--h-border) !important; }
html[data-theme="dark"] .site-footer-v2 { background: var(--h-bg-alt) !important; border-color: var(--h-border) !important; }
html[data-theme="dark"] .footer-col a,
html[data-theme="dark"] .footer-fineprint,
html[data-theme="dark"] .footer-fineprint a { color: var(--h-muted) !important; }
html[data-theme="dark"] .footer-col h4,
html[data-theme="dark"] .footer-brand__text { color: var(--h-text) !important; }
html[data-theme="dark"] .footer-follow a { background: var(--h-bg) !important; color: var(--h-muted) !important; }
html[data-theme="dark"] .mostpop-tab { border-color: var(--h-border) !important; color: var(--h-text) !important; }
html[data-theme="dark"] .mostpop-tab.is-active { background: var(--h-primary) !important; color: #06283a !important; border-color: var(--h-primary) !important; } /* beyaz, sky ustunde 2.77 idi (2026-08-21) */
html[data-theme="dark"] .hero-main-slide__category,
html[data-theme="dark"] .mostpop-feature__category { /* stays red accent */ }
html[data-theme="dark"] .site-search-overlay { background: var(--h-bg) !important; border-color: var(--h-border) !important; }
html[data-theme="dark"] .site-search-overlay input { background: transparent !important; color: var(--h-text) !important; border-color: var(--h-border) !important; }
html[data-theme="dark"] .site-header__btn { background: var(--h-bg-alt) !important; color: var(--h-text) !important; }

/* Most Popular item — reserve a minimum height so all rows match */
.mostpop-item { min-height: 180px; }
.mostpop-item__thumb { aspect-ratio: 4/3; }
.mostpop-item__body { align-self: center; }

/* Right column featured cards — simple block card, image + body stacked.
   No flex:1 (was zeroing out the images before). */
.home-mostpop__right .mostpop-feature { display: block; }
.home-mostpop__right .mostpop-feature__img { aspect-ratio: 16/10; min-height: 0; }

/* ==================================================================
   Menu tasarim varyantlari (Ozellestir → Menu)
   Varsayilan (classic + sticky) mevcut gorunumle birebir.
   ================================================================== */
.site-header--static { position: static; }

/* Ortalanmis: logo ustte ortada, menu altinda ortada, araclar sag ustte */
.site-header--centered .site-header__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 8px;
    padding-top: 18px;
    padding-bottom: 12px;
    position: relative;
}
.site-header--centered .site-header__tools {
    position: absolute;
    top: 18px;
    right: 32px;
}
@media (max-width: 900px) {
    .site-header--centered .site-header__inner {
        grid-template-columns: auto 1fr auto;
        justify-items: start;
        row-gap: 0;
        position: static;
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .site-header--centered .site-header__tools { position: static; }
}

/* Ince: alcak serit, kucuk logo ve baglantilar (slider degerlerini oransal izler) */
.site-header--slim .site-header__inner {
    min-height: 52px;
    padding-top: calc(var(--h-menu-pady, 14px) * 0.45);
    padding-bottom: calc(var(--h-menu-pady, 14px) * 0.45);
    gap: 24px;
}
.site-header--slim .site-logo { height: calc(var(--h-menu-logo, 44px) * 0.72); }
.site-header--slim .site-title { font-size: 18px; }
.site-header--slim .site-nav a { font-size: 13.5px; }
.site-header--slim .site-nav ul { gap: 24px; }
.site-header--slim .site-header__btn { width: 32px !important; height: 32px !important; }
.site-header--slim .site-header__btn svg { width: 15px !important; height: 15px !important; }

/* Yuzen kutu: header seffaf, ic bar sayfadan ayrik yuvarlatilmis kutu */
.site-header--boxed {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 0;
}
.site-header--boxed[data-state="scrolled"] { border-bottom-color: transparent; }
html[data-theme="dark"] .site-header--boxed { background: transparent; }
.site-header--boxed .site-header__inner {
    background: var(--h-bg);
    border: 1px solid var(--h-border);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.07);
    margin-top: 12px;
    margin-bottom: 6px;
    width: min(1400px, calc(100% - 48px));
    padding-left: 24px;
    padding-right: 24px;
}
html[data-theme="dark"] .site-header--boxed .site-header__inner { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); }

/* Cift katli: ustte logo + araclar, altta tam-genislik ince menu seridi */
@media (min-width: 901px) {
    .site-header--double .site-header__inner {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "logo spacer tools" "nav nav nav";
        row-gap: 0;
    }
    .site-header--double .site-logo-link { grid-area: logo; }
    .site-header--double .site-header__tools { grid-area: tools; }
    .site-header--double .site-nav {
        grid-area: nav;
        justify-content: center;
        border-top: 1px solid var(--h-border);
        margin-top: calc(var(--h-menu-pady, 14px) * 0.85);
        padding-top: calc(var(--h-menu-pady, 14px) * 0.85);
    }
}

/* color-mix destekleyen tarayicida AA turevlerini OZELLESTIRICI degerinden uret:
   kullanicinin sectigi marka rengi korunur, yalnizca kontrast icin koyulastirilir. */
@supports (color: color-mix(in srgb, red 50%, blue)) {
    :root:root {
        --h-primary-aa: color-mix(in srgb, var(--h-primary) 73%, #000);
        --h-accent-aa:  color-mix(in srgb, var(--h-accent) 83%, #000);
        --h-muted-aa:   color-mix(in srgb, var(--h-muted) 66%, #000);
    }
    html[data-theme="dark"]:root {
        --h-primary-aa: var(--h-primary);
        --h-accent-aa:  var(--h-accent);
        --h-muted-aa:   var(--h-muted);
    }
}
