/* ============================================================
   GLOW.CSS — Efekty świecenia (tylko obszar gry)
   ============================================================ */

/* ─────────────────────────────────────────
   1. PASEK TIMERA — złota ramka
   ───────────────────────────────────────── */
.timer-bar {
  border: 2px solid rgba(251, 191, 36, 0.35);
  box-shadow:
    0 0 20px rgba(251, 191, 36, 0.08),
    inset 0 0 15px rgba(251, 191, 36, 0.03);
  padding: 1.2rem 1rem 0.8rem;
  overflow: hidden;
  position: relative;
}

#timer {
  color: #fbbf24;
  text-shadow:
    0 0 10px rgba(251, 191, 36, 0.9),
    0 0 25px rgba(251, 191, 36, 0.5);
  animation: timerPulse 1s ease-in-out infinite alternate;
}

@keyframes timerPulse {
  0%   { text-shadow: 0 0 8px rgba(251, 191, 36, 0.7),  0 0 18px rgba(251, 191, 36, 0.4); }
  100% { text-shadow: 0 0 16px rgba(251, 191, 36, 1.0), 0 0 40px rgba(251, 191, 36, 0.7); }
}

/* ─────────────────────────────────────────
   2. ZŁOTY PASEK POSTĘPU
   ───────────────────────────────────────── */
.timer-progress-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  margin-top: 10px;
  overflow: hidden;
  position: relative;
}

.timer-progress-fill {
  height: 100%;
  width: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg,
    #b45309 0%,
    #d97706 25%,
    #fbbf24 60%,
    #fde68a 100%
  );
  box-shadow:
    0 0 8px rgba(251, 191, 36, 0.8),
    0 0 20px rgba(251, 191, 36, 0.4);
  transition: width 0.95s linear;
  position: relative;
}

/* Błyszczący pasek na pasku */
.timer-progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  filter: blur(2px);
  animation: progressShine 1.5s ease-in-out infinite;
}

@keyframes progressShine {
  0%   { opacity: 0.3; }
  50%  { opacity: 1; }
  100% { opacity: 0.3; }
}

/* Czerwień gdy mało czasu */
.timer-progress-fill.danger {
  background: linear-gradient(90deg, #7f1d1d 0%, #dc2626 60%, #f87171 100%);
  box-shadow:
    0 0 8px rgba(220, 38, 38, 0.8),
    0 0 20px rgba(220, 38, 38, 0.4);
  animation: dangerPulse 0.5s ease-in-out infinite alternate;
}

@keyframes dangerPulse {
  0%   { box-shadow: 0 0 6px rgba(220, 38, 38, 0.6),  0 0 15px rgba(220, 38, 38, 0.3); }
  100% { box-shadow: 0 0 14px rgba(220, 38, 38, 1.0), 0 0 35px rgba(220, 38, 38, 0.6); }
}

/* ─────────────────────────────────────────
   3. RULETKA
   ───────────────────────────────────────── */
.roulette-container {
  border-color: rgba(251, 191, 36, 0.15);
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.5),
    inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.roulette-pointer {
  background: linear-gradient(to bottom, transparent, #fbbf24, transparent);
  box-shadow:
    0 0 12px rgba(251, 191, 36, 0.9),
    0 0 30px rgba(251, 191, 36, 0.55),
    0 0 60px rgba(251, 191, 36, 0.25);
  animation: pointerGlow 1.5s ease-in-out infinite alternate;
}

@keyframes pointerGlow {
  0%   { box-shadow: 0 0 10px rgba(251, 191, 36, 0.6),  0 0 25px rgba(251, 191, 36, 0.3); }
  100% { box-shadow: 0 0 20px rgba(251, 191, 36, 1.0),  0 0 50px rgba(251, 191, 36, 0.6), 0 0 80px rgba(251, 191, 36, 0.3); }
}

.roulette-item.red   { box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4), inset 0 1px 0 rgba(255,255,255,0.1); }
.roulette-item.green { box-shadow: 0 4px 15px rgba(22, 163, 74, 0.5), inset 0 1px 0 rgba(255,255,255,0.1); }
.roulette-item.black { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6),     inset 0 1px 0 rgba(255,255,255,0.05); }

/* ─────────────────────────────────────────
   4. OSTATNIE 10 LICZB
   ───────────────────────────────────────── */
.last-numbers-section {
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.last-number-item.red {
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}
.last-number-item.red:hover {
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.65), 0 0 40px rgba(220, 38, 38, 0.3);
}

.last-number-item.black:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 255, 255, 0.05);
}

.last-number-item.green {
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.55), 0 0 25px rgba(22, 163, 74, 0.3);
  animation: greenBallGlow 2s ease-in-out infinite;
}

