@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-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: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/space-grotesk-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;
}

/* Renkler: ana beyaz, ikincil orman yeşili, üçüncül cherry kırmızısı.
   Varsayılan açık tema; koyu tema sadece header'daki butonla açılır. */
:root {
  --white: #ffffff;
  --forest: #228b22;
  --cherry: #d2042d;

  --bg: var(--white);
  --surface: #f3f8f3;
  --text: #102014;
  --muted: #4b5d50;
  --border: #102014;
  --line: #d6e3d8;
  --green-ink: #186a18;
  --cherry-ink: var(--cherry);
  --btn-bg: var(--forest);
  --btn-text: var(--white);
  --shadow: var(--text);
  --selected-bg: var(--forest);
  --selected-text: var(--white);
  --header-bg: rgba(255, 255, 255, 0.88);

  --radius: 14px;
  --gutter: 16px;
  --header-h: 60px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0c1710;
  --surface: #132419;
  --text: var(--white);
  --muted: #b7c7bb;
  --border: #e8f1ea;
  --line: #26402e;
  --green-ink: #6fcf6f;
  --cherry-ink: #ff5577;
  --shadow: #000000;
  --header-bg: rgba(12, 23, 16, 0.88);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--cherry-ink);
  outline-offset: 3px;
}

[tabindex="-1"]:focus {
  outline: none;
}

