/* ============================================================
   Goathletic — base.css
   Reset, tasarım token'ları, tipografi ve paylaşılan bileşenler.
   Tüm sayfalarda yüklenir.
   ============================================================ */

/* ── Reset ──────────────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img,
video,
svg,
iframe {
  max-width: 100%;
}

/* ── Design tokens ──────────────────────────────────────── */
:root {
  /* renk */
  --accent:          #ff6b00;
  --accent-hover:    #ff8c33;
  --accent-dim:      rgba(255, 107, 0, 0.15);
  --accent-border:   rgba(255, 107, 0, 0.45);
  --accent-glow:     rgba(255, 107, 0, 0.12);

  --bg:              #000;
  --text:            #fff;
  --text-muted:      rgba(255, 255, 255, 0.72);
  --text-soft:       rgba(255, 255, 255, 0.52);
  --text-faint:      rgba(255, 255, 255, 0.32);

  --line:            rgba(255, 255, 255, 0.07);
  --line-strong:     rgba(255, 255, 255, 0.13);

  /* cam (glassmorphism) yüzey */
  --glass-bg:        rgba(0, 0, 0, 0.62);
  --glass-bg-hover:  rgba(0, 0, 0, 0.72);
  --glass-blur:      blur(18px) saturate(140%);
  --shadow-card:     0 8px 40px rgba(0, 0, 0, 0.55);
  --shadow-card-hov: 0 12px 50px rgba(0, 0, 0, 0.65), 0 0 30px rgba(255, 107, 0, 0.12);

  /* hareket */
  --ease:            cubic-bezier(0.22, 1, 0.36, 1);

  /* tipografi */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* ölçü */
  --wrap-wide:  1300px;
  --wrap:       1100px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Erişilebilirlik ────────────────────────────────────── */

/* klavye ile gezinenler için görünür odak halkası */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ekran okuyucuya özel metin */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* içeriğe atla bağlantısı */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 999;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 8px 8px;
  background: var(--accent);
  color: #000;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── Tipografi yardımcıları ─────────────────────────────── */
.eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* iki yanında ince çizgi olan varyant */
.eyebrow--lines {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}
.eyebrow--lines::before,
.eyebrow--lines::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}

/* bölüm başlığı altındaki turuncu vurgu çizgisi */
.section-accent-line {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 2rem;
}

.section-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.section-heading {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.4rem;
}
.section-heading span { color: var(--accent); }

.section-divider {
  width: 36px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 1.4rem;
}

/* ── Cam kart (glassmorphism) ───────────────────────────── */
.glass-card {
  position: relative;
  overflow: hidden;
  background: var(--glass-bg);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-card);
}
/* üst kenardaki parlaklık çizgisi */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}

/* ── Buton ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2.2rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.22s, box-shadow 0.22s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(255, 107, 0, 0.55), 0 10px 28px rgba(255, 107, 0, 0.28);
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.22s;
}
.btn-primary:hover .btn-arrow { transform: translateX(4px); }

/* ── Scroll reveal ──────────────────────────────────────── */
.sr {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   0.72s var(--ease),
    transform 0.72s var(--ease);
}
.sr.sr-in {
  opacity: 1;
  transform: translateY(0);
}
.sr-d1 { transition-delay: 0.12s; }
.sr-d2 { transition-delay: 0.24s; }

/* ── Hareket azaltma tercihi ────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* reveal edilecek içerik gizli kalmasın */
  .sr { opacity: 1; transform: none; }
}
