/* ============================================================
   Makeup Sare Tunca — Directions (3 yön) + Palettes
   data-direction="1|2|3"  → base mode + layout treatment
   data-palette="gold|bronze|rose|espresso" → accent family
   All within the same sophisticated brown/gold mood.
   ============================================================ */

/* ----------------------------------------------------------
   ACCENT PALETTES (compose on top of any direction)
   ---------------------------------------------------------- */
/* Warm, sophisticated accent families — light → deep.
   Each sets only --accent / --accent-deep / --accent-ink so it
   composes cleanly with any direction's base. */
[data-palette="gold"] {            /* Altın — klasik sıcak altın */
  --accent:      oklch(0.74 0.085 78);
  --accent-deep: oklch(0.58 0.075 66);
  --accent-ink:  oklch(0.26 0.02 60);
}
[data-palette="champagne"] {       /* Şampanya — yumuşak, ışıltılı bej-altın */
  --accent:      oklch(0.83 0.045 84);
  --accent-deep: oklch(0.66 0.05 76);
  --accent-ink:  oklch(0.26 0.02 60);
}
[data-palette="copper"] {          /* Bakır / Rose Gold — sıcak metalik */
  --accent:      oklch(0.67 0.088 42);
  --accent-deep: oklch(0.53 0.08 38);
  --accent-ink:  oklch(0.97 0.01 80);
}
[data-palette="bronze"] {          /* Bronz — derin, toprak metalik */
  --accent:      oklch(0.64 0.075 55);
  --accent-deep: oklch(0.50 0.065 48);
  --accent-ink:  oklch(0.97 0.01 80);
}
[data-palette="terracotta"] {      /* Kiremit — sıcak kil tonu */
  --accent:      oklch(0.62 0.105 40);
  --accent-deep: oklch(0.49 0.10 36);
  --accent-ink:  oklch(0.97 0.01 80);
}
[data-palette="rose"] {            /* Pudra Gül — narin nude pembe */
  --accent:      oklch(0.75 0.055 25);
  --accent-deep: oklch(0.59 0.055 20);
  --accent-ink:  oklch(0.26 0.02 30);
}
[data-palette="mauve"] {           /* Gül Kurusu — sofistike soluk mor-pembe */
  --accent:      oklch(0.63 0.052 355);
  --accent-deep: oklch(0.49 0.05 355);
  --accent-ink:  oklch(0.97 0.01 350);
}
[data-palette="bordo"] {           /* Bordo — romantik şarap kırmızısı */
  --accent:      oklch(0.49 0.10 18);
  --accent-deep: oklch(0.39 0.09 15);
  --accent-ink:  oklch(0.97 0.012 40);
}
[data-palette="espresso"] {        /* Koyu Kahve — sade, koyu kahve vurgu */
  --accent:      oklch(0.50 0.045 52);
  --accent-deep: oklch(0.38 0.04 50);
  --accent-ink:  oklch(0.96 0.01 80);
}

/* ==========================================================
   DIRECTION 1 — "Editöryel" (light cream, magazine asymmetry)
   ========================================================== */
[data-direction="1"] {
  --bg:        oklch(0.972 0.012 82);
  --bg-2:      oklch(0.945 0.014 80);
  --surface:   oklch(0.992 0.008 86);
  --ink:       oklch(0.265 0.018 58);
  --ink-soft:  oklch(0.47 0.02 58);
  --line:      oklch(0.87 0.014 78);
  --radius:    2px;
  color-scheme: light;
}
[data-direction="1"] .hero__title { letter-spacing: -0.015em; }
[data-direction="1"] .hero__media image-slot { --is-radius: 2px; }
[data-direction="1"] .s-card { background: transparent; border-color: var(--line); }
[data-direction="1"] .s-card:hover { background: var(--surface); }
/* editorial hairline between hero columns on wide screens */
@media (min-width: 821px) {
  [data-direction="1"] .hero__content { padding-right: clamp(20px, 4vw, 60px); }
}

/* ==========================================================
   DIRECTION 2 — "Couture Koyu" (dramatic dark, overlay hero)
   ========================================================== */
