/* ============================================================
   GreenPlayRetreat — Game Stylesheet
   Egypt Slot Machine
   ============================================================ */

/* Game Page Layout */
.game-page {
  padding-top: 64px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.game-container {
  flex: 1;
  padding: 2rem 0;
}

/* Balance Display */
.balance-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.balance-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.balance-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c9a96e;
  font-variant-numeric: tabular-nums;
}

.balance-icon {
  font-size: 1.5rem;
}

/* Daily Bonus Banner */
.daily-bonus-banner {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.15) 0%, rgba(201, 169, 110, 0.05) 100%);
  border: 1px solid #c9a96e;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.daily-bonus-banner.hidden {
  display: none;
}

.daily-bonus-text {
  font-size: 1rem;
  color: #f5f5f5;
}

.daily-bonus-text strong {
  color: #c9a96e;
}

/* Slot Machine */
.slot-machine {
  background-color: #0f0f0f;
  border: 2px solid #2a2a2a;
  border-radius: 16px;
  padding: 2rem 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  max-width: 500px;
  margin: 0 auto 2rem;
  position: relative;
}

.slot-machine-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: #c9a96e;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Reels Container */
.reels-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  border-radius: 12px;
  padding: 1rem;
  border: 1px solid #2a2a2a;
}

/* Individual Reel */
.reel {
  width: 80px;
  height: 240px;
  background-color: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.reel-strip {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  will-change: transform;
}

/* Symbol */
.symbol {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background-color: #2d2d2d;
  border-radius: 4px;
  margin-bottom: 2px;
  position: relative;
}

.symbol:last-child {
  margin-bottom: 0;
}

/* Symbol glow effects */
.symbol.win {
  background-color: rgba(201, 169, 110, 0.3);
  box-shadow: inset 0 0 20px rgba(201, 169, 110, 0.4);
  animation: winPulse 0.5s ease-in-out 3;
}

@keyframes winPulse {
  0%, 100% { 
    background-color: rgba(201, 169, 110, 0.3);
    box-shadow: inset 0 0 20px rgba(201, 169, 110, 0.4);
  }
  50% { 
    background-color: rgba(201, 169, 110, 0.6);
    box-shadow: inset 0 0 30px rgba(201, 169, 110, 0.6);
  }
}

/* Win line indicator */
.win-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background-color: #c9a96e;
  box-shadow: 0 0 10px rgba(201, 169, 110, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.win-line.active {
  opacity: 1;
}

/* Spin Animation */
.reel.spinning .reel-strip {
  animation: reelSpin 2.5s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
  filter: blur(2px);
}

.reel.spinning .symbol {
  filter: blur(1px);
}

@keyframes reelSpin {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(var(--spin-end));
  }
}

/* Controls */
.slot-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

.amount-controls {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.amount-btn {
  height: 40px;
  padding: 0 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid #2a2a2a;
  background-color: transparent;
  color: #f5f5f5;
  transition: all 0.2s ease;
  cursor: pointer;
}

.amount-btn:hover {
  border-color: #c9a96e;
  color: #c9a96e;
}

.amount-btn.active {
  background-color: #c9a96e;
  color: #0a0a0a;
  border-color: #c9a96e;
  box-shadow: 0 4px 12px rgba(201, 169, 110, 0.3);
}

.spin-btn {
  height: 56px;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spin-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Result Message */
.result-message {
  text-align: center;
  min-height: 2rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f5f5f5;
}

.result-message.win {
  color: #c9a96e;
  animation: resultPop 0.3s ease;
}

.result-message.lose {
  color: #999999;
}

@keyframes resultPop {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* History */
.history-section {
  max-width: 500px;
  margin: 0 auto;
  padding: 0 1rem;
}

.history-title {
  font-size: 1rem;
  font-weight: 600;
  color: #999999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  text-align: center;
}

.history-list {
  background-color: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #2a2a2a;
  font-size: 0.875rem;
}

.history-item:last-child {
  border-bottom: none;
}

.history-result {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.history-symbols {
  font-size: 1rem;
  letter-spacing: 0.25em;
}

.history-change {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.history-change.positive {
  color: #4ade80;
}

.history-change.negative {
  color: #ff4444;
}

.history-empty {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.875rem;
  color: #999999;
}

/* ============================================================
   Responsive Game
   ============================================================ */
@media (min-width: 768px) {
  .slot-machine {
    padding: 2.5rem;
  }
  
  .reel {
    width: 100px;
    height: 300px;
  }
  
  .symbol {
    width: 100px;
    height: 100px;
    font-size: 3rem;
  }
  
  .slot-controls {
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  
  .spin-btn {
    min-width: 200px;
  }
}
