/* ===========================================================================
 * Yaprakzade — Editorial Heritage Design System
 * Phase 508 (2026-06-10)
 *
 * "Türk magazin estetiği + çay miras dili"
 * Generic SaaS template'lerden uzak, özgün editorial kimlik.
 * Fraunces variable serif + Plus Jakarta Sans + Türk seramik renk paleti.
 * =========================================================================== */

:root {
  /* === EDITORIAL PALETTE === */
  /* Türk seramik + çay bahçesi + bakır tonları */
  --yz-ink: #1a2820;        /* derin orman, neredeyse siyah */
  --yz-moss: #2d5e3e;       /* marka yeşili (existing) */
  --yz-moss-deep: #1f4530;
  --yz-paper: #f8f4e9;      /* sıcak krem, beyaz değil */
  --yz-paper-warm: #f1ebd9;
  --yz-ochre: #b8884b;      /* antika altın */
  --yz-ochre-light: #d4a76a;
  --yz-brick: #8c4a3a;      /* Türk seramik kırmızısı */
  --yz-smoke: #b6b2a3;      /* sıcak gri */
  --yz-mist: #e8e3d3;       /* açık paper tonu */

  /* Type scale */
  --yz-serif: 'Fraunces', 'Playfair Display', Georgia, serif;
  --yz-sans: 'Plus Jakarta Sans', 'Outfit', system-ui, sans-serif;

  /* Spacing — fibonacci-inspired */
  --yz-s1: 8px;
  --yz-s2: 13px;
  --yz-s3: 21px;
  --yz-s4: 34px;
  --yz-s5: 55px;
  --yz-s6: 89px;

  /* Easing */
  --yz-ease-soft: cubic-bezier(.22, 1, .36, 1);
  --yz-ease-organic: cubic-bezier(.65, .05, .36, 1);
}

/* === FONT PRELOAD (Fraunces variable + Plus Jakarta) === */
/* Fraunces opsz axis: 9-144, weight 100-900. Çok özgün şekiller. */

/* === GLOBAL EDITORIAL HOOK === */
body.yz-editorial,
.yz-editorial-section {
  background: var(--yz-paper);
  color: var(--yz-ink);
}
.yz-editorial-section {
  position: relative;
  overflow: hidden;
}

/* === HERO — Magazine Cover === */
.yz-hero-editorial {
  position: relative;
  min-height: 88vh;
  background: var(--yz-paper);
  padding: var(--yz-s6) 0 var(--yz-s5);
  overflow: hidden;
  isolation: isolate;
}
/* Subtle paper grain — overlay tüm bg üzerinde */
.yz-hero-editorial::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence baseFrequency='.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 .26  0 0 0 0 .22  0 0 0 0 .16  0 0 0 .06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 120px;
  opacity: .55;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}
.yz-hero-editorial > .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: var(--yz-s5);
  align-items: center;
}
.yz-hero-eyebrow {
  display: inline-block;
  font-family: var(--yz-sans);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yz-ochre);
  margin-bottom: var(--yz-s3);
  position: relative;
  padding-left: 42px;
}
.yz-hero-eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 30px; height: 1px;
  background: var(--yz-ochre);
  transform: translateY(-50%);
}
.yz-hero-headline {
  font-family: var(--yz-serif);
  font-variation-settings: "opsz" 144, "wght" 400, "SOFT" 50;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .94;
  letter-spacing: -.018em;
  color: var(--yz-ink);
  margin: 0 0 var(--yz-s3);
  font-weight: 400;
}
.yz-hero-headline em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "wght" 300, "SOFT" 100;
  color: var(--yz-moss);
  position: relative;
}
.yz-hero-headline em::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8%;
  height: 4px;
  background: var(--yz-ochre);
  opacity: .35;
  border-radius: 2px;
  transform: scaleX(.85);
}
.yz-hero-pullquote {
  font-family: var(--yz-serif);
  font-variation-settings: "opsz" 14, "wght" 350;
  font-size: 17.5px;
  line-height: 1.55;
  color: #4a5a4e;
  max-width: 48ch;
  margin: 0 0 var(--yz-s4);
  font-style: italic;
}
.yz-hero-pullquote::before {
  content: "—";
  margin-right: 6px;
  color: var(--yz-ochre);
}
.yz-hero-actions {
  display: flex;
  gap: var(--yz-s2);
  align-items: center;
  flex-wrap: wrap;
}
.yz-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--yz-ink);
  color: var(--yz-paper);
  font-family: var(--yz-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  padding: 17px 32px;
  border-radius: 0;
  text-decoration: none;
  position: relative;
  border: 1px solid var(--yz-ink);
  transition: transform .25s var(--yz-ease-soft), background .25s ease;
}
.yz-cta-primary::after {
  content: "→";
  font-size: 18px;
  transition: transform .3s var(--yz-ease-soft);
}
.yz-cta-primary:hover {
  background: var(--yz-moss);
  border-color: var(--yz-moss);
}
.yz-cta-primary:hover::after { transform: translateX(4px); }
.yz-cta-secondary {
  font-family: var(--yz-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--yz-ink);
  text-decoration: none;
  padding: 17px 8px;
  border-bottom: 2px solid var(--yz-ink);
  transition: border-color .2s ease, color .2s ease;
}
.yz-cta-secondary:hover {
  border-color: var(--yz-ochre);
  color: var(--yz-moss);
}

