/* Pot web tasarım sistemi: docs/design/tokens.json karşılığı.
   Her sayfa önce bu dosyayı yükler. Sayfaya özel stil ayrı dosyada. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/Archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("/assets/fonts/Onest.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Nötrler */
  --murekkep: #12122b;
  --murekkep-yuzey: #1f2044;
  --porselen: #fbfcff;
  --sis: #e9edf8;
  --metin-ikincil: #4a4b6a;
  --metin-ikincil-koyu: #b9beda;
  --kenar-acik: #6e7191;
  --kenar-koyu: #8488ac;

  /* Takımlar: base / on / level / edge / tint */
  --fincan: #2340f0; --fincan-on: #fbfcff; --fincan-level: #1a2fc0; --fincan-edge: #1527a6; --fincan-tint: #dfe4ff;
  --surahi: #2ed3be; --surahi-on: #12122b; --surahi-level: #16ae9b; --surahi-edge: #149a89; --surahi-tint: #d3f6f0;
  --guvec: #f2502e;  --guvec-on: #12122b;  --guvec-level: #ff7a5c;  --guvec-edge: #bc3515;  --guvec-tint: #ffe0d8;
  --cezve: #ffd028;  --cezve-on: #12122b;  --cezve-level: #e8b400;  --cezve-edge: #d19f00;  --cezve-tint: #fff2bf;

  /* Tema (açık) */
  --bg: var(--porselen);
  --surface: var(--sis);
  --text: var(--murekkep);
  --text-2: var(--metin-ikincil);
  --border: var(--kenar-acik);
  --action: var(--fincan);
  --on-action: var(--porselen);
  --action-edge: var(--fincan-edge);

  /* Yazı */
  --f-display: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-text: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Boşluk (dp → px) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s14: 56px; --s20: 80px;
  --kenar: clamp(20px, 5vw, 56px);
  --icerik: 1200px;

  /* Köşe */
  --r-kucuk: 12px; --r-orta: 20px; --r-buyuk: 28px; --r-levha: 36px; --r-tam: 999px;

  /* Gölge */
  --levha-golge: 0 2px 6px rgb(18 18 43 / 0.1), 0 16px 40px rgb(18 18 43 / 0.22);

  /* Hareket: yayların CSS yaklaşımı (linear() eğrileri) */
  --e-giris: cubic-bezier(0.16, 1, 0.3, 1);
  --e-cikis: cubic-bezier(0.7, 0, 0.84, 0);
  /* sicra: 1/420/18 — hafif taşmalı */
  --e-sicra: linear(0, 0.2 6%, 0.62 13%, 0.95 20%, 1.1 27%, 1.13 32%, 1.08 40%, 0.99 50%, 0.97 57%, 1 70%, 1.005 80%, 1);
  /* otur: 1/320/28 — taşmasız */
  --e-otur: linear(0, 0.16 8%, 0.5 20%, 0.78 33%, 0.92 46%, 0.98 62%, 1);
  /* fay: 1/700/22 — kısa, sert taşma */
  --e-fay: linear(0, 0.35 5%, 0.85 11%, 1.08 17%, 1.1 21%, 1.02 30%, 0.99 38%, 1);
  /* ekran: 1/220/26 */
  --e-ekran: linear(0, 0.12 8%, 0.42 20%, 0.7 33%, 0.88 47%, 0.97 63%, 1.005 78%, 1);
  --d-anlik: 80ms; --d-hizli: 140ms; --d-orta: 240ms; --d-uzun: 420ms;
  --d-sicra: 691ms; --d-otur: 444ms; --d-fay: 565ms; --d-ekran: 527ms;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--murekkep);
    --surface: var(--murekkep-yuzey);
    --text: var(--porselen);
    --text-2: var(--metin-ikincil-koyu);
    --border: var(--kenar-koyu);
    --action: var(--cezve);
    --on-action: var(--murekkep);
    --action-edge: var(--cezve-edge);
  }
}

