/* Temel Reset ve Box Sizing */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body ve Container */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial;
  background: #f4f6f8;
}

.container {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

/* Başlık */
h1 {
  font-size: 32px;
  margin-bottom: 30px;
  letter-spacing: 1px;
}

/* Genel Butonlar */
button {
  width: 100%;
  padding: 16px;
  margin-bottom: 12px;
  font-size: 18px;
  border-radius: 12px;
  border: none;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.2s ease;
}

button:active {
  transform: scale(0.97);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

button:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* ----------------------
   Tek Seviye Butonları (A1-C2)
-----------------------*/
.level-select {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.level-select button {
  flex: 1 1 30%;
  font-weight: bold;
  color: #fff;
  border-radius: 10px;
  transition: background 0.2s ease;
}

/* Tek seviye renkleri */
.level-select button[value="A1"],
.level-select button[value="A2"] { background: #27ae60; } /* Yeşil */
.level-select button[value="B1"],
.level-select button[value="B2"] { background: #e67e22; } /* Turuncu */
.level-select button[value="C1"],
.level-select button[value="C2"] { background: #8e44ad; } /* Mor */

.level-select button:hover {
  filter: brightness(1.15);
}

/* ----------------------
   Karışık Seviye Butonları
-----------------------*/
.level-mix {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.level-mix button {
  flex: 1 1 48%;
  font-weight: bold;
  color: #fff;
  border-radius: 10px;
  transition: background 0.2s ease, transform 0.1s ease;
}

/* Karışık renkler */
.level-mix button[data-level="A1-A2"] { background: #2ecc71; } /* Açık yeşil */
.level-mix button[data-level="B1-B2"] { background: #f39c12; } /* Açık turuncu */
.level-mix button[data-level="C1-C2"] { background: #9b59b6; } /* Açık mor */
.level-mix button[data-level="ALL"]    { background: #3498db; } /* Mavi */

.level-mix button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

/* Cevap Durumları */
.success { color: #2ecc71; } /* Yeşil */
.error { color: #e74c3c; }   /* Kırmızı */

/* Sonuç Kutusu */
#result { margin-top: 20px; font-size: 20px; }

/* Yeni Soru Butonu */
.next {
  display: block;
  margin-top: 30px;
  padding: 14px;
  background: #3498db;
  color: white;
  text-decoration: none;
  border-radius: 10px;
  font-size: 18px;
  transition: background 0.2s ease;
}

.next:hover { background: #2980b9; }

/* Modlar */
.modes {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

.modes a {
  font-size: 14px;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  background: #eee;
  color: #333;
  transition: background 0.2s ease;
}

.modes a:hover { background: #ddd; }

/* İstatistik */
.stats {
  font-size: 14px;
  margin-bottom: 15px;
  color: #666;
}

/* Şık Buton Durumları (JS ile ekleniyor) */
.option.correct { background: #2ecc71; color: white; }
.option.wrong { background: #e74c3c; color: white; }

/* Skorbord Kartları */
.scoreboard {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.scorecard {
  background: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.08);
  text-align: center;
  min-width: 160px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scorecard:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
}

.scorecard h3 {
  margin-bottom: 8px;
  font-size: 18px;
  color: #333;
}

.scorecard p {
  margin: 4px 0;
  font-size: 14px;
  color: #555;
}

/* Mobil Uyumluluk */
@media (max-width: 400px) {
  h1 { font-size: 26px; }
  button { font-size: 16px; padding: 14px; }
  .next { font-size: 16px; padding: 12px; }
  .scorecard { min-width: 140px; padding: 12px 16px; }
  .level-mix button { flex: 1 1 100%; }
  .level-select button { flex: 1 1 45%; }
}