/* =============================================================================
   DersTeders — Konu Sayfası Oyun Stilleri
   ============================================================================= */

/* Oyun şıkları — interaktif */
[data-oyun-soru] .siklar li {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding: 8px 10px;
  transition: background 0.15s, color 0.15s, transform 0.15s;
  user-select: none;
}

[data-oyun-soru] .siklar li:hover {
  background: rgba(15, 107, 124, 0.06);
  transform: translateX(4px);
}

[data-oyun-soru] .siklar li[data-oyun-sonuc="dogru"] {
  background: #D4EDDA;
  color: #0B3E1F;
  font-weight: 600;
}

[data-oyun-soru] .siklar li[data-oyun-sonuc="yanlis"] {
  background: #F8D7DA;
  color: #842029;
}

[data-oyun-soru][data-oyun-cevapverdi="true"] .siklar li:not([data-oyun-sonuc]) {
  opacity: 0.5;
}

/* Çözüm açılması animasyonu */
[data-oyun-soru] .cozum {
  border-left: 4px solid #C5923E;
  background: #FDFAF3;
  animation: oyunSlideIn 0.3s ease;
}

@keyframes oyunSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* İlerleme durumu */
[data-oyun-durum] {
  text-align: center;
  padding: 16px;
  background: #F7EDDB;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
  color: #8A6318;
  animation: oyunSlideIn 0.3s ease;
}

.oyun-ilerleme {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #C5923E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #0F6B7C;
  margin: 0 auto 12px;
}

/* Mobil */
@media (max-width: 520px) {
  .oyun-ilerleme {
    width: 80px;
    height: 80px;
    font-size: 24px;
  }

  [data-oyun-durum] {
    padding: 12px;
    font-size: 0.9rem;
  }
}

/* Dark mode desteği */
html[data-theme="dark"] [data-oyun-durum] {
  background: rgba(197, 146, 62, 0.15);
  color: #F0C97A;
}

html[data-theme="dark"] .oyun-ilerleme {
  border-color: #F0C97A;
  color: #7FD6E6;
}

html[data-theme="dark"] [data-oyun-soru] .siklar li:hover {
  background: rgba(120, 206, 222, 0.1);
}

/* Reduced motion desteği */
@media (prefers-reduced-motion: reduce) {
  [data-oyun-soru] .siklar li,
  [data-oyun-soru] .cozum,
  [data-oyun-durum] {
    animation: none;
    transition: none;
  }

  [data-oyun-soru] .siklar li:hover {
    transform: none;
  }
}