.screen {
  animation: screen-in 0.35s ease both;
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.hl {
  color: var(--cherry-ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--line);
}

.header-inner {
  max-width: 1040px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  appearance: none;
  background: none;
  border: none;
  padding: 6px 0;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  letter-spacing: -0.02em;
}

.logo:disabled {
  cursor: default;
}

.logo-mark {
  flex: none;
  width: 34px;
  height: 34px;
}

.logo-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dar ekranda başlık zaten hero'da yazıyor; header'da sadece logo işareti kalır. */
@media (max-width: 440px) {
  .logo-text { display: none; }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.nav-link {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 10px;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--green-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.theme-toggle {
  appearance: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-moon {
  fill: currentColor;
  stroke: none;
}

.theme-toggle .icon-sun,
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

/* Butonlar */
.btn {
  appearance: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 22px;
  min-height: 52px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 4px 4px 0 var(--shadow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--shadow);
}

.btn:active {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 var(--shadow);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-text);
}

.btn-big {
  font-size: 1.1rem;
  padding: 14px 30px;
  min-height: 56px;
}

.btn-ghost {
  background: transparent;
}

/* Giriş ekranı */
.hero {
  min-height: min(calc(72svh - var(--header-h)), 620px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  padding: 40px 0;
}

@media (max-width: 719px) {
  .hero {
    min-height: 0;
    padding: 48px 0 24px;
  }
}

@media (min-width: 860px) {
  .hero {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 32px;
  }
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hero-title {
  font-size: clamp(2.5rem, 10vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero-sub {
  font-size: clamp(1.05rem, 3.2vw, 1.25rem);
  color: var(--muted);
  max-width: 36ch;
  margin: 0;
}

.hero-actions {
  margin-top: 6px;
}

.section-title {
  font-size: clamp(1.6rem, 5vw, 2.1rem);
  margin-bottom: 20px;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  margin-top: 10px;
  background: var(--forest);
  border-radius: 3px;
}

.cards-section {
  padding: 32px 0 20px;
}

/* Bütün satırlar en uzun kart kadar; böylece kartlar ve "Devamını oku" linkleri hizalı durur. */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
  }
}

@media (min-width: 1000px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 18px 18px 10px;
  font-size: 0.97rem;
}

.card-num {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--cherry);
  border-radius: 999px;
  padding: 1px 9px;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.card p {
  margin: 0 0 8px;
}

.bottom-cta {
  text-align: center;
  padding: 48px 0 36px;
}

.bottom-cta p {
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  font-weight: 700;
  margin: 0 auto 20px;
  max-width: 24ch;
}

.footer {
  border-top: 2px solid var(--line);
  padding: 22px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.footer p {
  margin: 0 auto;
  max-width: 60ch;
}

/* Quiz */
.quiz {
  max-width: 640px;
  margin: 0 auto;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  padding: 14px 0 28px;
}

.quiz-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.btn-back {
  appearance: none;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  padding: 10px 4px;
  min-height: 44px;
}

.counter {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.progress {
  height: 12px;
  border: 2px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--forest);
  transition: width 0.3s ease;
}

.question-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0 12px;
}

.question-wrap.anim {
  animation: q-in 0.28s ease both;
}

@keyframes q-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}

.question {
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 700;
  text-align: center;
  white-space: pre-line;
  margin-bottom: 26px;
  min-height: 3.3em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-size: 1.05rem;
  min-height: 56px;
  padding: 12px 18px;
  background: var(--bg);
}

.option-key {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 2px solid currentColor;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

.option[aria-pressed="true"] {
  background: var(--selected-bg);
  color: var(--selected-text);
}

.option.pop {
  animation: pop 0.25s ease;
}

@keyframes pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

.options.locked {
  pointer-events: none;
}

.kbd-hint {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 18px 0 0;
}

@media (hover: none) {
  .kbd-hint { display: none; }
}

/* Hesaplanıyor */
.calc {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.calc-text {
  font-size: 1.3rem;
  font-weight: 700;
}

.spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 6px solid var(--line);
  border-top-color: var(--cherry);
  border-right-color: var(--forest);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Sonuç: kartsız, düz akış; bölümler ince çizgilerle ayrılır */
.result {
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 0 56px;
  text-align: center;
}

.result-title {
  font-size: clamp(1.9rem, 7.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
}

.result-comment {
  font-size: 1.1rem;
  max-width: 34ch;
  margin: 0 auto 28px;
}

.bars {
  display: grid;
  gap: 16px;
  text-align: left;
  margin-bottom: 30px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--line);
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.share-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
}

.share {
  border-top: 2px solid var(--line);
  padding-top: 20px;
  margin-bottom: 26px;
}

.share-preview {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  margin-bottom: 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

.share-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-share {
  font-size: 0.95rem;
  padding: 10px;
  min-height: 48px;
  box-shadow: none;
}

.btn-share:hover {
  box-shadow: none;
  transform: translateY(-1px);
}

.btn-share:active {
  box-shadow: none;
  transform: translateY(1px);
}

.btn-linkedin {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

.btn-x {
  background: var(--cherry);
  border-color: var(--cherry);
  color: var(--white);
}

.btn-outline {
  background: transparent;
}

@media (max-width: 360px) {
  .share-grid { grid-template-columns: 1fr; }
}

/* Bildirim */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 12px;
  max-width: calc(100% - 32px);
  text-align: center;
  z-index: 10;
  animation: screen-in 0.2s ease both;
}

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

/* ---------- BF5 ekibi: larp testinin üstüne eklenenler ---------- */

/* Quiz sırasında üst menüdeki bağlantı gizlenir */
body[data-screen="quiz"] .nav-link,
body[data-screen="calc"] .nav-link {
  display: none;
}

/* Hero: 3x3 ekip ızgarası, ortadaki "?" */
.hero-grid {
  position: relative;
  width: 100%;
  max-width: 420px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px auto 34px;
}

@media (min-width: 860px) {
  .hero-grid {
    max-width: none;
    margin: 30px 0;
    justify-self: end;
  }
}

.tile {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: clamp(2rem, 9vw, 3.1rem);
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  animation: tile-pop 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  animation-delay: calc(var(--i) * 60ms);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.tile.is-lit {
  background: var(--forest);
  transform: translate(-2px, -2px) rotate(-3deg);
}

.tile-q {
  background: var(--cherry);
  color: var(--white);
  font-weight: 700;
  font-size: clamp(2.4rem, 11vw, 3.6rem);
}

@keyframes tile-pop {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: none; }
}

.sticker {
  position: absolute;
  z-index: 1;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  padding: 7px 13px;
  border: 2px solid var(--border);
  border-radius: 12px;
  box-shadow: 4px 4px 0 var(--shadow);
  background: var(--bg);
  color: var(--text);
}

.sticker-1 { top: -18px; left: -10px; transform: rotate(-7deg); background: var(--forest); color: var(--white); }
.sticker-2 { top: 42%; right: -14px; transform: rotate(6deg); }
.sticker-3 { bottom: -20px; left: 10%; transform: rotate(-3deg); background: var(--cherry); color: var(--white); }

/* Ekip kartları */
.team {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 560px) {
  .team { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .team { grid-template-columns: repeat(3, 1fr); }
}

.member {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--shadow);
  padding: 14px 16px;
}

.member-emoji {
  flex: none;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
}

.member h3 {
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.member p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Quiz: seçenekler uzun cümle olduğu için biraz daha sıkı */
.option {
  font-size: 1rem;
  line-height: 1.35;
}

/* Sonuç */
.result-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
}

.result-emoji {
  width: 112px;
  height: 112px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-size: 3.6rem;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 28px;
  box-shadow: 5px 5px 0 var(--shadow);
  animation: tile-pop 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) 0.1s both;
}

.result .result-title {
  color: var(--cherry-ink);
}

.result-tagline {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 8px 0 14px;
}

.result-desc {
  max-width: 46ch;
  margin: 0 auto 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.chip {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 5px 12px;
  border: 2px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}

.top-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}

.top {
  border-top: 2px solid var(--line);
  padding-top: 20px;
  margin-bottom: 26px;
}

.bars {
  display: grid;
  gap: 14px;
  text-align: left;
}

.bar-fill {
  background: var(--forest);
}

.bar:first-child .bar-fill {
  background: var(--cherry);
}

.btn-wa {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

.chip-trait {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}

.top .chips {
  margin-bottom: 22px;
}