/* Hero image — tilted, with color block underlay */
.yz-hero-media {
  position: relative;
  aspect-ratio: 4/5;
  max-width: 560px;
  justify-self: end;
  width: 100%;
}

/* Phase 509c+d — Hero carousel: cinematic Ken Burns + slide-bazlı bg shift + light sweep */
.yz-hero-carousel {
  overflow: hidden;
  border-radius: 6px;
}
.yz-hero-carousel .yz-hero-slide {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transform: scale(1.02) rotate(.4deg);
  transition: opacity 1.1s var(--yz-ease-soft), transform 1.3s var(--yz-ease-soft);
  pointer-events: none;
}
.yz-hero-carousel .yz-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
  transform: scale(1) rotate(0);
  /* Ken Burns slow zoom while active — yavaş içe doğru zoom + hafif kayma */
  animation: yz-ken-burns 9s ease-in-out forwards;
}
@keyframes yz-ken-burns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.08) translate(-2%, -1%); }
}
.yz-hero-carousel .yz-hero-slide picture,
.yz-hero-carousel .yz-hero-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(.95);
}

/* Slide bazlı bg color shift — section'ın arkasındaki renk slayt ile değişir */
.yz-hero-editorial {
  transition: background-color 1.2s var(--yz-ease-soft);
}
.yz-hero-editorial[data-bg-tone="0"] { background: var(--yz-paper); }
.yz-hero-editorial[data-bg-tone="1"] { background: linear-gradient(135deg, #f1ebd9 0%, #f8f4e9 100%); }
.yz-hero-editorial[data-bg-tone="2"] { background: linear-gradient(135deg, #ebe5d2 0%, #f5efde 100%); }
.yz-hero-editorial[data-bg-tone="3"] { background: linear-gradient(135deg, #f4ecd6 0%, #fbf6e3 100%); }

/* Light sweep — slide geçişinde parlama sweep'i */
.yz-hero-carousel::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -50%;
  width: 50%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255, 244, 200, 0) 30%,
    rgba(255, 244, 200, .35) 50%,
    rgba(255, 244, 200, 0) 70%,
    transparent 100%);
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity .1s ease;
}
.yz-hero-carousel.is-transitioning::after {
  animation: yz-light-sweep 1.1s var(--yz-ease-snap) forwards;
}
@keyframes yz-light-sweep {
  0%   { left: -50%; opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

/* Spinning decorative ring — sağ üstte yavaş dönen altın halka */
.yz-hero-media::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -30px;
  width: 90px;
  height: 90px;
  border: 1px dashed var(--yz-ochre);
  border-radius: 50%;
  opacity: .35;
  z-index: 3;
  animation: yz-ring-spin 22s linear infinite;
  pointer-events: none;
}
.yz-hero-media::before {
  /* override existing — same .yz-hero-media::before from earlier; combined via separate rule */
}
@keyframes yz-ring-spin {
  to { transform: rotate(360deg); }
}

/* Floating particles on hover */
.yz-hero-carousel .yz-hero-slide.is-active img,
.yz-hero-carousel .yz-hero-slide.is-active picture {
  animation: yz-slide-pop 1.4s var(--yz-ease-soft) backwards;
}
@keyframes yz-slide-pop {
  0%   { filter: contrast(1.2) saturate(.6) blur(2px); }
  100% { filter: contrast(1.05) saturate(.95) blur(0); }
}
.yz-hero-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
  background: rgba(248, 244, 233, .55);
  padding: 8px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.yz-hero-dot {
  width: 24px; height: 3px;
  border: 0;
  background: rgba(26, 40, 32, .35);
  cursor: pointer;
  padding: 0;
  border-radius: 2px;
  transition: background .3s ease, width .3s ease;
}
.yz-hero-dot.is-active {
  background: var(--yz-ochre);
  width: 36px;
}
.yz-hero-dot:hover { background: var(--yz-ink); }
.yz-hero-media::before {
  content: "";
  position: absolute;
  top: 18px; left: -18px;
  right: 18px; bottom: -18px;
  background: var(--yz-moss);
  z-index: 0;
  transform: rotate(-1.5deg);
}
.yz-hero-media img,
.yz-hero-media picture {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(.95);
}
/* Decorative serif "N" in hero corner — like a magazine vol/issue stamp */
.yz-hero-stamp {
  position: absolute;
  top: var(--yz-s4);
  right: 0;
  font-family: var(--yz-serif);
  font-variation-settings: "opsz" 144, "wght" 200;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--yz-smoke);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}
.yz-hero-stamp span {
  display: block;
  color: var(--yz-ink);
  font-weight: 600;
}

/* === SECTION DIVIDER — Organic Leaf Curve === */
.yz-divider-leaf {
  display: block;
  width: 100%;
  height: 80px;
  margin: 0;
  color: var(--yz-paper);
}
.yz-divider-leaf--ink { color: var(--yz-ink); }
.yz-divider-leaf--moss { color: var(--yz-moss); }

/* === STAT BADGES — Art Deco kartuş === */
.yz-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--yz-s4);
  margin: var(--yz-s5) 0;
}
.yz-stat {
  text-align: center;
  position: relative;
  padding: var(--yz-s4) var(--yz-s3);
}
.yz-stat::before,
.yz-stat::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 40px;
  height: 1px;
  background: var(--yz-ochre);
  transform: translateX(-50%);
}
.yz-stat::before { top: 0; }
.yz-stat::after { bottom: 0; }
.yz-stat-num {
  font-family: var(--yz-serif);
  font-variation-settings: "opsz" 144, "wght" 500;
  font-size: 56px;
  line-height: 1;
  color: var(--yz-ink);
  display: block;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.yz-stat-num em {
  font-style: italic;
  color: var(--yz-moss);
  font-variation-settings: "opsz" 144, "wght" 300;
}
.yz-stat-label {
  font-family: var(--yz-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--yz-smoke);
}

/* === PULL QUOTE BLOCK === */
.yz-pullquote-block {
  font-family: var(--yz-serif);
  font-variation-settings: "opsz" 60, "wght" 350;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  color: var(--yz-ink);
  font-style: italic;
  text-align: center;
  max-width: 22ch;
  margin: var(--yz-s6) auto;
  position: relative;
  padding: var(--yz-s4) 0;
}
.yz-pullquote-block::before,
.yz-pullquote-block::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 1px;
  background: var(--yz-ochre);
}
.yz-pullquote-block::before { top: 0; }
.yz-pullquote-block::after { bottom: 0; }
.yz-pullquote-block .attr {
  display: block;
  margin-top: var(--yz-s3);
  font-family: var(--yz-sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--yz-ochre);
  font-style: normal;
}

