/* ============================================================
   FUNKE — Tema Katmanı
   main.css'in üzerine yüklenir (bkz. theme.php → theme_headAssets).
   Strateji: main.css renk/font/gölge/radius değerlerini CSS
   değişkenleri üzerinden yönetiyor — burada bu değişkenleri yeniden
   tanımlayıp, main.css'te birebir renk (rgba(232,66,10,…) / #1e293b /
   #111827) olarak hardcode edilmiş vurgu noktalarını aynı seçicilerle
   üzerine yazıyoruz. Hiçbir şablon dosyasına dokunulmadı.
   ============================================================ */

:root {
    /* ── Sıcak bakır/amber vurgu (eski: turuncu #E8420A) ── */
    --clr-primary:    #D97B29;
    --clr-primary-dk: #B8631E;
    --clr-primary-lt: #F0B37E;

    /* ── Sıcak döküm-demir koyu / krem zemin (eski: soğuk #111827) ── */
    --clr-dark:       #2B2420;
    --clr-dark-2:     #453A33;
    --clr-dark-3:     #6B5D53;
    --clr-gray:       #7D736B;
    --clr-light:      #FBF6F1;
    --clr-white:      #FFFFFF;
    --clr-border:     #EDE1D6;

    /* ── Karakterli editoryal tipografi ── */
    --ff-display: 'Fraunces', Georgia, serif;
    --ff-body:    'Work Sans', -apple-system, 'Segoe UI', sans-serif;

    /* ── Sıcak tonlu yumuşak gölgeler ── */
    --shadow-sm:  0 1px 3px rgba(43,36,32,.08), 0 1px 2px rgba(43,36,32,.05);
    --shadow-md:  0 4px 16px rgba(43,36,32,.10);
    --shadow-lg:  0 10px 40px rgba(43,36,32,.18);

    /* ── Davetkâr, orta-yumuşak köşeler ── */
    --radius-sm:  8px;
    --radius-md:  14px;
    --radius-lg:  20px;
}

.hero h1,
.hero-title,
.section__title,
.card__title,
.cat-card__name,
.logo {
    letter-spacing: normal;
}

/* ============================================================
   main.css'te değişken DEĞİL, birebir rgba(232,66,10,…) olarak
   hardcode edilmiş vurgu noktaları — aynı seçicilerle üzerine
   yazılıyor (RGB 217,123,41 = #D97B29).
   ============================================================ */

.nav__link:hover,
.nav__link.active { background: rgba(217,123,41,.07); }

.dropdown__item:hover { background: rgba(217,123,41,.07); }

.nav-toggle { box-shadow: 0 2px 8px rgba(217,123,41,.35); }
.nav-toggle:hover { box-shadow: 0 4px 14px rgba(217,123,41,.5); }

.btn--primary:hover { box-shadow: 0 4px 15px rgba(217,123,41,.35); }

.hero__badge {
    background: rgba(217,123,41,.15);
    border: 1px solid rgba(217,123,41,.3);
}

.cat-card:hover { box-shadow: 0 0 0 3px rgba(217,123,41,.1); }
.cat-card__icon { background: rgba(217,123,41,.1); }

.form-control:focus { box-shadow: 0 0 0 3px rgba(217,123,41,.1); }

.mega-menu__cat-item:hover,
.mega-menu__link:hover,
.mega-menu__post:hover { background: rgba(217,123,41,.07); }
.mega-menu__cat-item em,
.mega-menu__count { background: rgba(217,123,41,.1); }

