/* -------------------------------------------------------------
   MinCasino color themes
   Supports: Coconut Tropical, Cyberpunk Neon, Luxury Gold, Classic Emerald
------------------------------------------------------------- */

/* Theme Toggle Button in Topbar */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a3bfd9;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.theme-toggle span.theme-icon {
  font-size: 13px;
  line-height: 1;
}

/* ========================================================
   THEME DEFINITIONS
   ======================================================== */

/* 🔴 RED THEME (production default) */
html[data-theme="red"],
body[data-theme="red"] {
  --theme-accent: #ef4444;
  --theme-accent-glow: rgba(239, 68, 68, 0.25);
  --theme-bg-base: #170707;
}

/* 🌴 TROPICAL COCONUT THEME (legacy kept below for reference) */
html[data-theme="coconut"],
body[data-theme="coconut"] {
  --theme-accent: #2dd4bf;
  --theme-accent-glow: rgba(45, 212, 191, 0.35);
  --theme-bg-base: #071018;
}

body[data-theme="coconut"] .topbar {
  border-bottom: 1px solid rgba(45, 212, 191, 0.35);
  background: linear-gradient(115deg, #0a2a30, #0e192c 55%, #241a36);
}

body[data-theme="coconut"] .primary-button,
body[data-theme="coconut"] .top-login,
body[data-theme="coconut"] .wl-deposit {
  background: linear-gradient(120deg, #b2fff0, #43e7c0 52%, #35d2e4) !important;
  color: #042f2e !important;
  font-weight: 800 !important;
  box-shadow: 0 0 0 1px rgba(178, 255, 240, 0.45), 0 6px 24px rgba(45, 212, 191, 0.34) !important;
}

body[data-theme="coconut"] .brand strong {
  color: #e6fffa;
  text-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
}

body[data-theme="coconut"] .splash-word {
  color: #ccfbf1 !important;
  text-shadow: 0 0 28px rgba(45, 212, 191, 0.55) !important;
}

body[data-theme="coconut"] .splash-bar i {
  background: linear-gradient(90deg, #14b8a6, #5eead4) !important;
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.8) !important;
}

/* 🔮 CYBERPUNK NEON THEME */
html[data-theme="cyberpunk"],
body[data-theme="cyberpunk"] {
  --theme-accent: #a855f7;
  --theme-accent-glow: rgba(168, 85, 247, 0.35);
}

body[data-theme="cyberpunk"] {
  background-color: #0a0714 !important;
}

body[data-theme="cyberpunk"] .topbar {
  border-bottom: 1px solid rgba(168, 85, 247, 0.4);
  background: linear-gradient(115deg, #161027, #23142f 55%, #301328);
}

body[data-theme="cyberpunk"] .primary-button,
body[data-theme="cyberpunk"] .top-login,
body[data-theme="cyberpunk"] .wl-deposit {
  background: linear-gradient(135deg, #9333ea, #ec4899) !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 1px rgba(240, 164, 255, 0.4), 0 6px 24px rgba(236, 72, 153, 0.35) !important;
}

body[data-theme="cyberpunk"] .brand strong {
  color: #f5d0fe;
  text-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* 👑 LUXURY GOLD THEME */
html[data-theme="gold"],
body[data-theme="gold"] {
  --theme-accent: #f59e0b;
  --theme-accent-glow: rgba(245, 158, 11, 0.35);
}

body[data-theme="gold"] {
  background-color: #09090a !important;
}

body[data-theme="gold"] .topbar {
  border-bottom: 1px solid rgba(245, 158, 11, 0.4);
  background: linear-gradient(115deg, #241d12, #1b1923 60%, #291c17);
}

body[data-theme="gold"] .primary-button,
body[data-theme="gold"] .top-login,
body[data-theme="gold"] .wl-deposit {
  background: linear-gradient(120deg, #ffecae, #ffd056 52%, #fca63c) !important;
  color: #451a03 !important;
  font-weight: 800 !important;
  box-shadow: 0 0 0 1px rgba(255, 236, 174, 0.4), 0 6px 24px rgba(245, 158, 11, 0.35) !important;
}

body[data-theme="gold"] .brand strong {
  color: #fef3c7;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

/* Keep the navigation in the same warm red-gold palette as the whale-wins strip,
   regardless of the selected color theme. This lives after the per-theme rules so
   they cannot replace the shared navigation palette. */
body[data-theme] .topbar {
  border-bottom: 1px solid rgba(255, 190, 83, .3);
  background: linear-gradient(100deg, rgba(51, 17, 12, .98), rgba(35, 15, 12, .98) 54%, rgba(76, 24, 14, .98));
  box-shadow: 0 1px 0 rgba(255, 196, 88, .18), 0 8px 24px rgba(0, 0, 0, .2);
}