@keyframes greenBallGlow {
  0%, 100% { box-shadow: 0 4px 15px rgba(22, 163, 74, 0.5),  0 0 20px rgba(22, 163, 74, 0.3); }
  50%       { box-shadow: 0 4px 28px rgba(22, 163, 74, 0.85), 0 0 45px rgba(22, 163, 74, 0.55); }
}

/* ─────────────────────────────────────────
   5. SEKCJE ZAKŁADÓW
   ───────────────────────────────────────── */
.bet-section.red {
  border-color: rgba(220, 38, 38, 0.5);
  background: linear-gradient(145deg, rgba(220, 38, 38, 0.06) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.07), inset 0 1px 0 rgba(220, 38, 38, 0.08);
  transition: all 0.3s ease;
}
.bet-section.red:hover {
  border-color: rgba(220, 38, 38, 0.85);
  box-shadow: 0 0 40px rgba(220, 38, 38, 0.18), 0 8px 30px rgba(220, 38, 38, 0.12);
  transform: translateY(-6px);
}

.bet-section.green {
  border-color: rgba(22, 163, 74, 0.5);
  background: linear-gradient(145deg, rgba(22, 163, 74, 0.08) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 22px rgba(22, 163, 74, 0.10), inset 0 1px 0 rgba(22, 163, 74, 0.08);
  transition: all 0.3s ease;
}
.bet-section.green:hover {
  border-color: rgba(22, 163, 74, 0.9);
  box-shadow: 0 0 50px rgba(22, 163, 74, 0.22), 0 8px 30px rgba(22, 163, 74, 0.15);
  transform: translateY(-6px);
}

.bet-section.black {
  border-color: rgba(100, 116, 139, 0.3);
  background: linear-gradient(145deg, rgba(255,255,255,0.02) 0%, var(--bg-card) 60%);
  box-shadow: 0 0 15px rgba(0,0,0,0.35);
  transition: all 0.3s ease;
}
.bet-section.black:hover {
  border-color: rgba(148, 163, 184, 0.5);
  box-shadow: 0 0 30px rgba(148,163,184,0.08), 0 8px 30px rgba(0,0,0,0.5);
  transform: translateY(-6px);
}

/* ─────────────────────────────────────────
   6. PRZYCISKI OBSTAW
   ───────────────────────────────────────── */
.red-btn {
  box-shadow: 0 4px 18px rgba(220, 38, 38, 0.45), 0 0 30px rgba(220, 38, 38, 0.15);
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
}
.red-btn::before {
  content: ''; position: absolute; top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg); transition: left 0.5s ease;
}
.red-btn:hover::before { left: 150%; }
.red-btn:hover:not(:disabled) {
  box-shadow: 0 6px 28px rgba(220, 38, 38, 0.7), 0 0 55px rgba(220, 38, 38, 0.38);
  transform: translateY(-3px); filter: brightness(1.1);
}

.green-btn {
  box-shadow: 0 4px 18px rgba(22, 163, 74, 0.55), 0 0 30px rgba(22, 163, 74, 0.22);
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
  animation: greenBtnPulse 3s ease-in-out infinite;
}
@keyframes greenBtnPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(22, 163, 74, 0.45), 0 0 25px rgba(22, 163, 74, 0.2); }
  50%       { box-shadow: 0 4px 25px rgba(22, 163, 74, 0.75), 0 0 50px rgba(22, 163, 74, 0.38); }
}
.green-btn::before {
  content: ''; position: absolute; top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg); transition: left 0.5s ease;
}
.green-btn:hover::before { left: 150%; }
.green-btn:hover:not(:disabled) {
  box-shadow: 0 6px 35px rgba(22, 163, 74, 0.8), 0 0 65px rgba(22, 163, 74, 0.45);
  transform: translateY(-3px); filter: brightness(1.15);
  animation: none;
}

.black-btn {
  background: linear-gradient(135deg, #2a3344 0%, #1a2030 100%);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.07);
  transition: all 0.25s ease;
  position: relative; overflow: hidden;
}
.black-btn::before {
  content: ''; position: absolute; top: -50%; left: -75%;
  width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
  transform: skewX(-20deg); transition: left 0.5s ease;
}
.black-btn:hover::before { left: 150%; }
.black-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #374151 0%, #232d3f 100%);
  box-shadow: 0 6px 25px rgba(0,0,0,0.7), 0 0 30px rgba(148,163,184,0.08);
  transform: translateY(-3px);
}

/* ─────────────────────────────────────────
   7. MOBILE — wyłącz animacje
   ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  #timer, .roulette-pointer, .green-btn,
  .last-number-item.green, .timer-progress-fill::after {
    animation: none !important;
  }
}
