/**
 * Tonbala rulet — çip görünümü (european-roulette-pro Chip.tsx renkleriyle uyumlu).
 * RoulettePage chunk + ChipList / masa .chip bileşenleri için.
 */

:root {
  --tb-chip-gold: #d4af37;
}

/* ─── Alt çip seçici (ChipList): img yer tutucu, görünüm ::before ─── */
.roulette-chips-list li {
  width: 56px;
  height: 56px;
  margin-right: 14px;
}

.roulette-chips-list li img {
  opacity: 0;
  pointer-events: none;
}

.roulette-chips-list li::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  z-index: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.roulette-chips-list li::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.42);
  z-index: 1;
  pointer-events: none;
}

.roulette-chips-list li[data-chip-value="10"]::before {
  background: linear-gradient(145deg, #60a5fa 0%, #1d4ed8 100%);
  border-color: rgba(191, 219, 254, 0.45);
}

.roulette-chips-list li[data-chip-value="25"]::before {
  background: linear-gradient(145deg, #34d399 0%, #047857 100%);
  border-color: rgba(167, 243, 208, 0.45);
}

.roulette-chips-list li[data-chip-value="50"]::before {
  background: linear-gradient(145deg, #fb923c 0%, #c2410c 100%);
  border-color: rgba(254, 215, 170, 0.45);
}

.roulette-chips-list li[data-chip-value="100"]::before {
  background: linear-gradient(145deg, #52525b 0%, #09090b 100%);
  border-color: rgba(212, 212, 216, 0.4);
}

.roulette-chips-list li[data-chip-value="250"]::before {
  background: linear-gradient(145deg, #f43f5e 0%, #881337 100%);
  border-color: rgba(254, 205, 211, 0.45);
}

.roulette-chips-list li.active::before {
  border-color: var(--tb-chip-gold);
  box-shadow:
    0 0 0 4px rgba(212, 175, 55, 0.85),
    0 10px 28px rgba(212, 175, 55, 0.35),
    0 6px 18px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.roulette-chips-list li p {
  z-index: 2;
  width: 70%;
  height: 70%;
  max-width: 42px;
  max-height: 42px;
  margin: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}

/* ─── Masa üstü jetonlar (.chip) ─── */
.chip.tonbala-euro-chip {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 0 1px rgba(0, 0, 0, 0.9);
}

.chip.tonbala-euro-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  z-index: 0;
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 3px 10px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.chip.tonbala-euro-chip::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.38);
  z-index: 1;
  pointer-events: none;
}

.chip.tonbala-euro-chip[data-chip-denom="10"]::before {
  background: linear-gradient(145deg, #60a5fa 0%, #1d4ed8 100%);
  border-color: rgba(191, 219, 254, 0.45);
}

.chip.tonbala-euro-chip[data-chip-denom="25"]::before {
  background: linear-gradient(145deg, #34d399 0%, #047857 100%);
  border-color: rgba(167, 243, 208, 0.45);
}

.chip.tonbala-euro-chip[data-chip-denom="50"]::before {
  background: linear-gradient(145deg, #fb923c 0%, #c2410c 100%);
  border-color: rgba(254, 215, 170, 0.45);
}

.chip.tonbala-euro-chip[data-chip-denom="100"]::before {
  background: linear-gradient(145deg, #52525b 0%, #09090b 100%);
  border-color: rgba(212, 212, 216, 0.4);
}

.chip.tonbala-euro-chip[data-chip-denom="250"]::before {
  background: linear-gradient(145deg, #f43f5e 0%, #881337 100%);
  border-color: rgba(254, 205, 211, 0.45);
}

/* ─── Rulet aksiyon satırı: grid ile çakışma yok; metinler JSX'te Türkçe UTF-8 ─── */
.tb-rl-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  row-gap: 8px;
  width: 100%;
  max-width: 100%;
  padding: 0.5rem 2px;
  min-height: 52px;
  box-sizing: border-box;
}

.tb-rl-actions__cell {
  display: flex;
  align-items: center;
  min-width: 0;
}

.tb-rl-actions__cell--left {
  justify-content: flex-start;
}

.tb-rl-actions__cell--mid {
  justify-content: center;
  grid-column: 2;
}

.tb-rl-actions__cell--right {
  justify-content: flex-end;
}

.tb-rl-actions .tb-rl-btn {
  appearance: none;
  cursor: pointer;
  border-radius: 9999px;
  font-family:
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    "Apple Color Emoji",
    "Segoe UI Emoji",
    sans-serif;
  letter-spacing: 0.03em;
  /* text-transform: uppercase — Türkçe İ/I için kullanılmıyor; metinler doğrudan doğru yazılı */
  transition:
    filter 0.15s ease,
    transform 0.1s ease;
  border-style: solid;
  border-width: 2px;
  box-sizing: border-box;
  white-space: nowrap;
}

.tb-rl-actions .tb-rl-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.tb-rl-actions .tb-rl-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

/* Gümüş — GERİ AL */
.tb-rl-actions .tb-rl-btn--silver {
  max-width: 100%;
  min-width: 92px;
  padding: 0.58rem 0.95rem;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  border-color: rgba(255, 255, 255, 0.48);
  background: linear-gradient(165deg, #f8fafc 0%, #cbd5e1 38%, #64748b 72%, #334155 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    0 4px 16px rgba(0, 0, 0, 0.36);
}

.tb-rl-actions .tb-rl-btn--silver:hover:not(:disabled) {
  filter: brightness(1.06);
}

/* Altın — ÇEVİR */
.tb-rl-actions .tb-rl-btn--gold {
  max-width: 100%;
  min-width: 142px;
  padding: 0.65rem 1.35rem;
  font-size: 13px;
  font-weight: 800;
  color: #3a2208;
  border-color: rgba(253, 224, 71, 0.85);
  background: linear-gradient(165deg, #fffbeb 0%, #fcd34d 35%, #d97706 72%, #92400e 100%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    0 6px 22px rgba(0, 0, 0, 0.4);
}

.tb-rl-actions .tb-rl-btn--gold:hover:not(:disabled) {
  filter: brightness(1.05);
}

/* Koyu metal — BAHİSLERİ TEMİZLE */
.tb-rl-actions .tb-rl-btn--steel {
  max-width: 108px;
  min-width: 0;
  padding: 0.52rem 0.55rem;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  color: #e8e8ea;
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, #3f3f46 0%, #18181b 38%, #0c0c0e 72%, #050506 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 18px rgba(0, 0, 0, 0.55);
  white-space: normal;
  text-align: center;
  hyphens: none;
}

.tb-rl-actions .tb-rl-btn--steel:hover:not(:disabled) {
  filter: brightness(1.12);
}

@media (max-width: 380px) {
  .tb-rl-actions {
    column-gap: 6px;
  }

  .tb-rl-actions .tb-rl-btn--steel {
    font-size: 8px;
    padding: 0.48rem 0.45rem;
  }

  .tb-rl-actions .tb-rl-btn--gold {
    min-width: 120px;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
    font-size: 12px;
  }

  .tb-rl-actions .tb-rl-btn--silver {
    min-width: 80px;
    font-size: 10px;
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }
}

/* ─── Rulet çarkı: üçgen cep (border-top) + sayılar; clip-path/radio hatası düzeltmesi ─── */
/* Önceki sürümde li üzerinde clip-path + border:none sayıları kesiyor / beyaz radio daireleri görünür hale geliyordu. */

.roulette-wheel-container li.roulette-wheel-bet-number {
  clip-path: none !important;
  -webkit-clip-path: none !important;
  background-image: none !important;
  background-color: transparent !important;
  border-bottom: none !important;
  border-left: 16px solid transparent !important;
  border-right: 16px solid transparent !important;
  border-top: 175px solid #c91828 !important;
  filter: drop-shadow(1.1px 0 0 rgba(200, 165, 85, 0.9))
    drop-shadow(-1.1px 0 0 rgba(160, 125, 55, 0.92))
    drop-shadow(0 0 1px rgba(255, 240, 200, 0.3));
}

.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="0"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="00"] {
  border-top-color: #14803d !important;
  filter: drop-shadow(1.05px 0 0 rgba(150, 185, 120, 0.8))
    drop-shadow(-1.05px 0 0 rgba(110, 140, 90, 0.85))
    drop-shadow(0 0 1px rgba(210, 255, 220, 0.22));
}

.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="2"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="4"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="6"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="8"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="10"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="11"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="13"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="15"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="17"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="20"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="22"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="24"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="26"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="28"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="29"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="31"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="33"],
.roulette-wheel-container li.roulette-wheel-bet-number[data-bet="35"] {
  border-top-color: #141418 !important;
  filter: drop-shadow(1.1px 0 0 rgba(198, 178, 115, 0.88))
    drop-shadow(-1.1px 0 0 rgba(158, 138, 80, 0.9))
    drop-shadow(0 0 1px rgba(255, 248, 215, 0.25));
}

.roulette-wheel-container li.roulette-wheel-bet-number input[type="radio"] {
  opacity: 0 !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  pointer-events: none !important;
}

.roulette-wheel-container li.roulette-wheel-bet-number label {
  position: relative;
  z-index: 1;
}

/* Sayılar — konum bundle’daki absolute ile kalır; yalnızca katman ve tipografi */
.roulette-wheel-container .roulette-wheel-pit {
  z-index: 2 !important;
  color: #ffffff !important;
  font-family:
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    "Noto Sans",
    sans-serif !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  letter-spacing: -0.03em !important;
  line-height: 1 !important;
  padding-top: 10px !important;
  transform: scaleY(1.32) !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.4),
    0 -1px 1px rgba(255, 255, 255, 0.08) !important;
  -webkit-font-smoothing: antialiased;
}

.roulette-wheel-container {
  font-family:
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
}
