/* Atoni web teması.
   Renkler oyunun menü paletinden (MenuChrome.cs) alındı; font oyunun
   kendi Baloo 2'si, Google Fonts'tan değil kendi sunucumuzdan geliyor —
   gizlilik sayfasının ziyaretçi IP'sini üçüncü tarafa göndermesi
   tutarsız olurdu. */

@font-face {
  font-family: "Baloo 2";
  src: url("/baloo2-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0e0817;
  --bg-deep: #070410;
  --ink: #f2f7ff;
  --faint: #9ea8c7;
  --accent: #6bb8ff;
  --accent-deep: #2e6fd6;
  --gold: #ffd159;
  --panel: rgba(18, 20, 38, 0.66);
  --line: rgba(140, 170, 255, 0.14);
  --display: "Baloo 2", "Segoe UI", system-ui, sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg-deep);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Arka plan iki katman: bulutsu lekeleri ve yıldızlar. Ikisi de sabit,
   sayfa kaydırılırken uzayda duruyor hissi veriyor. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(ellipse 70% 55% at 18% 8%, rgba(88, 52, 156, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 50% at 88% 22%, rgba(38, 84, 178, 0.38), transparent 70%),
    radial-gradient(ellipse 90% 60% at 50% 105%, rgba(52, 30, 104, 0.5), transparent 72%),
    linear-gradient(180deg, #150b28 0%, var(--bg) 45%, var(--bg-deep) 100%);
}

body::after {
  background: url("/stars.svg") repeat;
  background-size: 400px 400px;
  opacity: 0.85;
  animation: drift 240s linear infinite;
}

@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 400px 800px; }
}

/* ---------- ortak parçalar ---------- */

a { color: var(--accent); text-decoration-color: rgba(107, 184, 255, 0.4); }
a:hover { color: #a5d4ff; text-decoration-color: currentColor; }

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

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #ffffff 0%, #cfe6ff 45%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Gradyan yazıda text-shadow çalışmaz (dolgu saydam), parıltı
     drop-shadow ile veriliyor. */
  filter: drop-shadow(0 0 22px rgba(107, 184, 255, 0.45));
  margin: 0;
}

/* ---------- ana sayfa ---------- */

.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 40px 24px;
  text-align: center;
}

.hero { display: grid; justify-items: center; gap: 4px; }

.hero-logo {
  position: relative;
  width: min(46vw, 240px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  animation: float 7s ease-in-out infinite;
}

/* Ikonun kendi mavi parıltısını sayfaya taşıyan hale. */
.hero-logo::before {
  content: "";
  position: absolute;
  inset: -22%;
  background: radial-gradient(circle, rgba(107, 184, 255, 0.4) 0%, transparent 66%);
  filter: blur(6px);
  z-index: 0;
}

.hero-logo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(4, 2, 14, 0.75));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.home .wordmark {
  font-size: clamp(3.2rem, 15vw, 6rem);
  line-height: 1;
  margin-top: 18px;
}

.badge {
  margin-top: 26px;
  padding: 11px 26px;
  border: 1px solid rgba(107, 184, 255, 0.35);
  border-radius: 999px;
  background: rgba(107, 184, 255, 0.08);
  box-shadow: 0 0 26px rgba(107, 184, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-family: var(--display);
  font-size: clamp(0.95rem, 3.6vw, 1.2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #dcecff;
  animation: breathe 4.5s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { box-shadow: 0 0 22px rgba(107, 184, 255, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
  50% { box-shadow: 0 0 40px rgba(107, 184, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08); }
}

.home footer {
  position: fixed;
  bottom: 22px;
  left: 0;
  right: 0;
  font-size: 0.85rem;
  color: var(--faint);
}

.home footer a { color: var(--faint); }
.home footer a:hover { color: var(--accent); }

/* ---------- belge sayfaları ---------- */

.doc { padding: 0 20px 80px; }

.doc-head {
  max-width: 780px;
  margin: 0 auto;
  padding: 28px 0 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.doc-head .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}

.doc-head .brand img { width: 38px; height: 38px; }

.doc-head .brand span {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: rgba(10, 12, 26, 0.6);
}

.lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--faint);
  font: inherit;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 7px 15px;
  cursor: pointer;
}

.lang button[aria-pressed="true"] {
  background: rgba(107, 184, 255, 0.16);
  color: var(--ink);
}

.panel {
  max-width: 780px;
  margin: 18px auto 0;
  padding: clamp(24px, 5vw, 46px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 26px 60px rgba(2, 1, 8, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.panel h1 {
  font-family: var(--display);
  font-size: clamp(1.9rem, 6vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 6px;
  letter-spacing: 0.01em;
}

.updated {
  color: var(--faint);
  font-size: 0.9rem;
  margin: 0 0 26px;
}

.panel h2 {
  font-family: var(--display);
  font-size: 1.32rem;
  letter-spacing: 0.01em;
  margin: 38px 0 10px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #dcecff;
}

.panel h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 30px; }

.panel h3 {
  font-family: var(--display);
  font-size: 1.02rem;
  color: var(--accent);
  margin: 22px 0 6px;
  letter-spacing: 0.02em;
}

.panel p { margin: 0 0 14px; color: #dfe5f5; }

.panel ul { margin: 0 0 16px; padding-left: 22px; color: #dfe5f5; }
.panel li { margin-bottom: 7px; }
.panel li::marker { color: var(--accent); }

.panel strong { color: var(--ink); }

/* Baştaki özet kutusu: uzun metni okumayan biri de ana fikri alsın. */
.tldr {
  margin: 0 0 8px;
  padding: 20px 24px;
  border-radius: 16px;
  background: rgba(107, 184, 255, 0.07);
  border: 1px solid rgba(107, 184, 255, 0.22);
}

.tldr h2 {
  border: 0;
  padding: 0;
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tldr ul { margin: 0; }

.contact {
  margin-top: 34px;
  padding: 18px 22px;
  border-radius: 14px;
  background: rgba(10, 12, 26, 0.5);
  border: 1px solid var(--line);
}

.contact p { margin: 0; }

.doc-foot {
  max-width: 780px;
  margin: 26px auto 0;
  text-align: center;
  color: var(--faint);
  font-size: 0.85rem;
}

.doc-foot a { color: var(--faint); }
.doc-foot a:hover { color: var(--accent); }

[data-lang] { display: none; }
html[lang="tr"] [data-lang="tr"],
html[lang="en"] [data-lang="en"] { display: block; }

/* ---------- 404 ---------- */

.oops { max-width: 520px; }
.oops .wordmark { font-size: clamp(3.6rem, 18vw, 6.5rem); }

.oops p {
  color: var(--faint);
  margin: 14px 0 28px;
  font-size: 1.05rem;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 999px;
  border: 1px solid rgba(107, 184, 255, 0.4);
  background: rgba(107, 184, 255, 0.12);
  color: #dcecff;
  font-family: var(--display);
  letter-spacing: 0.08em;
  text-decoration: none;
}

.btn:hover {
  background: rgba(107, 184, 255, 0.22);
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
