/* ================================================
   SLOT MACHINE STYLE SPINNER
   Multiple vertical reels scrolling top to bottom
   ================================================ */

.slot-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 40px 20px;
  background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  min-height: 400px;
  border: 3px solid #dee2e6;
}


body.dark-mode .slot-container,
body[data-theme="dark"] .slot-container {
  background: linear-gradient(180deg, #2c3e50 0%, #34495e 100%);
  border-color: #495057;
}

body[data-theme="crypto"] .slot-container {
  background: linear-gradient(180deg, #1a1f3a 0%, #2a2f4a 100%);
  border-color: #f7931a;
}

body[data-theme="food"] .slot-container {
  background: linear-gradient(180deg, #fff5e6 0%, #ffe4c4 100%);
  border-color: #ff6b35;
}

body[data-theme="creative"] .slot-container {
  background: linear-gradient(180deg, #f3e7ff 0%, #e7d7ff 100%);
  border-color: #667eea;
}

body[data-theme="gaming"] .slot-container {
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  border-color: #58a6ff;
}

.slot-reels {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.slot-reel {
  width: 150px;
  height: 350px;
  background: #ffffff;
  border: 2px solid var(--secondary-color);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1), 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-mode .slot-reel,
body[data-theme="dark"] .slot-reel {
  background: #2c3e50;
  border-color: #3498db;
}

body[data-theme="crypto"] .slot-reel {
  background: rgba(26, 31, 58, 0.9);
  border-color: #f7931a;
}

body[data-theme="food"] .slot-reel {
  background: #ffffff;
  border-color: #ff6b35;
}

body[data-theme="creative"] .slot-reel {
  background: #ffffff;
  border-color: #667eea;
}

body[data-theme="gaming"] .slot-reel {
  background: #16213e;
  border-color: #58a6ff;
}

.slot-reel-strip {
  position: absolute;
  width: 100%;
  transition: top cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Item dimensions must match SlotEngine.ITEM_HEIGHT */
.slot-item {
  height: 116.66px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  position: relative;
}

body.dark-mode .slot-item,
body[data-theme="dark"] .slot-item {
  background: #34495e;
  border-bottom-color: #495057;
}

body[data-theme="crypto"] .slot-item {
  background: rgba(42, 47, 74, 0.8);
  border-bottom-color: rgba(247, 147, 26, 0.3);
}

body[data-theme="food"] .slot-item {
  background: #fff5e6;
  border-bottom-color: rgba(255, 107, 53, 0.3);
}

body[data-theme="creative"] .slot-item {
  background: #f3e7ff;
  border-bottom-color: rgba(102, 126, 234, 0.3);
}

body[data-theme="gaming"] .slot-item {
  background: rgba(22, 33, 62, 0.8);
  border-bottom-color: rgba(88, 166, 255, 0.3);
}

/* Wheel Title Styling */
#wheelTitle {
  color: var(--primary-color);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

body[class*="theme-"] #wheelTitle {
  color: var(--primary-color);
}

/* Preset Dropdown Styling */
#presetDropdown {
  cursor: pointer;
  transition: border-color 0.2s ease;
}

#presetDropdown:hover {
  border-color: var(--primary-color);
}

body[class*="theme-"] #presetDropdown:hover {
  border-color: var(--primary-color);
}

#presetDropdown:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

body[class*="theme-"] #presetDropdown:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(var(--primary-color-rgb), 0.25);
}

.slot-item-content {
  font-size: 3rem;
  filter: brightness(0.9);
  transition: filter 0.3s;
}

.slot-item-label {
  color: #212529;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

body.dark-mode .slot-item-label,
body[data-theme="dark"] .slot-item-label {
  color: #ecf0f1;
}

body[data-theme="crypto"] .slot-item-label {
  color: #f7931a;
}

body[data-theme="food"] .slot-item-label {
  color: #8b4513;
}

body[data-theme="creative"] .slot-item-label {
  color: #667eea;
}

body[data-theme="gaming"] .slot-item-label {
  color: #c9d1d9;
}

.navbar-nav .nav-link:hover, 
.navbar-nav .nav-link.active {
  color: var(--primary-color);
}

.btn-theme-color {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.slot-reel-window {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 116.66px;
  transform: translateY(-50%);
  background: rgba(40, 167, 69, 0.1);
  border: 3px solid var(--secondary-color);
  box-shadow: inset 0 0 20px rgba(40, 167, 69, 0.2);
  pointer-events: none;
  z-index: 5;
}

.slot-reel.spinning .slot-item-content {
  filter: blur(4px);
}

.slot-reel.stopped .slot-reel-window {
  animation: winHighlight 0.8s ease-in-out;
}

@keyframes winHighlight {
  0%, 100% { 
    background: rgba(40, 167, 69, 0.1);
  }
  50% { 
    background: rgba(40, 167, 69, 0.3);
    box-shadow: inset 0 0 30px rgba(40, 167, 69, 0.4);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .slot-container {
    padding: 20px 10px;
    min-height: 300px;
    gap: 10px;
  }

  .slot-reels {
    gap: 10px;
    width: 100%;
  }
  
  .slot-reel {
    width: calc((100% - 40px) / 3);
    height: 250px;
    border-width: 3px;
  }
  
  .slot-item {
    height: 83.33px;
  }
  
  .slot-item-content {
    font-size: 2rem;
  }
  
  .slot-item-label {
    font-size: 0.75rem;
  }
  
  .slot-reel-window {
    height: 83.33px;
    border-width: 2px;
  }
}