/* Takım kapsamı: data-team="fincan" vb. → --t-* değişkenleri */
[data-team="fincan"] { --t: var(--fincan); --t-on: var(--fincan-on); --t-level: var(--fincan-level); --t-edge: var(--fincan-edge); --t-tint: var(--fincan-tint); }
[data-team="surahi"] { --t: var(--surahi); --t-on: var(--surahi-on); --t-level: var(--surahi-level); --t-edge: var(--surahi-edge); --t-tint: var(--surahi-tint); }
[data-team="guvec"]  { --t: var(--guvec);  --t-on: var(--guvec-on);  --t-level: var(--guvec-level);  --t-edge: var(--guvec-edge);  --t-tint: var(--guvec-tint); }
[data-team="cezve"]  { --t: var(--cezve);  --t-on: var(--cezve-on);  --t-level: var(--cezve-level);  --t-edge: var(--cezve-edge);  --t-tint: var(--cezve-tint); }
[data-team] { background-color: var(--t); color: var(--t-on); }

/* ---------- Sıfırlama ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
[hidden] { display: none !important; }

/* ---------- Odak halkası: 3 + 3 çift ton ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--murekkep);
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--porselen);
  border-radius: 6px;
}

/* ---------- Yardımcılar ---------- */
.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: var(--s4); top: -100px; z-index: 100;
  background: var(--murekkep); color: var(--porselen); padding: var(--s3) var(--s4);
  border-radius: var(--r-kucuk); font-weight: 700; text-decoration: none;
}
.atla:focus-visible { top: var(--s4); }
.kap-ic { width: min(100% - 2 * var(--kenar), var(--icerik)); margin-inline: auto; }
.tn { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Yazı rolleri ---------- */
.t-afis    { font-family: var(--f-display); font-weight: 900; font-stretch: 110%; font-size: clamp(44px, 8vw, 112px); line-height: 0.96; letter-spacing: -0.02em; }
.t-baslik  { font-family: var(--f-display); font-weight: 900; font-stretch: 108%; font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; letter-spacing: -0.01em; }
.t-alt     { font-family: var(--f-display); font-weight: 800; font-stretch: 104%; font-size: 22px; line-height: 1.18; }
.t-govde   { font-family: var(--f-text); font-weight: 500; font-size: 17px; line-height: 1.45; }
.t-buyuk   { font-family: var(--f-text); font-weight: 500; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; }
.t-etiket  { font-family: var(--f-text); font-weight: 650; font-size: 15px; line-height: 1.35; }
.t-not     { font-family: var(--f-text); font-weight: 600; font-size: 13px; line-height: 1.4; letter-spacing: 0.005em; }
.ikincil   { color: var(--text-2); }

/* ---------- Düğme: seramik kalınlığı ---------- */
.dugme {
  --b: var(--action); --b-on: var(--on-action); --b-edge: var(--action-edge);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 56px; padding: 14px 26px;
  border: 0; border-radius: var(--r-buyuk);
  background: var(--b); color: var(--b-on);
  font-family: var(--f-display); font-weight: 800; font-stretch: 104%; font-size: 20px; line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 6px 0 var(--b-edge);
  transform: translateY(0);
  transition: transform var(--d-otur) var(--e-otur), box-shadow var(--d-otur) var(--e-otur), border-radius var(--d-otur) var(--e-otur);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.dugme:active { transform: translateY(5px) scale(0.98); box-shadow: 0 1px 0 var(--b-edge); border-radius: 18px; transition-duration: var(--d-anlik); }
.dugme svg { width: 22px; height: 22px; flex: none; }
.dugme[data-team] { --b: var(--t); --b-on: var(--t-on); --b-edge: var(--t-edge); }
.dugme--acik { --b: var(--porselen); --b-on: var(--murekkep); --b-edge: var(--kenar-acik); }
.dugme--koyu { --b: var(--murekkep); --b-on: var(--porselen); --b-edge: #000; }
.dugme--cizgi { background: transparent; color: currentColor; box-shadow: inset 0 0 0 2px currentColor; }
.dugme--cizgi:active { box-shadow: inset 0 0 0 2px currentColor; transform: scale(0.97); }
.dugme[aria-disabled="true"], .dugme:disabled { opacity: 0.55; cursor: not-allowed; }

/* "Yakında" mağaza rozeti */
.magaza {
  display: inline-flex; align-items: center; gap: var(--s3);
  min-height: 56px; padding: 10px 18px 10px 14px;
  border-radius: var(--r-orta);
  background: var(--murekkep); color: var(--porselen);
  box-shadow: inset 0 0 0 2px var(--kenar-koyu);
  text-decoration: none; line-height: 1.1;
}
.magaza svg { width: 26px; height: 26px; flex: none; }
.magaza small { display: block; font-size: 12px; font-weight: 600; opacity: 0.85; }
.magaza b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 18px; }
.magaza .rozet-yakinda {
  margin-left: var(--s2); padding: 3px 8px; border-radius: var(--r-tam);
  background: var(--cezve); color: var(--murekkep); font-size: 12px; font-weight: 800; font-family: var(--f-text);
}

/* ---------- Çatlak bölücü ----------
   tokens.json crack.points: 0,.64 .08,.09 .15,.82 .27,.27 .36,1 .49,.36 .58,.73 .71,0 .8,.91 .91,.32 1,.68
   Kullanım: bir bölümün en üstüne <div class="catlak" aria-hidden="true"></div> koy; bu öğe
   kendi bölümünün rengiyle (currentColor değil, --catlak-renk) yukarı doğru dişli bir kenar çizer. */
.catlak {
  --catlak-h: clamp(22px, 4vw, 64px);
  display: block; height: var(--catlak-h); margin-top: calc(-1 * var(--catlak-h) + 1px);
  position: relative; z-index: 1;
  background: var(--catlak-renk, var(--t, var(--bg)));
  clip-path: polygon(0% 64%, 8% 9%, 15% 82%, 27% 27%, 36% 100%, 49% 36%, 58% 73%, 71% 0%, 80% 91%, 91% 32%, 100% 68%, 100% 100%, 0% 100%);
}
.catlak--ters { transform: scaleX(-1); }

/* ---------- Ortak başlık ---------- */
.ust {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 30%, transparent);
}
.ust__ic { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); min-height: 64px; }
.logo { display: inline-flex; align-items: center; min-height: 48px; color: var(--text); text-decoration: none; }
.logo svg { height: 30px; width: auto; fill: currentColor; }
.logo .logo-o1, .alt__logo .logo-o1 { fill: var(--fincan); }
@media (prefers-color-scheme: dark) { .logo .logo-o1 { fill: var(--cezve); } }
.ust__nav { display: flex; align-items: center; gap: var(--s1); }
.ust__nav a:not(.dugme) {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 var(--s3);
  border-radius: var(--r-kucuk); text-decoration: none; font-weight: 650; font-size: 15px;
}
.ust__nav a:not(.dugme):hover { background: var(--surface); }
.ust__nav a[aria-current="page"]:not(.dugme) { text-decoration: underline; text-decoration-thickness: 3px; }
.ust__nav .dugme { min-height: 48px; padding: 8px 18px; font-size: 17px; box-shadow: 0 4px 0 var(--b-edge); margin-left: var(--s2); }
@media (max-width: 640px) { .ust__nav a.gizle-mobil:not(.dugme) { display: none; } }
.logo { flex: none; }

