/* gif aracı — tasarım: docs/06-tasarim.md
   Tek vurgu rengi (mercan), cam üst çubuk ve yüzen cam eylem çubuğu, yaylanan hareket. */

/* ---------- Yazı tipi (yalnız başlık; sitenin kendi sunucusundan) ---------- */
@font-face {
  font-family: 'Bricolage';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/bricolage-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Bricolage';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/bricolage-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Renk belirteçleri ---------- */
:root {
  color-scheme: light;
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --glass: rgb(255 255 255 / 0.72);
  --glass-line: rgb(23 24 26 / 0.08);
  --ink: #17181A;
  --muted: #5F6368;
  --line: #E6E6E1;
  --accent: #FF6A47;
  --on-accent: #17181A;
  --accent-text: #C2381C;
  --accent-soft: rgb(255 106 71 / 0.14);
  --danger: #B3261E;
  --danger-soft: rgb(179 38 30 / 0.10);
  --scrim: rgb(15 15 16 / 0.55);

  --font-baslik: 'Bricolage', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-govde: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', system-ui, sans-serif;

  /* Yay eğrisi (hafif aşma ile oturur) ve süreler: docs/06 "Hareket" */
  --yay: linear(0, 0.02 1.2%, 0.09 3%, 0.33 7.6%, 0.62 13%, 0.83 18.6%, 0.95 24%, 1.02 30%, 1.045 36%, 1.04 43%, 1.02 52%, 1.005 64%, 0.999 80%, 1);
  --yumusak: cubic-bezier(0.2, 0, 0, 1);
  --kisa: 200ms;
  --orta: 320ms;

  --r-kart: 26px;
  --r-kutu: 20px;
  --r-kare: 6px;
  --ust-yukseklik: 60px;
  --eylem-yukseklik: 72px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0F0F10;
    --surface: #1A1A1C;
    --glass: rgb(26 26 28 / 0.70);
    --glass-line: rgb(237 237 234 / 0.08);
    --ink: #EDEDEA;
    --muted: #A0A3A8;
    --line: #2A2A2D;
    --accent-text: #FF8A6B;
    --accent-soft: rgb(255 106 71 / 0.16);
    --danger: #F2B8B5;
    --danger-soft: rgb(242 184 181 / 0.12);
    --scrim: rgb(0 0 0 / 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0F0F10;
  --surface: #1A1A1C;
  --glass: rgb(26 26 28 / 0.70);
  --glass-line: rgb(237 237 234 / 0.08);
  --ink: #EDEDEA;
  --muted: #A0A3A8;
  --line: #2A2A2D;
  --accent-text: #FF8A6B;
  --accent-soft: rgb(255 106 71 / 0.16);
  --danger: #F2B8B5;
  --danger-soft: rgb(242 184 181 / 0.12);
  --scrim: rgb(0 0 0 / 0.6);
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-govde);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a { color: var(--accent-text); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.atla {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--accent); color: var(--on-accent);
  padding: 12px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.atla:focus { top: 12px; }

/* ---------- Cam yüzey (yalnız üst çubuk ve eylem çubuğu) ---------- */
.cam {
  background: var(--glass);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid var(--glass-line);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .cam { background: var(--surface); }
}

/* ---------- Üst çubuk ---------- */
.ust-cubuk {
  position: sticky; top: 0; z-index: 20;
  border-width: 0 0 1px;
  padding-top: env(safe-area-inset-top);
}
.ust-ic {
  max-width: 560px; margin: 0 auto;
  height: var(--ust-yukseklik);
  padding: 0 max(16px, env(safe-area-inset-right)) 0 max(20px, env(safe-area-inset-left));
  display: flex; align-items: center; justify-content: space-between;
}
.ad {
  font: 800 19px/1 var(--font-baslik);
  letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none;
}
.tema-dugme {
  width: 48px; height: 48px; border-radius: 999px;
  display: grid; place-items: center;
  background: transparent; border: 0; color: var(--ink);
  transition: transform var(--orta) var(--yay), background-color var(--kisa);
}
.tema-dugme:hover { background: var(--accent-soft); }
.tema-dugme:active { transform: scale(0.9) rotate(-20deg); }

/* ---------- Sayfa düzeni ---------- */
main {
  max-width: 560px; margin: 0 auto;
  padding: 24px max(20px, env(safe-area-inset-right)) 32px max(20px, env(safe-area-inset-left));
}
.ekran { animation: gir var(--orta) var(--yay) both; }

h1 {
  font: 800 clamp(2.5rem, 7.5vw + 0.9rem, 3.6rem)/1.0 var(--font-baslik);
  letter-spacing: -0.035em;
  margin: 12px 0 14px;
  text-wrap: balance;
}
.alt-baslik {
  font-size: 17px; color: var(--muted);
  margin: 0 0 28px;
}
.bolum-baslik {
  font: 700 22px/1.2 var(--font-baslik);
  letter-spacing: -0.02em;
  margin: 24px 0 14px;
}

/* ---------- Giriş kutusu ---------- */
.form { margin: 0; }
.etiket {
  display: block;
  font-size: 14px; font-weight: 600; color: var(--muted);
  margin: 0 0 8px 4px;
}
.kutu {
  display: flex; align-items: center; gap: 8px;
  min-height: 64px;
  padding: 6px 8px 6px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-kutu);
  transition: border-color var(--kisa), box-shadow var(--kisa);
}
.kutu:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.kutu input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 17px; /* 16 px altı iPhone'da yakınlaştırır */
  padding: 12px 0;
}
.kutu input::placeholder { color: var(--muted); opacity: 0.8; }
.kutu input:focus-visible { outline: none; }
.yapistir {
  flex: none;
  min-height: 48px; padding: 0 18px;
  border: 0; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-text);
  font-weight: 700; font-size: 15px;
  transition: transform var(--orta) var(--yay), background-color var(--kisa);
}
.yapistir:active { transform: scale(0.94); }
.kutu.salla { animation: salla 360ms var(--yumusak); }