[data-direction="2"] {
  --bg:        oklch(0.205 0.016 54);
  --bg-2:      oklch(0.17 0.015 50);
  --surface:   oklch(0.245 0.018 54);
  --ink:       oklch(0.945 0.012 82);
  --ink-soft:  oklch(0.76 0.016 78);
  --line:      oklch(0.37 0.02 54);
  --radius:    3px;
  --shadow-soft: 0 1px 2px oklch(0 0 0 / 0.3), 0 30px 60px -30px oklch(0 0 0 / 0.6);
  color-scheme: dark;
}
/* dramatic full-bleed overlay hero */
[data-direction="2"] .hero { padding-top: 0; padding-bottom: 0; }
[data-direction="2"] .hero__inner {
  grid-template-columns: 1fr;
  position: relative;
  min-height: 100svh;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding-block: clamp(120px, 18vh, 200px);
}
[data-direction="2"] .hero__content { align-items: center; max-width: 880px; z-index: 3; }
[data-direction="2"] .hero__sub { max-width: 44ch; }
[data-direction="2"] .hero__media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  aspect-ratio: auto;
  z-index: 1;
  border: none;
  border-radius: 0;
  background: var(--bg-2);
}
[data-direction="2"] .hero__media image-slot { width: 100%; height: 100%; }
[data-direction="2"] .hero__scrim {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 0%, color-mix(in oklab, var(--bg) 55%, transparent) 55%, color-mix(in oklab, var(--bg) 92%, transparent) 100%),
    linear-gradient(to bottom, color-mix(in oklab, var(--bg) 40%, transparent), color-mix(in oklab, var(--bg) 86%, transparent));
}
[data-direction="2"] .hero__media .media-tag { left: 50%; transform: translateX(-50%); bottom: 26px; }
[data-direction="2"] .hero__actions { justify-content: center; }
[data-direction="2"] .btn--ghost { color: var(--ink); border-color: color-mix(in oklab, var(--ink) 35%, transparent); }
/* dark luxe service cards with gold hairline */
[data-direction="2"] .s-card {
  background: linear-gradient(165deg, var(--surface), color-mix(in oklab, var(--bg-2) 70%, var(--surface)));
  border-color: color-mix(in oklab, var(--accent) 26%, var(--line));
}
[data-direction="2"] .s-card:hover {
  box-shadow: 0 30px 60px -40px oklch(0 0 0 / 0.8);
  border-color: color-mix(in oklab, var(--accent) 55%, var(--line));
}
[data-direction="2"] .form-section { background: var(--bg-2); }
[data-direction="2"] .field input,
[data-direction="2"] .field select,
[data-direction="2"] .field textarea { background: color-mix(in oklab, var(--bg) 70%, var(--surface)); }

/* ==========================================================
   DIRECTION 3 — "Sıcak Atölye" (warm nude, soft & intimate)
   ========================================================== */
[data-direction="3"] {
  --bg:        oklch(0.935 0.018 66);
  --bg-2:      oklch(0.89 0.024 60);
  --surface:   oklch(0.975 0.014 72);
  --ink:       oklch(0.31 0.024 50);
  --ink-soft:  oklch(0.50 0.026 52);
  --line:      oklch(0.84 0.02 62);
  --radius:    18px;
  --shadow-soft: 0 2px 4px oklch(0.4 0.03 55 / 0.05), 0 26px 50px -30px oklch(0.42 0.04 50 / 0.34);
  color-scheme: light;
}
[data-direction="3"] .hero__media image-slot { }
[data-direction="3"] .s-card {
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}
[data-direction="3"] .s-card:hover {
  box-shadow: 0 36px 60px -34px oklch(0.42 0.04 50 / 0.42);
  border-color: transparent;
}
[data-direction="3"] .btn { border-radius: 100px; }
[data-direction="3"] .seg label,
[data-direction="3"] .field input,
[data-direction="3"] .field select,
[data-direction="3"] .field textarea { border-radius: 12px; }
[data-direction="3"] .form-intro .reassure { border-radius: 14px; border-left-width: 3px; }
[data-direction="3"] .hero__title { letter-spacing: -0.005em; }
/* warm alternating band behind services */
[data-direction="3"] .services { background: var(--bg-2); }

/* ----------------------------------------------------------
   Direction pill (review control)
   ---------------------------------------------------------- */
.dir-pill {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  border-radius: 100px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.2);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px -22px oklch(0.2 0.02 55 / 0.5);
  font-family: var(--font-body);
  transition: opacity .4s ease, transform .4s ease;
}
.dir-pill__label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0 12px 0 14px;
}
.dir-pill button {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 15px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease;
  white-space: nowrap;
}
.dir-pill button:hover { color: var(--ink); }
.dir-pill button.is-on {
  background: var(--accent);
  color: var(--accent-ink);
}
@media (max-width: 560px) {
  .dir-pill { bottom: auto; top: 70px; }
  body.has-mcta .dir-pill { top: 70px; }
}

/* ----------------------------------------------------------
   Tweaks panel
   ---------------------------------------------------------- */