/* ---------- Ortak altbilgi ---------- */
.alt { background: var(--murekkep); color: var(--porselen); padding: var(--s14) 0 var(--s10); }
.alt a { color: var(--porselen); }
.alt__ic { display: grid; gap: var(--s8); grid-template-columns: 1.4fr 1fr 1fr; }
.alt__ic h2 { font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: 0.02em; color: var(--metin-ikincil-koyu); margin-bottom: var(--s3); }
.alt__ic ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.alt__ic ul a { display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; font-weight: 600; }
.alt__ic ul a:hover { text-decoration: underline; }
.alt__logo { display: inline-flex; align-items: center; min-height: 48px; }
.alt__logo svg { height: 40px; width: auto; fill: var(--porselen); }
.alt__logo .logo-o1 { fill: var(--cezve); }
.alt__marka p { margin-top: var(--s3); color: var(--metin-ikincil-koyu); max-width: 34ch; }
.alt__alt { margin-top: var(--s10); padding-top: var(--s5); border-top: 1px solid var(--murekkep-yuzey); color: var(--metin-ikincil-koyu); font-size: 13px; font-weight: 600; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s6); justify-content: space-between; }
@media (max-width: 760px) { .alt__ic { grid-template-columns: 1fr 1fr; } .alt__marka { grid-column: 1 / -1; } }

/* ---------- Azaltılmış hareket: tasarım §5 ----------
   Yer değiştirme/ölçek/dönme kalkar; durum değişimi 140 ms saydamlık. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 140ms !important;
    transition-property: opacity, background-color, color !important;
    scroll-behavior: auto !important;
  }
  .dugme:active { transform: none; }
}
