/* Efsane Hoca — "Gece Maçı" site styles. Tokens mirror docs/design.md §2–4. */
@font-face {
  font-family: "Big Shoulders Display";
  src: url("../fonts/BigShouldersDisplay.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo.ttf") format("truetype");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --night: #070B09;
  --surface: #0D1411;
  --surface-hi: #141D19;
  --line: #22302A;
  --chalk: #F2F1EA;
  --chalk-dim: #A7B0AA;
  --muted: #6B7570;
  --flare: #FF4D2E;
  --flare-glow: #FF7A45;
  --floodlight: #DDE8FF;
  --pitch: #1F6B43;
  --pitch-dark: #185736;
  --gold: #F2C14E;
  --positive: #46D17F;

  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --ui: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 20px);
  --r-chip: 999px;
  --r-btn: 14px;
  --r-card: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--night);
  color: var(--chalk);
  font: 450 16px/1.6 var(--ui);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* Floodlight haze + film grain (design §2 "Doku"). */
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 70vh;
  background: radial-gradient(ellipse 70% 60% at 50% -10%, rgba(221, 232, 255, .09), transparent 70%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .035; mix-blend-mode: overlay;
  pointer-events: none; z-index: 1;
}
main, header, footer { position: relative; z-index: 2; }

a { color: var(--chalk); text-decoration-color: rgba(255, 77, 46, .6); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--flare); }
:focus-visible { outline: 2px solid var(--flare-glow); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--text { max-width: 760px; }

/* Header */
.top { padding: 18px 0; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mark {
  font: 800 26px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
}
.mark__flame {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--flare);
  box-shadow: 0 0 12px 3px rgba(255, 77, 46, .55), 0 0 28px 8px rgba(255, 122, 69, .18);
}
.langs { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-chip); padding: 3px; background: var(--surface); }
.langs button {
  all: unset; cursor: pointer; padding: 6px 12px; min-height: 20px; border-radius: var(--r-chip);
  font: 700 12px/20px var(--ui); letter-spacing: 1.2px; color: var(--muted);
}
.langs button[aria-pressed="true"] { background: var(--surface-hi); color: var(--chalk); }

/* Language switching: without JS both languages show; JS hides one. */
html[data-lang="tr"] [lang="en"]:not(html), html[data-lang="en"] [lang="tr"]:not(html) { display: none !important; }

/* Type */
.label { font: 700 12px/1.4 var(--ui); letter-spacing: 1.2px; text-transform: uppercase; color: var(--chalk-dim); margin: 0 0 12px; }
.label--flare { color: var(--flare-glow); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: 1; margin: 0; }
h1 { font-weight: 800; font-size: clamp(64px, 17vw, 168px); letter-spacing: .01em; }
h2 { font-weight: 800; font-size: clamp(30px, 6vw, 40px); }
h3 { font-weight: 700; font-size: 24px; }
p { margin: 0 0 14px; }
.dim { color: var(--chalk-dim); }

/* Hero */
.hero { padding: clamp(32px, 8vw, 72px) 0 0; overflow: hidden; }
.hero__tag { font: 700 clamp(20px, 4.4vw, 30px)/1.1 var(--display); text-transform: uppercase; letter-spacing: .08em; color: var(--chalk-dim); margin: 14px 0 22px; }
.hero__tag b { color: var(--flare); font-weight: 800; }
.hero__lead { max-width: 560px; font-size: 17px; color: var(--chalk-dim); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1px solid rgba(242, 241, 234, .24); border-radius: var(--r-btn);
  font: 800 18px/1 var(--display); letter-spacing: .8px; text-transform: uppercase; color: var(--chalk); text-decoration: none;
}
.chip--soon { color: var(--chalk-dim); border-style: dashed; }
.pitch { position: relative; margin: 40px auto 0; max-width: 900px; height: clamp(150px, 30vw, 260px); perspective: 700px; }
.pitch svg { position: absolute; left: 50%; bottom: -30%; width: 120%; transform: translateX(-50%) rotateX(58deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 35%, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 35%, #000 75%, transparent 100%); }
.pitch__glow {
  position: absolute; left: 50%; top: 18%; width: 14px; height: 14px; border-radius: 50%; transform: translateX(-50%);
  background: var(--flare); box-shadow: 0 0 22px 8px rgba(255, 77, 46, .5), 0 0 90px 40px rgba(255, 122, 69, .14);
  animation: flicker 3.2s ease-in-out infinite;
}
@keyframes flicker { 0%, 100% { opacity: 1; } 45% { opacity: .82; } 60% { opacity: .95; } }

/* Sections */
.section { padding: clamp(48px, 9vw, 88px) 0 0; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 20px 18px;
  box-shadow: inset 0 1px 0 rgba(242, 241, 234, .06);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--chalk-dim); font-size: 15px; margin: 0; }
.card__no { font: 800 15px/1 var(--display); color: var(--muted); letter-spacing: .1em; margin-bottom: 18px; display: block; }
.fair { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding: 0; list-style: none; }
.fair li { border: 1px solid var(--line); border-radius: var(--r-chip); padding: 8px 14px; font: 650 14px/1.3 var(--ui); background: var(--surface); }
.fair li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--positive); margin-right: 9px; vertical-align: 2px; }

/* Long-form documents */
.doc { padding: clamp(28px, 6vw, 56px) 0 0; }
.doc h1 { font-size: clamp(44px, 11vw, 72px); margin-bottom: 10px; }
.doc h2 { font-size: clamp(26px, 5.5vw, 32px); margin: 44px 0 14px; padding-top: 22px; border-top: 1px solid var(--line); }
.doc h3 { font-size: 22px; margin: 30px 0 10px; }
.doc ul { padding-left: 20px; margin: 0 0 14px; }
.doc li { margin: 4px 0; }
.doc code { font: 600 .92em/1 ui-monospace, Menlo, monospace; background: var(--surface-hi); padding: 2px 6px; border-radius: 6px; }
.doc strong { color: var(--chalk); font-weight: 650; }
.doc p, .doc li { color: #D9DCD6; }
.table { width: 100%; overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: 14px; }
.table table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.table th, .table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table th { font: 700 12px/1.4 var(--ui); letter-spacing: 1.2px; text-transform: uppercase; color: var(--chalk-dim); background: var(--surface); }
.table tr:last-child td { border-bottom: 0; }
.updated { color: var(--muted); font-size: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin: 10px 0; }
summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 18px; font-weight: 650; position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 800 22px/1 var(--display); color: var(--flare-glow); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 18px 14px; color: var(--chalk-dim); }
.callout { border: 1px solid rgba(255, 77, 46, .35); background: linear-gradient(180deg, rgba(255, 77, 46, .08), transparent); border-radius: var(--r-card); padding: 20px; margin: 18px 0; }
.callout h3 { margin-bottom: 10px; }
ol.steps { padding-left: 22px; margin: 0 0 12px; }
ol.steps li { margin: 6px 0; }

/* Footer */
.foot { margin-top: clamp(56px, 10vw, 96px); border-top: 1px solid var(--line); padding: 26px 0 36px; color: var(--muted); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--chalk-dim); text-decoration: none; }
.foot a:hover { color: var(--chalk); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pitch__glow { animation: none; }
}
