/* ==========================================================================
   Muhammet Sevinç — temel stil katmanı (tasarım değişkenleri + bileşenler)
   Koyu zemin, sıcak turuncu ve güçlü spor editoryali
   ========================================================================== */

/* ---------- Yerel fontlar (Google Fonts'tan alındı; Anton ve Inter, SIL OFL lisanslı) ---------- */
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/anton-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/anton-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: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-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;
}

:root {
  /* Renkler */
  --bg: #0B0B0B;
  --surface: #151514;
  --surface-2: #1D1B19;
  --text: #F2F0EB;
  --muted: #AAA6A0;
  --line: #313030;
  --line-subtle: #262626;
  --line-strong: #3B3939;
  --orange: #FF650A;
  --orange-hover: #FF843B;
  --on-orange: #0B0B0B;
  --wa: #25D366;
  --error: #FF5449;

  /* Yazı tipleri */
  --font-display: "Anton", Impact, "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Yazı ölçeği (mobil → masaüstü) */
  --fs-display-xl: clamp(3.75rem, 7.6vw, 6.75rem);
  --fs-display-lg: clamp(2.5rem, 4.7vw, 4rem);
  --fs-headline:   clamp(1.875rem, 4.2vw, 3rem);
  --fs-title-lg:   clamp(1.5rem, 2.4vw, 1.75rem);
  --fs-title-md:   1.25rem;
  --fs-body-lg:    clamp(1rem, 1.4vw, 1.125rem);
  --fs-body:       1rem;
  --fs-body-sm:    0.875rem;
  --fs-label:      0.875rem;
  --fs-label-sm:   0.75rem;

  /* Boşluk (8px ızgara) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 16px;
  --s-4: 24px;
  --s-5: 32px;
  --s-6: 48px;
  --s-7: 64px;
  --s-8: 96px;
  --section-y: clamp(64px, 9vw, 112px);
  --page-x: 20px;
  --maxw: 1360px;
  --header-h: 76px;

  /* Şekil ve hareket */
  --r-xs: 8px;
  --r-sm: 12px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --t-fast: 150ms;
  --t-med: 220ms;

  color-scheme: dark;
}

@media (min-width: 768px) {
  :root { --page-x: 40px; --header-h: 88px; }
}

/* ---------- Sıfırlama ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--orange); color: var(--on-orange); }

:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ---------- Yerleşim ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--page-x); }
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); border-block: 1px solid var(--line-subtle); }
.skip-link {
  position: absolute; left: var(--s-3); top: -100px; z-index: 100;
  background: var(--orange); color: var(--on-orange); padding: var(--s-2) var(--s-3); border-radius: var(--r-sm);
  font-weight: 600;
}
.skip-link:focus { top: var(--s-3); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Tipografi ---------- */
.display-xl, .display-lg, .headline, .title-lg {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  text-wrap: balance;
}
/* Satır aralıkları Türkçe işaretlere (İ noktası, Ü/Ö, Ş/Ç çengeli) yer bırakacak kadar açık:
   daha sıkı değerlerde işaretler komşu satıra giriyor. */
.display-xl { font-size: var(--fs-display-xl); line-height: 1.14; letter-spacing: -0.025em; }
.display-lg { font-size: var(--fs-display-lg); line-height: 1.18; letter-spacing: -0.02em; }
.display-xl, .display-lg { text-transform: none; font-style: italic; }
.display-xl em, .display-lg em { color: var(--orange); font-style: inherit; }
.headline   { font-size: var(--fs-headline);   line-height: 1.12; letter-spacing: 0.015em; }
.title-lg   { font-size: var(--fs-title-lg);   line-height: 1.15; letter-spacing: 0.02em; }
.title-md   { font-size: var(--fs-title-md); font-weight: 600; line-height: 1.4; letter-spacing: -0.01em; }
.body-lg    { font-size: var(--fs-body-lg); line-height: 1.6; }
.body-sm    { font-size: var(--fs-body-sm); line-height: 1.5; }
.muted      { color: var(--muted); }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; flex: none; }
.label { font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.04em; }
.num { font-variant-numeric: tabular-nums; }
.prose { max-width: 62ch; text-wrap: pretty; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 14px 28px;
  font-family: var(--font-body); font-size: var(--fs-label); font-weight: 600;
  letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color var(--t-fast) ease-out, color var(--t-fast) ease-out,
              border-color var(--t-fast) ease-out, transform var(--t-fast) ease-out;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: var(--orange-hover); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { color: var(--orange); border-color: var(--orange); }
.btn--block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-label); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--orange); transition: color var(--t-fast) ease-out;
}
.link-arrow:hover { color: var(--text); }

/* ---------- Form alanları ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field__label { font-size: var(--fs-label); font-weight: 600; color: var(--text); }
.field__hint { font-size: var(--fs-body-sm); color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 16px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  font-size: 16px; line-height: 1.4; /* 16px: iOS'ta yakınlaştırmayı engeller */
  transition: border-color var(--t-fast) ease-out, box-shadow var(--t-fast) ease-out;
}
.textarea { min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #6E6E6E; }
.input:hover, .select:hover, .textarea:hover { border-color: #555252; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange);
}
.input:user-invalid, .select:user-invalid, .textarea:user-invalid { border-color: var(--error); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23FF5A1F' stroke-width='2.5' stroke-linecap='square'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.checkbox { display: flex; align-items: flex-start; gap: var(--s-3); cursor: pointer; }
.checkbox input {
  width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--orange); cursor: pointer;
}

/* ---------- Kartlar ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.badge {
  display: inline-block; align-self: flex-start;
  background: var(--orange); color: var(--on-orange);
  font-size: var(--fs-label-sm); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-xs); white-space: nowrap;
}