/* === EDITORIAL CARD — Magazine spread treatment === */
.yz-edi-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--yz-s5);
  align-items: center;
  padding: var(--yz-s6) 0;
}
.yz-edi-spread--reverse { grid-template-areas: "img text"; }
.yz-edi-spread--reverse .yz-edi-img { grid-area: img; }
.yz-edi-spread--reverse .yz-edi-text { grid-area: text; }
.yz-edi-img {
  position: relative;
  aspect-ratio: 4/5;
}
.yz-edi-img::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--yz-ochre);
  pointer-events: none;
  transform: translate(12px, 12px);
  transition: transform .4s var(--yz-ease-organic);
}
.yz-edi-spread:hover .yz-edi-img::after {
  transform: translate(6px, 6px);
}
.yz-edi-img picture,
.yz-edi-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.04) saturate(.93);
}
.yz-edi-text {
  padding: 0 var(--yz-s3);
}
.yz-edi-eyebrow {
  font-family: var(--yz-sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--yz-ochre);
  margin-bottom: var(--yz-s3);
  display: block;
}
.yz-edi-h {
  font-family: var(--yz-serif);
  font-variation-settings: "opsz" 96, "wght" 400;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  color: var(--yz-ink);
  margin: 0 0 var(--yz-s3);
  letter-spacing: -.015em;
}
.yz-edi-h em {
  font-style: italic;
  color: var(--yz-moss);
}
.yz-edi-body {
  font-family: var(--yz-sans);
  font-weight: 400;
  font-size: 16.5px;
  line-height: 1.7;
  color: #4a5a4e;
  margin: 0 0 var(--yz-s4);
  max-width: 42ch;
}
.yz-edi-link {
  font-family: var(--yz-sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  color: var(--yz-ink);
  text-decoration: none;
  border-bottom: 2px solid var(--yz-ochre);
  padding-bottom: 4px;
  transition: color .2s ease, padding-right .2s ease;
}
.yz-edi-link:hover {
  color: var(--yz-moss);
  padding-right: 8px;
}

/* === MOBILE === */
@media (max-width: 880px) {
  .yz-hero-editorial { min-height: auto; padding: var(--yz-s5) 0 var(--yz-s4); }
  .yz-hero-editorial > .container {
    grid-template-columns: 1fr;
    gap: var(--yz-s4);
  }
  .yz-hero-media { justify-self: stretch; max-width: 100%; aspect-ratio: 5/6; }
  .yz-hero-headline { font-size: clamp(36px, 9vw, 64px); }
  .yz-hero-stamp { display: none; }
  .yz-edi-spread,
  .yz-edi-spread--reverse {
    grid-template-columns: 1fr;
    grid-template-areas: none;
    gap: var(--yz-s4);
    padding: var(--yz-s5) 0;
  }
  .yz-edi-spread--reverse .yz-edi-img,
  .yz-edi-spread--reverse .yz-edi-text {
    grid-area: auto;
  }
  .yz-stat-num { font-size: 44px; }
}
