/* Classic Slots Game Styles */

/* Base styles */
body {
  background-color: #101010;
  color: white;
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Header styles */
.site-header {
  background: linear-gradient(to right, #7B0000, #101010);
  border-bottom: 2px solid #D4AF37;
  padding: 1rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #D4AF37;
  font-family: 'Playfair Display', serif;
}

.active-users-display {
  display: none;
}

.user-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

.btn-dashboard,
.btn-login,
.btn-register,
.btn-logout {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: background-color 300ms, color 300ms;
}

.btn-dashboard,
.btn-register {
  background-color: #D4AF37;
  color: black;
}

.btn-login,
.btn-logout {
  border: 2px solid #D4AF37;
  color: #D4AF37;
}

.btn-dashboard:hover {
  background-color: #eab308;
}

.btn-login:hover,
.btn-logout:hover {
  background-color: #D4AF37;
  color: black;
}

.mobile-menu-btn {
  background-color: #D4AF37;
  color: black;
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

/* Main content */
main {
  padding: 1rem 0;
}

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.game-container {
  background: linear-gradient(to bottom right, #101010, #7B0000);
  border: 4px solid #D4AF37;
  border-radius: 0.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.game-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.game-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.25rem;
  font-weight: 700;
  color: #D4AF37;
  margin-bottom: 0.5rem;
}

.game-subtitle {
  font-size: 1.125rem;
  color: white;
}

/* Balance display */
.balance-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 0.75rem;
  border: 2px solid #D4AF37;
  gap: 1rem;
}

.balance-item {
  text-align: center;
  flex: 1;
  min-width: 120px;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background-color: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(212, 175, 55, 0.4);
}

.balance-label {
  font-size: 0.875rem;
  color: #ccc;
  margin-bottom: 0.25rem;
}

.balance-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #10b981;
}

/* Game area */
.game-area {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  .game-area {
    grid-template-columns: 2fr 1fr;
  }
}

.game-panel {
  background-color: rgba(0, 0, 0, 0.85);
  border: 2px solid #D4AF37;
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.reels-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.reels {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.reel {
  background: linear-gradient(to bottom, #016D32, #004d27);
  border: 4px solid #D4AF37;
  border-radius: 0.75rem;
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.payline {
  width: 100%;
  height: 0.25rem;
  background: #D4AF37;
  margin-bottom: 1.5rem;
}

.spin-button {
  width: 100%;
  max-width: 20rem;
  background: linear-gradient(to right, #D4AF37, #eab308);
  color: black;
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  transition: all 300ms;
}

.spin-button:hover {
  background: linear-gradient(to right, #eab308, #D4AF37);
  transform: scale(1.05);
}

.spin-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Betting controls */
.bet-controls {
  margin-bottom: 1rem;
}

.bet-label {
  display: block;
  color: white;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.bet-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #D4AF37;
  border-radius: 0.5rem;
  background-color: black;
  color: white;
}

.quick-bets {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin: 1rem 0;
}

.bet-button {
  background-color: #1d4ed8;
  color: white;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: background-color 200ms;
}

.bet-button:hover {
  background-color: #2563eb;
}

.action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.max-bet-button {
  background: linear-gradient(to right, #d97706, #92400e);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: none;
  cursor: pointer;
  transition: all 300ms;
}

.max-bet-button:hover {
  background: linear-gradient(to right, #f59e0b, #b45309);
}

.result-display {
  margin-top: 1rem;
  text-align: center;
}

.result-text {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  min-height: 2.5rem;
  padding: 1rem;
  border-radius: 0.5rem;
  background-color: rgba(0, 0, 0, 0.8);
  border: 2px solid #D4AF37;
  color: #D4AF37;
}

/* Sidebar */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-panel {
  background-color: #101010;
  border: 2px solid #D4AF37;
  border-radius: 0.75rem;
  padding: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.panel-title {
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #D4AF37;
  margin-bottom: 0.75rem;
}

.history-list {
  max-height: 350px;
  overflow-y: auto;
}

.history-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid #333;
}

.paytable-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

.paytable-symbol {
  display: flex;
  align-items: center;
}

.symbol-icon {
  font-size: 1.5rem;
  margin-right: 0.5rem;
}

.paytable-payout {
  font-weight: 700;
}

/* Provably fair panel */
.fair-panel .panel-section {
  margin-bottom: 0.5rem;
}

.panel-label {
  font-weight: 700;
  color: #D4AF37;
  font-size: 0.75rem;
}

.panel-value {
  word-break: break-all;
  background-color: #101010;
  padding: 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
}

/* Login required message */
.login-required {
  background-color: #7c2d12;
  border: 1px solid #991b1b;
  color: #fed7d7;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-align: center;
}

.login-required h4 {
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.login-required a {
  color: #D4AF37;
  text-decoration: underline;
}

/* Animations */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes reelSpin {
  0% { transform: translateY(0); }
  100% { transform: translateY(-1000px); }
}

.reel-spinning {
  animation: reelSpin 0.1s infinite linear;
}

.win-animation {
  animation: winPulse 2s infinite;
}

@keyframes winPulse {
  0% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
  50% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.8); }
  100% { box-shadow: 0 0 5px rgba(212, 175, 55, 0.5); }
}

/* Mobile menu */
.offcanvas {
  background-color: #1a1a1a;
  color: white;
}

.offcanvas-header {
  border-bottom: 1px solid #333;
}

.offcanvas-title {
  color: #D4AF37;
}

.btn-close {
  background: transparent;
}

.mobile-nav-links a {
  display: block;
  width: 100%;
  text-align: center;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 700;
}

.mobile-dashboard {
  background-color: #D4AF37;
  color: black;
}

.mobile-deposit {
  background-color: #f59e0b;
  color: black;
}

.mobile-logout {
  background-color: #dc2626;
  color: white;
}

.mobile-login,
.mobile-register {
  border: 2px solid #D4AF37;
  color: #D4AF37;
  margin-bottom: 0.5rem;
}

.mobile-login:hover,
.mobile-register:hover {
  background-color: #D4AF37;
  color: black;
}

.mobile-balance {
  text-align: center;
  margin-bottom: 1rem;
  padding: 0.5rem;
  background-color: #1f2937;
  border-radius: 0.25rem;
}