.tweaks {
  position: fixed;
  z-index: 90;
  top: 16px; right: 16px;
  width: 320px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 70px -30px oklch(0.2 0.02 55 / 0.6);
  font-family: var(--font-body);
  display: none;
  flex-direction: column;
}
.tweaks.is-open { display: flex; }
.tweaks__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: var(--surface);
  border-radius: 16px 16px 0 0;
}
.tweaks__head h3 { font-family: var(--font-heading); font-size: 19px; font-weight: 500; }
.tweaks__close {
  border: none; background: transparent; cursor: pointer;
  color: var(--ink-soft); font-size: 20px; line-height: 1;
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  transition: background .25s ease, color .25s ease;
}
.tweaks__close:hover { background: var(--bg-2); color: var(--ink); }
.tweaks__body { padding: 6px 18px 20px; display: flex; flex-direction: column; gap: 22px; }
.tw-group { display: flex; flex-direction: column; gap: 11px; }
.tw-group > .tw-title {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.tw-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.tw-swatch-name {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-heading);
}
.tw-swatch {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--line);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform .25s ease, border-color .25s ease;
}
.tw-swatch:hover { transform: scale(1.08); }
.tw-swatch.is-on { border-color: var(--ink); }
.tw-swatch.is-on::after {
  content: "";
  position: absolute; inset: -5px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  opacity: 0.4;
}
.tw-fonts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tw-font {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 10px 11px;
  cursor: pointer;
  text-align: left;
  transition: border-color .25s ease, background .25s ease;
  color: var(--ink);
}
.tw-font:hover { border-color: color-mix(in oklab, var(--accent) 50%, var(--line)); }
.tw-font.is-on { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); }
.tw-font .tw-font__name { display: block; font-size: 22px; line-height: 1.1; }
.tw-font .tw-font__meta { font-size: 10.5px; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; margin-top: 4px; }
.tw-field { display: flex; flex-direction: column; gap: 7px; }
.tw-field label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); font-weight: 600; }
.tw-field input, .tw-field textarea {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 11px;
  width: 100%;
}
.tw-field textarea { resize: vertical; min-height: 60px; }
.tw-field input:focus, .tw-field textarea:focus { outline: none; border-color: var(--accent); }
.tweaks__note { font-size: 11.5px; color: var(--ink-soft); line-height: 1.5; padding-top: 4px; border-top: 1px dashed var(--line); }

/* ==========================================================
   BACKGROUND TONES (data-bg) — override the base surface/ink
   colors independently of direction. "auto" = no override,
   so the chosen direction's own base shows through.
   Placed last so these win over [data-direction] when set.
   ========================================================== */
[data-bg="ivory"] {            /* Fildişi — çok açık sıcak beyaz */
  --bg:       oklch(0.985 0.006 86);
  --bg-2:     oklch(0.962 0.008 84);
  --surface:  oklch(0.997 0.004 88);
  --ink:      oklch(0.265 0.018 58);
  --ink-soft: oklch(0.47 0.02 58);
  --line:     oklch(0.89 0.012 80);
  color-scheme: light;
}
[data-bg="cream"] {            /* Krem — sıcak krem */
  --bg:       oklch(0.97 0.013 82);
  --bg-2:     oklch(0.945 0.015 80);
  --surface:  oklch(0.992 0.008 86);
  --ink:      oklch(0.265 0.018 58);
  --ink-soft: oklch(0.47 0.02 58);
  --line:     oklch(0.87 0.014 78);
  color-scheme: light;
}
[data-bg="beige"] {            /* Sıcak Bej — daha doygun bej */
  --bg:       oklch(0.935 0.02 76);
  --bg-2:     oklch(0.90 0.024 72);
  --surface:  oklch(0.972 0.015 78);
  --ink:      oklch(0.30 0.022 56);
  --ink-soft: oklch(0.49 0.024 56);
  --line:     oklch(0.84 0.02 72);
  color-scheme: light;
}
[data-bg="nude"] {             /* Pudra Nude — pembe-bej */
  --bg:       oklch(0.945 0.018 36);
  --bg-2:     oklch(0.905 0.024 32);
  --surface:  oklch(0.975 0.013 40);
  --ink:      oklch(0.31 0.022 36);
  --ink-soft: oklch(0.50 0.024 34);
  --line:     oklch(0.85 0.02 34);
  color-scheme: light;
}
[data-bg="greige"] {           /* Greige — gri-bej, sakin */
  --bg:       oklch(0.925 0.007 90);
  --bg-2:     oklch(0.888 0.008 88);
  --surface:  oklch(0.965 0.005 92);
  --ink:      oklch(0.30 0.012 80);
  --ink-soft: oklch(0.49 0.013 80);
  --line:     oklch(0.83 0.009 86);
  color-scheme: light;
}
[data-bg="mocha"] {            /* Koyu Kahve — dramatik koyu zemin */
  --bg:       oklch(0.225 0.018 55);
  --bg-2:     oklch(0.185 0.016 52);
  --surface:  oklch(0.265 0.02 55);
  --ink:      oklch(0.945 0.012 82);
  --ink-soft: oklch(0.76 0.016 78);
  --line:     oklch(0.38 0.02 54);
  --shadow-soft: 0 1px 2px oklch(0 0 0 / 0.3), 0 30px 60px -30px oklch(0 0 0 / 0.6);
  color-scheme: dark;
}
