/* ==========================================================================
   Konak Bilgi Yarışması (Kim Bilir?) — MK Konağı Oyun Odası
   ========================================================================== */

.by-alan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}

/* Üst Yarışma Barı */
.by-ust-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  background: var(--oo-kart-arkaplan);
  border: 1px solid var(--oo-kart-kenarlik);
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.by-soru-sayac {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--oo-soluk);
}

.by-soru-sayac strong {
  color: var(--oo-altin);
  font-size: 1.15rem;
}

.by-puan-kutu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--oo-altin);
  background: rgba(212, 175, 55, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: 2rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Jokerler */
.by-jokerler {
  display: flex;
  gap: 0.5rem;
}

.by-joker-btn {
  min-height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--oo-metin);
  padding: 0.4rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s;
}

.by-joker-btn:hover:not(:disabled) {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--oo-altin);
  color: var(--oo-altin);
  transform: translateY(-2px);
}

.by-joker-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* Soru Kartı */
.by-soru-karti {
  width: 100%;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Zaman Çubuğu */
.by-zaman-cubuk-sarmal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.by-zaman-cubuk {
  height: 100%;
  background: var(--oo-altin);
  width: 100%;
  transition: width 1s linear, background-color 0.3s;
}

.by-zaman-cubuk.kritik {
  background: #ef4444;
  box-shadow: 0 0 12px #ef4444;
}

.by-kategori-etiket {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: var(--oo-mor-acik);
  margin-bottom: 1rem;
}

.by-soru-metin {
  font-family: var(--oo-font-baslik);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  margin-bottom: 1.5rem;
  min-height: 60px;
}

/* Seçenekler Izgarası (2x2 veya tek sütun) */
.by-secenekler {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.by-secenek-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.85rem;
  padding: 1rem;
  color: var(--oo-metin);
  font-family: var(--oo-font-metin);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.by-secenek-harf {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--oo-altin);
  flex-shrink: 0;
}

.by-secenek-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--oo-altin);
  transform: translateY(-2px);
}

.by-secenek-btn.secildi {
  border-color: #60a5fa;
  background: rgba(96, 165, 250, 0.2);
}

.by-secenek-btn.dogru {
  background: rgba(16, 185, 129, 0.3) !important;
  border-color: #10b981 !important;
  color: #a7f3d0;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.4);
}

.by-secenek-btn.yanlis {
  background: rgba(239, 68, 68, 0.3) !important;
  border-color: #ef4444 !important;
  color: #fca5a5;
  animation: sarsil 0.4s ease;
}

.by-secenek-btn.elendi {
  opacity: 0.2;
  pointer-events: none;
  text-decoration: line-through;
}

@keyframes sarsil {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Açıklama & Sonraki Soru Kartı */
.by-aciklama-kutusu {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border-left: 4px solid var(--oo-altin);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  animation: acil 0.3s ease;
}

@keyframes acil {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.by-aciklama-metin {
  font-size: 0.88rem;
  color: var(--oo-soluk);
  line-height: 1.5;
}

.by-sonraki-btn {
  background: var(--oo-altin);
  color: #0f172a;
  border: none;
  font-weight: 800;
  padding: 0.75rem 1.25rem;
  border-radius: 2rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}

.by-sonraki-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.5);
}

@media (max-width: 600px) {
  .by-secenekler {
    grid-template-columns: 1fr;
  }
  .by-ust-panel {
    flex-direction: column;
    align-items: stretch;
  }
  .by-aciklama-kutusu {
    flex-direction: column;
    align-items: stretch;
  }
  .by-sonraki-btn {
    width: 100%;
  }
}
