/*
Theme Name: Retell Media
Theme URI: https://retellmedia.org
Author: Retell Media
Description: Retell Media — toplumsal hikayeler, arastirma ve yeni medya anlatilari. Statik tasarimdan portlanmis editoryel dergi temasi. TR/EN (Polylang) destekli.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: retell
Tags: blog, news, magazine, translation-ready, custom-menu, featured-images
*/

/* ============================================================
   RETELL MEDIA — styles.css
   ============================================================ */

/* ── PROJECT FONT FACES ─────────────────────────────────────────────── */
@font-face {
  font-family: 'Hando Trial';
  src: url('assets/fonts/HandoTrial-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hando Trial';
  src: url('assets/fonts/HandoTrial-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hando Trial';
  src: url('assets/fonts/HandoTrial-SemiBold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hando Trial';
  src: url('assets/fonts/HandoTrial-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Hando Trial';
  src: url('assets/fonts/HandoTrial-ExtraBold.otf') format('opentype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Merel';
  src: url('assets/fonts/Merel-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Merel';
  src: url('assets/fonts/Merel-Italic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'LTC Goudy Oldstyle Pro';
  src: url('assets/fonts/LTCGoudyOldstylepro-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'LTC Goudy Oldstyle Pro';
  src: url('assets/fonts/LTCGoudyOldstylepro-Italic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}

/* ── ALLIANCE NO.1 FONT FACES ───────────────────────────────────────── */
@font-face {
  font-family: 'Alliance No.1';
  src: url('assets/fonts/alliance-light.otf') format('opentype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Alliance No.1';
  src: url('assets/fonts/alliance-regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Alliance No.1';
  src: url('assets/fonts/alliance-regular-italic.otf') format('opentype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Alliance No.1';
  src: url('assets/fonts/alliance-medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Alliance No.1';
  src: url('assets/fonts/alliance-semibold.otf') format('opentype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Alliance No.1';
  src: url('assets/fonts/alliance-bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Alliance No.1';
  src: url('assets/fonts/alliance-bold.otf') format('opentype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Alliance No.1';
  src: url('assets/fonts/alliance-bold-italic.otf') format('opentype');
  font-weight: 700; font-style: italic; font-display: swap;
}

/* ── VARIABLES ──────────────────────────────────────────────────────── */
:root {
  /* Dark palette (default) */
  --bg:         #0a0a0a;
  --bg-1:       #111111;
  --bg-2:       #181818;
  --bg-card:    #1c1c1c;
  --bg-card-h:  #242424;
  --text:       #f0ede8;
  --text-2:     #a09990;
  --text-3:     #606060;
  --border:     rgba(240,237,232,0.08);
  --border-h:   rgba(240,237,232,0.18);

  /* Accent colours */
  --red:        #cc2222;
  --red-h:      #e53030;
  --blue:       #2563eb;
  --teal:       #0d9488;
  --amber:      #d97706;
  --purple:     #7c3aed;

  /* Layout */
  --header-h: 72px;
  --max-w:    1240px;
  --px:       clamp(16px, 4vw, 32px);
  --r:        0px;
  --r-lg:     0px;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.55s;
}

[data-theme="light"] {
  --bg:       #fafaf9;
  --bg-1:     #f4f3f1;
  --bg-2:     #eeede9;
  --bg-card:  #ffffff;
  --bg-card-h:#f6f5f2;
  --text:     #111111;
  --text-2:   #555450;
  --text-3:   #999693;
  --border:   rgba(0,0,0,0.08);
  --border-h: rgba(0,0,0,0.16);
}

/* ── RESET ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Hando Trial', 'Alliance No.1', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
img   { display: block; max-width: 100%; height: auto; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }

/* ── UTILITY ────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* Labels / badges */
.label {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'Alliance No.1', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.label-red    { background: var(--red);    color: #fff; }
.label-blue   { background: var(--blue);   color: #fff; }
.label-teal   { background: var(--teal);   color: #fff; }
.label-amber  { background: var(--amber);  color: #fff; }
.label-purple { background: var(--purple); color: #fff; }

.card-tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 3px 8px;
  border-radius: 0;
  background: #fff;
  color: #000;
  font-family: 'Alliance No.1', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

/* ── SCROLL ANIMATIONS ──────────────────────────────────────────────── */
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
[data-animate].in-view { opacity: 1; transform: translateY(0); }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }

/* ── HEADER ─────────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
[data-theme="light"] .site-header  { background: rgba(250,250,249,0.88); }
.site-header.scrolled               { background: rgba(10,10,10,0.96); }
[data-theme="light"] .site-header.scrolled { background: rgba(250,250,249,0.98); }

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 0; }
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: invert(1);
}
[data-theme="light"] .logo-img { filter: none; }
.logo-wordmark { display: none; }

/* Nav */
.main-nav { flex: 1; }
.nav-list  { display: flex; align-items: center; gap: 0; }
.nav-link  {
  padding: 8px 20px;
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-2);
  transition: color .2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transition: opacity .2s, transform .25s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-link.active::after { opacity: 1; transform: scaleX(1); }

/* Header controls */
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.78rem; font-weight: 700; letter-spacing: .05em;
  transition: color .2s, border-color .2s, background .2s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-h); background: var(--border); }

/* Sun/moon icons */
[data-theme="dark"]  .icon-moon { display: none; }
[data-theme="dark"]  .icon-sun  { display: block; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* Hamburger */
.hamburger { flex-direction: column; gap: 5px; display: none; }
.hamburger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--text-2);
  transition: transform .25s, opacity .25s;
  transform-origin: center;
}
.hamburger.open span:first-child  { transform: translateY(3.5px)  rotate(45deg); }
.hamburger.open span:last-child   { transform: translateY(-3.5px) rotate(-45deg); }

/* Mobile dropdown */
.mobile-nav {
  position: absolute; top: var(--header-h); left: 0; right: 0;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border);
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
}
.mobile-nav.open { max-height: 240px; }
.mobile-nav ul { padding: 12px 0 20px; }
.mobile-nav li + li { border-top: 1px solid var(--border); }
.mobile-link {
  display: block; padding: 14px var(--px);
  font-family: 'Alliance No.1', sans-serif; font-size: 1.1rem; font-weight: 600;
  transition: color .2s;
}
.mobile-link:hover { color: var(--text); }

/* ── HERO SLIDER ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh; min-height: 580px;
  overflow: hidden;
  background: #f5f4f0;
}

.hero-track {
  display: flex;
  height: 100%;
  transition: transform .9s var(--ease);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%; width: 100%; height: 100%;
  overflow: hidden;
}

.hero-bg   { position: absolute; inset: 0; }
.hero-photo {
  position: absolute; inset: 0;
  background-size: cover !important;
  background-position: center !important;
  transform: scale(1.06);
  transition: transform 8s ease;
}
.hero-slide.active .hero-photo { transform: scale(1); }

.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    #ffffff 18%,
    rgba(255,255,255,0.88) 30%,
    rgba(255,255,255,0.3) 44%,
    rgba(255,255,255,0.0) 58%
  );
  z-index: 1;
}

.hero-content {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: flex-start;
  height: 100%;
  padding-bottom: 80px;
}
.hero-content > * + * { margin-top: 12px; }

/* Animated text — default hidden, shown when .active */
.hero-title {
  font-family: 'Hando Trial', 'Alliance No.1', sans-serif;
  font-size: clamp(1.19rem, 2.8vw, 2.55rem);
  font-weight: 800; line-height: 1.06;
  color: #111; letter-spacing: -0.025em;
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease) .2s, transform .7s var(--ease) .2s;
}
.hero-sub {
  font-family: 'LTC Goudy Oldstyle Pro', 'Merel', Georgia, serif;
  font-size: clamp(.83rem, 1.15vw, .94rem);
  color: #444; max-width: 520px; line-height: 1.7;
  opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease) .35s, transform .7s var(--ease) .35s;
}
.hero-meta {
  display: flex; gap: 16px;
  font-family: 'Hando Trial', 'Alliance No.1', sans-serif;
  font-size: .82rem; color: #777;
  opacity: 0;
  transition: opacity .6s var(--ease) .5s;
}
.hero-meta .hero-date::before { content: '—'; margin-right: 6px; }
.hero-meta .hero-author { font-weight: 500; color: #555; }
.hero-slide.active .hero-title,
.hero-slide.active .hero-sub,
.hero-slide.active .hero-meta { opacity: 1; transform: translateY(0); }

/* Hero cat-band override — [data-theme="light"] ile aynı specificity çakışmasını
   önlemek için her iki selector birleştirildi (0,3,0 > 0,2,0). */
.hero .cat-sub,
[data-theme="light"] .hero .cat-sub {
  color: #333;
  border-color: rgba(0,0,0,.25);
  background: transparent;
}

/* Primary button (also used outside hero) */
.btn-primary {
  display: inline-flex; align-items: center;
  padding: 13px 26px; border-radius: 0;
  background: #fff; color: #000;
  font-family: 'Alliance No.1', sans-serif; font-size: .88rem; font-weight: 700; letter-spacing: .02em;
  width: fit-content;
  transition: background .2s, opacity .2s;
}
.btn-primary:hover { background: rgba(255,255,255,.88); }
[data-theme="light"] .btn-primary { background: #000; color: #fff; }
[data-theme="light"] .btn-primary:hover { background: #222; }

/* Inside hero — start hidden, always dark button */
.hero-content .btn-primary {
  background: #111; color: #fff;
  font-family: 'Hando Trial', 'Alliance No.1', sans-serif;
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 22px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .6s var(--ease) .55s, transform .6s var(--ease) .55s, background .2s;
}
.hero-content .btn-primary:hover { background: #333; }
.hero-slide.active .hero-content .btn-primary { opacity: 1; transform: translateY(0); }

/* Outline button */
.btn-outline {
  display: inline-flex; align-items: center;
  padding: 12px 24px; border-radius: 0;
  border: 1.5px solid var(--border-h); color: var(--text);
  font-family: 'Alliance No.1', sans-serif; font-size: .88rem; font-weight: 600;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: var(--text); background: var(--border); }

/* Arrows */
.hero-arrow {
  position: absolute; top: 40%; transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.1);
  color: #222;
  backdrop-filter: blur(8px);
  transition: background .2s, transform .3s;
}
.hero-arrow:hover { background: rgba(255,255,255,.9); transform: translateY(-50%) scale(1.07); }
.hero-prev { left:  clamp(12px, 3vw, 40px); }
.hero-next { right: clamp(12px, 3vw, 40px); }

/* Dots + progress */
.hero-bottom {
  position: absolute; bottom: 0; left: 0; right: 0;
  z-index: 10;
  padding: 0 var(--px) 32px;
  display: flex; align-items: center; gap: 16px;
}
.hero-dots { display: flex; gap: 10px; align-items: center; }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(0,0,0,.18);
  transition: background .3s, transform .3s;
  border: none; padding: 0; flex-shrink: 0;
}
.dot.active { background: #111; transform: scale(1.35); }

.hero-progress-bar {
  flex: 1; height: 1.5px; border-radius: 1px;
  background: rgba(0,0,0,.1);
  overflow: hidden; position: relative;
}
.hero-progress-bar::after {
  content: '';
  position: absolute; left: 0; top: 0;
  width: 0%; height: 100%;
  background: rgba(0,0,0,.45);
}
.hero-progress-bar.running::after {
  animation: prog 5s linear forwards;
}
@keyframes prog { to { width: 100%; } }

/* ── FEATURED ────────────────────────────────────────────────────────── */
.section-featured { padding: 60px 0; }

.featured-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}

.card-featured-main {
  background: var(--bg-card);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.card-featured-main:hover { border-color: var(--border-h); }
.card-featured-main .card-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.card-featured-main .card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.card-featured-main:hover .card-img-wrap img { transform: scale(1.04); }
.card-featured-main .card-body { padding: 24px 28px 28px; }
.card-featured-main .card-title {
  font-family: 'Alliance No.1', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 700; line-height: 1.25; margin-bottom: 12px;
}
.card-featured-main .card-title a { transition: color .2s; }
.card-featured-main .card-title a:hover { color: var(--text-2); }
.card-featured-main .card-excerpt {
  color: var(--text-2); font-size: .95rem; line-height: 1.7; margin-bottom: 16px;
}

.featured-secondary { display: flex; flex-direction: column; gap: 16px; }

.card-sm {
  display: flex; gap: 14px;
  background: var(--bg-card);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color .2s, background .2s;
}
.card-sm:hover { border-color: var(--border-h); background: var(--bg-card-h); }
.card-sm .card-img-wrap {
  position: relative;
  flex: 0 0 120px;
  overflow: hidden;
}
.card-sm .card-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card-sm:hover .card-img-wrap img { transform: scale(1.06); }
.card-sm .card-tag { font-size: .6rem; padding: 2px 6px; }
.card-sm .card-body {
  flex: 1; padding: 12px 14px 12px 0;
  display: flex; flex-direction: column; justify-content: space-between;
}
.card-sm .card-title {
  font-family: 'Alliance No.1', sans-serif;
  font-size: .9rem; font-weight: 600; line-height: 1.3;
}
.card-sm .card-title a { transition: color .2s; }
.card-sm .card-title a:hover { color: var(--text-2); }

/* Shared card footer */
.card-footer {
  display: flex; align-items: center; gap: 10px;
  font-size: .78rem; color: var(--text-3);
  margin-top: auto; padding-top: 10px;
}
.card-author { color: var(--text-2); font-weight: 500; }
.card-footer time::before { content: '·'; margin-right: 6px; }

/* ── CATEGORY SECTIONS ───────────────────────────────────────────────── */
.section-category { padding: 60px 0 80px; }
.section-alt { background: var(--bg-1); }

.section-head {
  display: flex; align-items: center; gap: 20px;
  margin-bottom: 32px; flex-wrap: wrap;
}
.section-title-group { display: flex; align-items: baseline; gap: 10px; }
.section-eyebrow {
  font-family: 'Alliance No.1', sans-serif;
  font-size: .7rem; font-weight: 700;
  color: var(--text-3); letter-spacing: .1em;
}
.section-heading {
  font-family: 'Alliance No.1', sans-serif;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  font-weight: 800; letter-spacing: -.025em;
}

.tab-group { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.tab {
  padding: 6px 14px; border-radius: 6px;
  font-size: .82rem; font-weight: 500;
  color: var(--text-2); border: 1px solid var(--border); background: transparent;
  transition: background .2s, color .2s, border-color .2s;
}
.tab:hover { color: var(--text); border-color: var(--border-h); }
.tab.active { background: var(--text); border-color: var(--text); color: var(--bg); }

.view-all {
  margin-left: auto;
  font-size: .83rem; font-weight: 600; color: var(--text-2); white-space: nowrap;
  transition: color .2s;
}
.view-all:hover { color: var(--text); }

/* Responsive card grid — horizontal scroll on small screens */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

/* ── STANDART HABER KARTI (card-article) ─────────────────────────────── */
/* Masaustu 2 sutun, mobil tek sutun */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.card-article {
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: transform .35s var(--ease);
}
.card-article .card-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg-2);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: box-shadow .3s var(--ease);
}
.card-article .card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.card-article:hover .card-thumb img { transform: scale(1.05); }
.card-article:hover .card-thumb { box-shadow: 0 16px 36px rgba(0,0,0,.16); }

.card-article .card-body {
  display: flex;
  flex-direction: column;
  padding: 16px 2px 0;
}
.card-article .card-title {
  font-family: 'Hando Trial', 'Alliance No.1', sans-serif;
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 700; line-height: 1.22; letter-spacing: -.01em;
  margin: 12px 0 8px;
}
.card-article .card-title a { transition: color .2s; }
.card-article .card-title a:hover { color: var(--red); }
.card-article .card-byline {
  font-family: 'Source Serif 4', 'LTC Goudy Oldstyle Pro', Georgia, serif;
  font-size: .85rem; color: var(--text-3); margin-bottom: 10px;
}
.card-article .card-excerpt {
  font-family: 'Source Serif 4', 'LTC Goudy Oldstyle Pro', Georgia, serif;
  font-size: .95rem; color: var(--text-2); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* Kart icindeki kategori rozeti — acik zeminde: siyah ana + kirmizi alt vurgu */
.cat-band--card { margin-bottom: 0; }
.cat-band--card .cat-main { background: #000; color: #fff; }
.cat-band--card .cat-sub {
  background: transparent;
  color: #000;
  border: 1px solid #000;
  border-left: none;
}
[data-theme="light"] .cat-band--card .cat-sub { color: #000; border-color: #000; }

@media (max-width: 720px) {
  .card-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ── CAT BAND (B&W category label strip) ────────────────────────────── */
.cat-band {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: 8px;
}
.cat-main {
  background: #000;
  color: #fff;
  font-family: 'Alliance No.1', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 10px;
  white-space: nowrap;
}
[data-theme="light"] .cat-main {
  background: #000;
  color: #fff;
}
.cat-sub {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.35);
  border-left: none;
  font-family: 'Alliance No.1', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 3px 10px;
  white-space: nowrap;
}
[data-theme="light"] .cat-sub {
  color: rgba(255,255,255,.9);
  border-color: rgba(255,255,255,.4);
}

/* ── ADMIN INJECTED FEED (Firestore'dan gelen yazılar, 4 eşit kart) ──── */
.admin-feed {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.admin-feed .card-overlay {
  aspect-ratio: 4/3;
}
.admin-feed .card-overlay:nth-child(n+5) { display: none; }

@media (max-width: 820px) {
  .admin-feed { grid-template-columns: 1fr; }
  .admin-feed .card-overlay { aspect-ratio: 16/9; }
}

/* ── CATEGORY FEED LAYOUT (overlay cards) ───────────────────────────── */
.category-feed {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.feed-top {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2px;
}
.feed-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
/* 5. kartı gizle, 4 kart yeterli */
.feed-bottom .card-overlay:nth-child(3) { display: none; }

.card-overlay {
  position: relative;
  overflow: hidden;
  display: block;
  cursor: pointer;
}
.feed-top .card-overlay    { aspect-ratio: 4/3; }
.feed-bottom .card-overlay { aspect-ratio: 4/3; }
.card-overlay-img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .65s var(--ease);
}
.card-overlay:hover .card-overlay-img { transform: scale(1.04); }
.card-overlay-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 52%, transparent 100%);
  padding: 52px 18px 18px;
}
.card-overlay .ov-title {
  font-family: 'Alliance No.1', sans-serif;
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 6px;
}
.feed-top .card-overlay .ov-title    { font-size: clamp(.95rem, 1.6vw, 1.25rem); }
.feed-bottom .card-overlay .ov-title { font-size: .88rem; }
.card-overlay .ov-meta {
  color: rgba(255,255,255,.6);
  font-size: .75rem;
}
.card-overlay .ov-meta span + span::before { content: ' · '; }

/* ── SPOTLIGHT ───────────────────────────────────────────────────────── */
.section-spotlight { padding: 80px 0; background: var(--bg-2); overflow: hidden; }

.spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px; align-items: center;
}
.spotlight-text { max-width: 520px; }
.spotlight-text .label { margin-bottom: 20px; }
.spotlight-text h2 {
  font-family: 'Alliance No.1', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 20px;
}
.spotlight-text p { color: var(--text-2); line-height: 1.75; margin-bottom: 28px; }

.spotlight-img { position: relative; }
.spotlight-img img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--r-lg);
}
.spotlight-quote {
  position: absolute; bottom: -20px; left: -28px; max-width: 300px;
  background: #000; color: #fff;
  padding: 16px 20px; border-radius: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08);
}
.spotlight-quote blockquote {
  font-family: 'Alliance No.1', sans-serif; font-size: .88rem; font-weight: 600;
  line-height: 1.5; font-style: italic;
}

/* ── MULTIMEDIA ──────────────────────────────────────────────────────── */
.section-multimedia { padding: 60px 0; }

.multimedia-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.mm-card {
  background: var(--bg-card);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color .2s, transform .3s var(--ease);
}
.mm-card:hover { border-color: var(--border-h); transform: translateY(-4px); }

.mm-img-wrap {
  position: relative; aspect-ratio: 16/10; overflow: hidden; display: block;
}
.mm-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.mm-card:hover .mm-img-wrap img { transform: scale(1.04); }

.mm-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.3); color: #fff;
  opacity: 0; transition: opacity .3s;
}
.mm-card:hover .mm-play { opacity: 1; }

.mm-type-badge {
  position: absolute; bottom: 10px; left: 10px;
  display: flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 4px;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: .7rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.mm-card .card-body { padding: 16px 18px 20px; }
.mm-card .card-title {
  font-family: 'Alliance No.1', sans-serif;
  font-size: .95rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px;
}
.mm-card .card-title a:hover { color: var(--text-2); }
.mm-card .card-excerpt { font-size: .82rem; color: var(--text-3); }

/* ── NEWSLETTER ──────────────────────────────────────────────────────── */
.section-newsletter { padding: 80px 0; background: var(--bg-1); }

.newsletter-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 52px 56px;
}
.newsletter-text .label { margin-bottom: 14px; }
.newsletter-text h2 {
  font-family: 'Alliance No.1', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 12px;
}
.newsletter-text p { color: var(--text-2); font-size: .95rem; line-height: 1.7; }

.form-row { display: flex; gap: 10px; }
.nl-input {
  flex: 1; padding: 13px 16px;
  border-radius: 8px; border: 1.5px solid var(--border);
  background: var(--bg-2); color: var(--text);
  font: inherit; font-size: .9rem; outline: none;
  transition: border-color .2s;
}
.nl-input:focus { border-color: var(--text-2); }
.nl-input::placeholder { color: var(--text-3); }
.nl-btn { flex: 0 0 auto; }
.form-note { margin-top: 10px; font-size: .78rem; color: var(--text-3); }

/* ── FOOTER ──────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-top {
  display: grid; grid-template-columns: 280px 1fr; gap: 60px;
  padding-bottom: 48px; border-bottom: 1px solid var(--border); margin-bottom: 32px;
}
.footer-brand .logo { margin-bottom: 16px; }
.footer-tagline { font-size: .88rem; color: var(--text-2); line-height: 1.65; margin-bottom: 24px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border); color: var(--text-2);
  transition: color .2s, border-color .2s, background .2s;
}
.social-link:hover { color: var(--text); border-color: var(--border-h); background: var(--border); }

.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.footer-col h4 {
  font-family: 'Alliance No.1', sans-serif;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .88rem; color: var(--text-2); transition: color .2s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.copyright { font-size: .82rem; color: var(--text-3); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { font-size: .82rem; color: var(--text-3); transition: color .2s; }
.footer-links a:hover { color: var(--text-2); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .featured-grid         { grid-template-columns: 1fr 300px; }
  .spotlight-inner       { grid-template-columns: 1fr 340px; gap: 40px; }
  .newsletter-inner      { padding: 40px; }
  .footer-top            { grid-template-columns: 220px 1fr; gap: 40px; }
}

@media (max-width: 820px) {
  :root { --header-h: 56px; }

  .main-nav    { display: none; }
  .hamburger   { display: flex; }

  .featured-grid           { grid-template-columns: 1fr; }
  .featured-secondary      { flex-direction: row; overflow-x: auto; gap: 14px; }
  .card-sm                 { flex: 0 0 240px; flex-direction: column; }
  .card-sm .card-img-wrap  { flex: none; aspect-ratio: 16/9; }
  .card-sm .card-body      { padding: 12px 14px; }

  /* Category feed responsive */
  .feed-top    { grid-template-columns: 1fr; }
  .feed-bottom { grid-template-columns: 1fr; }
  .feed-top .card-overlay    { aspect-ratio: 16/9; }
  .feed-bottom .card-overlay { aspect-ratio: 16/9; }

  .spotlight-inner  { grid-template-columns: 1fr; gap: 32px; }
  .spotlight-img    { max-width: 400px; margin: 0 auto; }
  .spotlight-quote  { left: 0; bottom: -10px; }

  .multimedia-grid { grid-template-columns: 1fr; }

  .newsletter-inner { grid-template-columns: 1fr; gap: 28px; padding: 32px 28px; }
  .form-row         { flex-direction: column; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; gap: 24px; }

  .hero-prev { left: 10px; }
  .hero-next { right: 10px; }
}

@media (max-width: 560px) {
  .section-head    { flex-direction: column; align-items: flex-start; gap: 12px; }
  .view-all        { margin-left: 0; }
  .multimedia-grid { grid-template-columns: 1fr; }
  .mm-card:last-child { grid-column: auto; }
  .footer-nav      { grid-template-columns: 1fr 1fr; }
  .footer-bottom   { flex-direction: column; align-items: flex-start; }
  .hero-title      { font-size: clamp(1.02rem, 5.1vw, 1.7rem); }
  .hero-content    { padding-bottom: 52px; }
  .feed-bottom     { grid-template-columns: 1fr; }
  .feed-bottom .card-overlay:last-child { grid-column: auto; }
}

/* ── ANA MENU DROPDOWN (kategori alt menuleri) ───────────────────────── */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 8px;
  min-width: 196px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 200;
  box-shadow: 0 20px 44px rgba(0,0,0,.16);
}
.nav-item.has-children:hover > .nav-dropdown,
.nav-item.has-children:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-drop-link {
  display: block;
  padding: 9px 18px;
  font-family: 'Alliance No.1', sans-serif;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .01em;
  color: var(--text-2);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-drop-link:hover { color: var(--text); background: var(--border); }

/* Mobil alt menu */
.mobile-nav.open { max-height: 80vh; overflow-y: auto; }
.mobile-sub { padding: 2px 0 10px; }
.mobile-sub li + li { border-top: none; }
.mobile-sublink {
  display: block;
  padding: 8px var(--px) 8px calc(var(--px) + 18px);
  font-family: 'Alliance No.1', sans-serif;
  font-size: .96rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color .2s;
}
.mobile-sublink:hover { color: var(--text); }

/* ── SCROLLBAR & SELECTION ───────────────────────────────────────────── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-h); border-radius: 3px; }
::selection { background: #fff; color: #000; }
[data-theme="light"] ::selection { background: #000; color: #fff; }

/* ── CATEGORY HERO ───────────────────────────────────────────────────── */
.cat-hero {
  position: relative;
  height: 92vh;
  min-height: 540px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  margin-top: var(--header-h);
}

.cat-hero-bg {
  position: absolute;
  inset: -30% 0;
  background-size: cover;
  background-position: center top;
  will-change: transform;
  transition: transform .05s linear;
}

.cat-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, .55) 0%, transparent 55%),
    linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .35) 45%, rgba(0, 0, 0, .08) 100%);
}

.cat-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--px) 80px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  will-change: transform, opacity;
  transition: transform .05s linear, opacity .05s linear;
}

.cat-hero-label {
  font-family: 'Alliance No.1', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin: 0 0 20px;
}

.cat-hero-title {
  font-family: 'Hando Trial', 'Alliance No.1', sans-serif;
  font-size: clamp(1.4rem, 4.4vw, 3.8rem);
  font-weight: 700;
  line-height: .93;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0 0 16px;
}

.cat-hero-desc {
  font-family: 'LTC Goudy Oldstyle Pro', Georgia, serif;
  font-size: clamp(.78rem, 1vw, .88rem);
  color: rgba(255, 255, 255, .72);
  line-height: 1.7;
  max-width: 480px;
  margin: 0;
}

@media (max-width: 640px) {
  .cat-hero { height: 80vh; min-height: 420px; }
  .cat-hero-content { padding-bottom: 48px; }
}
