/* AKM — ortak tasarım sistemi
   Fikir: gece seansı. Sıcak siyah zemin, krem yazı, tek bir "kor" vurgu rengi,
   film greni ve arşiv kataloğu dili (№, damga, bilet koçanı). */

:root {
  --bg: #0b0a09;
  --bg-2: #12100e;
  --surface: #1a1714;
  --surface-2: #231f1b;
  --line: rgba(242, 235, 224, 0.1);
  --line-strong: rgba(242, 235, 224, 0.22);
  --text: #f2ebe0;
  --muted: #a39a8c;
  --faint: #6d655a;
  --accent: #ff6a3d;
  --accent-soft: rgba(255, 106, 61, 0.14);
  --gold: #f4c27a;
  --paper: #f3ead9;
  --ink: #241d16;

  --ok: #7ed6a5;
  --warn: #f4c27a;
  --bad: #ff7d7d;

  --font-display: 'Fraunces', 'Times New Roman', serif;
  --font-ui: 'Instrument Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --font-hand: 'Caveat', 'Segoe Print', cursive;

  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Film greni — tüm sayfanın üzerinde, tıklamaları engellemez */
body::after {
  content: '';
  position: fixed;
  inset: -50%;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Tipografi ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--accent); }
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: 'opsz' 144;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin: 0;
}
.display em { font-style: italic; color: var(--accent); }
.lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 56ch; }
.mono { font-family: var(--font-mono); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 10, 9, 0.78);
  backdrop-filter: blur(14px) saturate(1.3);
  border-color: var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-style: italic; font-size: 15px; letter-spacing: 0;
  position: relative;
  transition: transform 0.6s var(--ease);
}
.brand__mark::after {
  content: ''; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.brand:hover .brand__mark { transform: rotate(-200deg); }
.brand__text b { font-weight: 600; color: var(--text); }
.brand__text span { color: var(--faint); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(242, 235, 224, 0.05); }
.nav a[aria-current='page'] { color: var(--text); }
.nav a[aria-current='page']::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--accent); transform: translateX(-50%);
}
.nav__num { font-family: var(--font-mono); font-size: 10px; color: var(--faint); margin-right: 6px; }

.menu-btn { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); position: relative; }
.menu-btn span, .menu-btn span::before {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; background: var(--text);
  transform: translate(-50%, -3px); transition: transform 0.3s var(--ease);
}
.menu-btn span::before { content: ''; transform: translate(-50%, 5px); }
.menu-open .menu-btn span { transform: translate(-50%, 0) rotate(45deg); }
.menu-open .menu-btn span::before { transform: translate(-50%, 0) rotate(-90deg); }

@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 10, 9, 0.97); backdrop-filter: blur(14px);
    padding: 8px var(--gutter) 28px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-110%); transition: transform 0.45s var(--ease);
    z-index: -1;
  }
  .menu-open .nav { transform: translateY(0); }
  .nav a { font-family: var(--font-display); font-size: 30px; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current='page']::after { left: auto; right: 0; bottom: 50%; width: 8px; height: 8px; }
  .site-header.menu-open { background: rgba(11, 10, 9, 0.97); }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 120px; border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); }
.site-footer__big {
  font-family: var(--font-display); font-size: clamp(56px, 13vw, 200px); line-height: 0.8;
  letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px var(--line-strong);
  user-select: none; margin: 0 0 32px;
}
.site-footer__row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; font-size: 13px; }
.site-footer__row nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--text); }

/* ---------- Ortak bileşenler ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  border: 1px solid var(--line-strong);
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.btn:hover { border-color: var(--text); transform: translateY(-1px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #1a0d07; }
.btn--accent:hover { background: var(--text); border-color: var(--text); }
.btn svg { width: 16px; height: 16px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; border: 1px solid var(--line-strong); color: var(--muted);
  white-space: nowrap;
}

.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 13px; height: 13px; }

.empty, .error-box {
  padding: 64px 24px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line-strong); border-radius: var(--radius-lg);
}
.empty b, .error-box b { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 400; color: var(--text); margin-bottom: 6px; }

.skeleton {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.6s linear infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -150% 0; } }

/* Kaydırınca yumuşak beliren öğeler */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Sayfa geçişleri (destekleyen tarayıcılarda) */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