/* ---------- Uyarı hapı ---------- */
.uyari {
  display: flex; align-items: flex-start; gap: 10px;
  width: fit-content; max-width: 100%;
  margin: 12px 0 0;
  padding: 10px 16px 10px 12px;
  border-radius: 20px;
  background: var(--danger-soft); color: var(--danger);
  font-size: 15px; line-height: 1.4;
  animation: gir var(--orta) var(--yay) both;
}
.uyari::before {
  content: '';
  flex: none; width: 20px; height: 20px; margin-top: 0.5px;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 2 1 21h22L12 2zm0 6 1 0 0 6h-2V8zm-1 8h2v2h-2z%22/%3E%3C/svg%3E') center / contain no-repeat;
  mask: url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22%3E%3Cpath d=%22M12 2 1 21h22L12 2zm0 6 1 0 0 6h-2V8zm-1 8h2v2h-2z%22/%3E%3C/svg%3E') center / contain no-repeat;
}
.uyari b { font-weight: 700; display: block; }
.uyari span { color: var(--ink); opacity: 0.85; }
.not {
  margin: 12px 0 0; padding: 12px 16px;
  border-radius: 20px;
  background: var(--accent-soft); color: var(--ink);
  font-size: 15px;
}

/* ---------- Adımlar ---------- */
.adimlar {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  color: var(--muted); font-size: 15px; font-weight: 600;
}
.adimlar li { display: flex; align-items: center; gap: 8px; }
.adim-no {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line);
  color: var(--ink); font-size: 13px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- İskelet (bekleme) ---------- */
.iskelet {
  margin-top: 28px; padding: 18px;
  border-radius: var(--r-kart); background: var(--surface);
  display: grid; gap: 10px;
  animation: gir var(--orta) var(--yay) both;
}
.iskelet-satir, .iskelet-kare {
  border-radius: 8px; background: var(--line);
  animation: nefes 1.4s ease-in-out infinite alternate;
}
.iskelet-satir { height: 14px; }
.iskelet-satir.kisa { width: 40%; }
.iskelet-kare { height: 160px; border-radius: 18px; }

/* ---------- Geri düğmesi ---------- */
.geri {
  width: 48px; height: 48px; margin: -8px 0 4px -12px;
  display: grid; place-items: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--ink);
  transition: transform var(--orta) var(--yay), background-color var(--kisa);
}
.geri:hover { background: var(--accent-soft); }
.geri:active { transform: scale(0.9); }