@media (max-width: 1024px) {
    .nav__link:hover,
    .nav__link.active { background: linear-gradient(90deg, rgba(217,123,41,.25) 0%, rgba(217,123,41,.05) 100%) !important; }
    .dropdown { border-left: 3px solid rgba(217,123,41,.3) !important; }
    .dropdown__item:hover { background: rgba(217,123,41,.12) !important; }
    .mega-menu__cat-item:hover { background: rgba(217,123,41,.12) !important; }
    .mega-menu__link:hover { background: rgba(217,123,41,.12) !important; }
    .mega-menu__post:hover { background: rgba(217,123,41,.12) !important; }
    .mega-menu__all-link { border-color: rgba(217,123,41,.5) !important; }
    .nav { background: #2B2420 !important; }
}

.page-hero,
.cat-hero {
    background: linear-gradient(135deg, var(--clr-dark) 0%, #453A33 100%);
}
.sidebar-widget--cta {
    background: linear-gradient(135deg, var(--clr-dark), #453A33);
}

.card,
.cat-card {
    border-color: var(--clr-border);
}
.cat-card:hover { border-color: var(--clr-primary); }

.header__mobile-tagline { color: var(--clr-primary-lt); }

.footer__links a::before,
.footer__links a:hover,
.footer__contact-list i,
.footer__contact-list a:hover { color: var(--clr-primary-lt); }

/* ============================================================
   [slider] shortcode — öne çıkan yazılardan otomatik dönen,
   tam genişlikte görsel ağırlıklı slider. shortcode-engine.php
   tarafından üretilen .post-slider markup'ını stilliyor.
   ============================================================ */

.post-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
    min-height: 360px;
    max-height: 640px;
    overflow: hidden;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    background: var(--clr-dark);
}
.post-slider__track { position: relative; width: 100%; height: 100%; }

.post-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease;
}
.post-slider__slide.is-active { opacity: 1; visibility: visible; }

.post-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-slider__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, rgba(43,36,32,0) 35%, rgba(43,36,32,.78) 100%);
    padding: 32px clamp(20px, 6vw, 72px) 48px;
}

.post-slider__content { max-width: 640px; color: #fff; }

.post-slider__cat {
    display: inline-block;
    background: var(--clr-primary);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 999px;
    text-decoration: none;
    margin-bottom: 14px;
}

.post-slider__title {
    font-family: var(--ff-display);
    font-size: clamp(1.5rem, 3.4vw, 2.6rem);
    font-weight: 600;
    line-height: 1.18;
    margin: 0 0 12px;
}
.post-slider__title a { color: #fff; text-decoration: none; }
.post-slider__title a:hover { text-decoration: underline; }

.post-slider__excerpt {
    font-size: .98rem;
    line-height: 1.55;
    color: rgba(255,255,255,.88);
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-slider__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--clr-primary);
    color: #fff;
    font-weight: 600;
    font-size: .92rem;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background .2s, transform .2s;
}
.post-slider__btn:hover { background: var(--clr-primary-dk); transform: translateY(-1px); }

.post-slider__nav {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    z-index: 2;
}
.post-slider__nav:hover { background: rgba(255,255,255,.32); }
.post-slider__nav--prev { left: 16px; }
.post-slider__nav--next { right: 16px; }

.post-slider__dots {
    position: absolute;
    bottom: 18px;
    right: clamp(20px, 6vw, 72px);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.post-slider__dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    padding: 0;
    transition: background .2s, transform .2s;
}
.post-slider__dot.is-active { background: var(--clr-primary); transform: scale(1.25); }

@media (max-width: 640px) {
    .post-slider { aspect-ratio: 4 / 5; min-height: 420px; }
    .post-slider__overlay { padding: 24px 20px 36px; align-items: flex-end; }
    .post-slider__excerpt { -webkit-line-clamp: 3; }
    .post-slider__nav { width: 36px; height: 36px; font-size: .85rem; }
}

/* ============================================================
   Amazon affiliate CTA görseli — main.css'te sadece max-width:100%
   vardı, bu yüzden geniş içerik sütununda Amazon'un (bazen 1000px+)
   orijinal ürün görseli CTA kutusuna göre aşırı büyük görünüyordu.
   Kaynak çözünürlüğü ne olursa olsun (admin/post-affiliate.php artık
   700px'e küçültüyor, ama elle yapıştırılan URL'ler için de güvence)
   makul, küçük bir ürün görseli genişliğine sabitliyoruz.
   ============================================================ */
.affiliate-cta-box__img {
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}
.affiliate-cta-box__img img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}
