/* =========================
   RENK PALETİ & RESET
========================= */
:root {
  --bg-main: #020617;
  --bg-card: #020617f2;
  --green: #22c55e;
  --green-dark: #16a34a;
  --red: #ef4444;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --border: #1f2937;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   SAYFA
========================= */
body {
  font-family: "Inter", system-ui, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, #1e293b, var(--bg-main));
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text);
}

/* =========================
   ANA KUTU
========================= */
.container {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  padding: 24px;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow:
    0 30px 60px rgba(0,0,0,.65),
    inset 0 0 0 1px rgba(255,255,255,.02);
  animation: fadeIn .4s ease;
}

/* =========================
   BAŞLIK
========================= */
h1 {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--green);
}

/* =========================
   SKOR
========================= */
#score {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #022c22;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
}

/* =========================
   SORU
========================= */
#question {
  text-align: center;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 20px;
  line-height: 1.45;
}

/* =========================
   ŞIKLAR
========================= */
#answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.answer-btn {
  width: 100%;
  padding: 14px 16px;
  background: #020617;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
  transition: all .18s ease;
}

.answer-btn:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.answer-btn:disabled {
  opacity: .85;
  cursor: default;
}

/* DOĞRU */
.answer-btn.correct {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #022c22;
  font-weight: 700;
}

/* YANLIŞ */
.answer-btn.wrong {
  background: linear-gradient(135deg, #dc2626, var(--red));
  color: #fff;
  font-weight: 700;
}

/* =========================
   NEXT BUTONU
========================= */
#nextBtn {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #022c22;
  font-weight: 800;
  cursor: pointer;
  transition: all .2s ease;
}

#nextBtn:hover {
  filter: brightness(1.1);
}

#nextBtn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

/* =========================
   SONUÇ
========================= */
#result {
  text-align: center;
}

#scoreText {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 16px;
  color: var(--green);
}

/* =========================
   GİZLE
========================= */
.hidden {
  display: none;
}

/* =========================
   ANİMASYON
========================= */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================
   MOBİL
========================= */
@media (max-width: 480px) {
  body {
    align-items: stretch;
  }

  .container {
    min-height: 100vh;
    border-radius: 0;
    padding-top: 70px;
  }
}