/* ---------- Tweet kartı ---------- */
.tweet-kart {
  padding: 16px 18px;
  border-radius: var(--r-kart);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tweet-kart .kim { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.tweet-kart .kullanici { font-weight: 700; }
.tweet-kart .isim { color: var(--muted); font-size: 14px; }
.tweet-kart .metin {
  margin: 4px 0 0; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; overflow-wrap: anywhere;
}
.tweet-kart.kucuk { padding: 10px 16px; border-radius: 18px; margin-bottom: 14px; }
.tweet-kart.kucuk .metin { -webkit-line-clamp: 1; line-clamp: 1; font-size: 14px; color: var(--muted); }

/* ---------- Medya seçimi ---------- */
.medya-liste {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.medya-kart {
  position: relative; overflow: hidden;
  aspect-ratio: 1; padding: 0;
  border: 0; border-radius: var(--r-kart);
  background: var(--line);
  transition: transform var(--orta) var(--yay);
  animation: gir var(--orta) var(--yay) both;
}
.medya-kart img { width: 100%; height: 100%; object-fit: cover; }
.medya-kart:active { transform: scale(0.95); }
.hap {
  position: absolute; left: 10px; bottom: 10px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.hap small { font-weight: 600; letter-spacing: 0; margin-left: 4px; }

/* ---------- Önizleme ---------- */
.onizleme {
  position: relative; overflow: hidden;
  border-radius: var(--r-kart);
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: 52dvh;
  margin: 0 auto;
}
.onizleme video, .onizleme-kapak {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: contain;
}
.onizleme-kapak { filter: blur(2px) brightness(0.7); transform: scale(1.04); }
.indirme {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px;
  background: linear-gradient(transparent, var(--scrim));
  color: #fff;
}
.indirme-metin { margin: 0 0 8px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cubuk { height: 6px; border-radius: 999px; background: rgb(255 255 255 / 0.25); overflow: hidden; }
.cubuk span {
  display: block; height: 100%; width: 100%;
  background: var(--accent); border-radius: inherit;
  transform-origin: left; transform: scaleX(0);
  transition: transform 160ms linear;
}

/* ---------- Film şeridi ---------- */
.kirpma { margin-top: 18px; }
.hazirlik-metin {
  margin: 0 0 10px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.serit {
  position: relative;
  height: 60px;
  margin: 0 12px;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.serit-kareler {
  position: absolute; inset: 0;
  display: flex; gap: 3px;
}
.kare {
  flex: 1 1 0; min-width: 0; height: 100%;
  border-radius: var(--r-kare);
  background: var(--line);
  overflow: hidden;
  transition: opacity var(--kisa), filter var(--orta);
}
.kare canvas, .kare img { width: 100%; height: 100%; object-fit: cover; animation: sol var(--orta) ease both; }
.kare.disarida { opacity: 0.35; }
/* Hazırlanırken: pencere içindeki kareler gri başlar, işlendikçe renklenir. */
.serit.hazirlaniyor .kare:not(.disarida) { filter: grayscale(1) brightness(0.8); }
.serit.hazirlaniyor .kare.dolu { filter: none; animation: dol var(--orta) var(--yay); }
.pencere {
  position: absolute; top: -5px; bottom: -5px;
  left: 0; width: 100%;
  border: 3px solid var(--accent);
  border-radius: 12px;
  cursor: grab;
  touch-action: none;
}
.pencere:active { cursor: grabbing; }
.tutamac {
  position: absolute; top: -3px; bottom: -3px; width: 18px;
  background: var(--accent);
  display: grid; place-items: center;
  cursor: ew-resize;
}
.tutamac::before { /* görünür tutamaç çizgisi */
  content: ''; width: 3px; height: 22px; border-radius: 2px; background: var(--on-accent); opacity: 0.55;
}
.tutamac::after { /* büyütülmüş dokunma alanı */
  content: ''; position: absolute; top: -8px; bottom: -8px; left: -14px; right: -14px;
}
.tutamac.sol { left: -15px; border-radius: 10px 0 0 10px; }
.tutamac.sag { right: -15px; border-radius: 0 10px 10px 0; }
.serit.odak .pencere { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 0 6px var(--accent); }
.serit.kilitli .pencere { cursor: default; }
.serit.kilitli .tutamac { display: none; }
.serit.kapali { opacity: 0.5; pointer-events: none; }
.serit-alt {
  position: relative; height: 40px; margin: 10px 12px 0;
  font-variant-numeric: tabular-nums;
}
.pencere-etiket {
  position: absolute; top: 0; left: 0;
  padding: 4px 12px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 14px; white-space: nowrap;
  transform: translateX(-50%);
}
.aralik { position: absolute; right: 0; top: 4px; color: var(--muted); font-size: 14px; }

/* ---------- Metin düğmeleri ---------- */
.metin-dugme {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 16px;
  border: 0; border-radius: 999px; background: transparent;
  color: var(--accent-text); font-weight: 700; font-size: 16px;
  text-decoration: none;
  transition: transform var(--orta) var(--yay), background-color var(--kisa);
}
.metin-dugme:hover { background: var(--accent-soft); }
.metin-dugme:active { transform: scale(0.95); }
.metin-dugme[disabled] { color: var(--muted); cursor: not-allowed; }
#ikinci-yol, .ortala { display: flex; margin: 12px auto 0; }

/* ---------- Sonuç ---------- */
.sonuc {
  border-radius: var(--r-kart); overflow: hidden;
  background: #000;
  margin: 0 auto; width: fit-content; max-width: 100%;
  animation: buyu 420ms var(--yay) both;
}
.sonuc video, .sonuc img { max-height: 52dvh; width: auto; margin: 0 auto; }
.sonuc-bilgi {
  margin: 14px 0 4px; text-align: center;
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.ipucu { margin: 0; text-align: center; color: var(--muted); font-size: 15px; }
.ikincil-satir { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }

/* ---------- Alt bilgi ---------- */
.alt-bilgi {
  max-width: 560px; margin: 0 auto;
  padding: 24px max(20px, env(safe-area-inset-right)) calc(var(--eylem-yukseklik) + 48px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line);
}
.alt-bilgi p { margin: 0 0 6px; }
.hak { margin: 8px 0; }
.hak summary {
  cursor: pointer; font-weight: 700; color: var(--ink);
  min-height: 44px; display: flex; align-items: center;
}
.surum { opacity: 0.7; }

/* ---------- Yüzen cam eylem çubuğu ---------- */
.eylem-cubugu {
  position: fixed; z-index: 30;
  left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  width: min(560px - 24px, 100% - 32px);
  transform: translateX(-50%);
  padding: 8px;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.08);
  transition: transform var(--orta) var(--yay), opacity var(--kisa);
}
.eylem-cubugu.gizli { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.ana-dugme {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 56px;
  border: 0; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 17px; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  transition: transform var(--orta) var(--yay), background-color var(--kisa), color var(--kisa);
  overflow: hidden;
}
.ana-dugme:active:not([disabled]) { transform: scale(0.96); }
.ana-dugme.ikincil {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.ana-dugme[disabled] { cursor: default; }
.ana-dugme[disabled]:not(.ikincil) { background: var(--accent-soft); color: var(--muted); }
.ana-dugme span { display: inline-block; }
.ana-dugme span.degisti { animation: yazi var(--orta) var(--yay) both; }


/* ---------- Son günlerde popüler: bento ızgarası (docs/06, 07) ---------- */
.populer { margin-top: 40px; }
@media (min-width: 720px) {
  /* Izgara 960 px'e kadar genişler; sütunun ortasında kalır. */
  .populer { width: min(960px, calc(100vw - 48px)); position: relative; left: 50%; transform: translateX(-50%); }
}
.bento {
  display: grid; gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 116px;
  grid-auto-flow: dense;
}
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-auto-rows: 150px; gap: 10px; }
}
.karo {
  position: relative; overflow: hidden;
  border-radius: 20px; background: var(--line);
  animation: gir var(--orta) var(--yay) both;
}
.karo.buyuk { grid-column: span 2; grid-row: span 2; }
.karo.genis { grid-column: span 2; }
.karo.uzun { grid-row: span 2; }
.karo-ana {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: 0; border: 0; border-radius: inherit; background: transparent;
  transition: transform var(--orta) var(--yay);
}
.karo-ana:active { transform: scale(0.97); }
.karo img, .karo video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.karo video { opacity: 0; transition: opacity var(--orta) ease; }
.karo.oynuyor video { opacity: 1; }
.karo-kaynak, .karo-bildir {
  position: absolute; z-index: 2;
  background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.karo-kaynak::after, .karo-bildir::after { content: ''; position: absolute; inset: -8px; }
.karo-kaynak {
  left: 8px; bottom: 8px; max-width: calc(100% - 16px);
  display: flex; align-items: center; min-height: 30px; padding: 0 10px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.karo-bildir {
  top: 6px; right: 6px; width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 0; border-radius: 999px; opacity: 0.85;
}
.karo-onay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 8px; text-align: center;
  background: rgb(15 15 16 / 0.72); color: #fff;
  animation: sol var(--kisa) both;
}
.karo-onay p { margin: 0 0 2px; font-weight: 700; font-size: 14px; }
.hap-dugme {
  min-height: 36px; padding: 0 16px;
  border: 0; border-radius: 999px;
  background: rgb(255 255 255 / 0.92); color: #17181A;
  font-weight: 700; font-size: 14px;
  transition: transform var(--orta) var(--yay);
}
.hap-dugme:active { transform: scale(0.95); }
.hap-dugme.vurgu { background: var(--accent); color: var(--on-accent); }
.karo.cikiyor { animation: cik 260ms var(--yumusak) forwards; pointer-events: none; }


/* ---------- Yönetim sayfası (/yonetim/, telefon öncelikli; docs/06) ---------- */
.ad-ek { font: 600 14px/1 var(--font-govde); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
body.yonetim main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.sekmeler {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  position: sticky; top: calc(var(--ust-yukseklik) + 8px); z-index: 10;
}
.sekme {
  flex: 1; min-height: 44px; padding: 0 8px;
  border: 0; border-radius: 999px; background: transparent; color: var(--muted);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: background-color var(--kisa), color var(--kisa);
}
.sekme[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.sekme .sayi { font-weight: 600; opacity: 0.8; }
.yonetim-liste { display: grid; gap: 16px; }
.yonetim-kart {
  border-radius: var(--r-kart); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  animation: gir var(--orta) var(--yay) both;
}
.yonetim-kart.kayiyor { animation: kay 280ms var(--yumusak) forwards; }
.yonetim-medya {
  position: relative; background: #000;
  aspect-ratio: 1; max-height: 56dvh; width: 100%;
}
.yonetim-medya img, .yonetim-medya video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
}
.yonetim-medya video { opacity: 0; transition: opacity var(--orta); }
.yonetim-medya.oynuyor video { opacity: 1; }
.yonetim-bilgi { padding: 12px 16px 0; display: grid; gap: 2px; }
.yonetim-kim { font-weight: 700; color: var(--ink); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.yonetim-sayilar { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.yonetim-eylemler { display: flex; gap: 10px; padding: 12px 16px 16px; }
.yonetim-dugme {
  flex: 1; min-height: 52px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-weight: 800; font-size: 16px;
  transition: transform var(--orta) var(--yay);
}
.yonetim-dugme:active:not([disabled]) { transform: scale(0.96); }
.yonetim-dugme.vurgu { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.yonetim-dugme[disabled] { opacity: 0.5; }
.bos { text-align: center; color: var(--muted); margin: 48px 0; }
.bildirim-cubugu {
  position: fixed; z-index: 30;
  left: 50%; bottom: max(16px, env(safe-area-inset-bottom));
  width: min(560px - 24px, 100% - 32px);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 6px 6px 6px 20px; border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.08);
}
.bildirim-cubugu.gir { animation: yukari var(--orta) var(--yay) both; }

/* ---------- Masaüstü ---------- */
@media (min-width: 720px) {
  main { padding-top: 56px; }
}

/* ---------- Hareketler ---------- */
@keyframes gir { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
@keyframes buyu { from { opacity: 0; transform: scale(0.9); } }
@keyframes yazi { from { opacity: 0; transform: translateY(60%); } }
@keyframes sol { from { opacity: 0; } }
@keyframes dol { from { transform: scaleY(0.8); } }
@keyframes nefes { from { opacity: 1; } to { opacity: 0.55; } }
@keyframes cik { to { opacity: 0; transform: scale(0.9); } }
@keyframes kay { to { opacity: 0; transform: translateX(-40%); } }
@keyframes yukari { from { opacity: 0; transform: translate(-50%, 60%); } }
@keyframes salla {
  20% { transform: translateX(-8px); } 40% { transform: translateX(7px); }
  60% { transform: translateX(-5px); } 80% { transform: translateX(3px); }
}

/* Hareket azaltma: yaylanma ve sallanma kapanır, yalnız solma kalır. */
@media (prefers-reduced-motion: reduce) {
  @keyframes gir { from { opacity: 0; } }
  @keyframes buyu { from { opacity: 0; } }
  @keyframes yazi { from { opacity: 0; } }
  @keyframes dol { from { opacity: 0.6; } }
  @keyframes salla { from { transform: none; } }
  @keyframes nefes { from { opacity: 1; } to { opacity: 1; } }
  @keyframes cik { to { opacity: 0; } }
  @keyframes kay { to { opacity: 0; } }
  @keyframes yukari { from { opacity: 0; } }
  *, *::before, *::after { transition-duration: 1ms !important; }
}

.sure-notu { font-weight: 500; color: var(--muted); }
