/* ============================================
   CRAZYONOPOLY - Premium AAA Quality Styles
   Photo-Realistic UI Enhancement
   HappyStoner5420 Games!
   ============================================ */

/* ---- Premium Variables ---- */
:root {
  --premium-gold: linear-gradient(135deg, #ffd700 0%, #ffec80 30%, #ffd700 50%, #c9a000 100%);
  --premium-silver: linear-gradient(135deg, #c0c0c0 0%, #ffffff 30%, #c0c0c0 50%, #808080 100%);
  --premium-bronze: linear-gradient(135deg, #cd7f32 0%, #daa06d 30%, #cd7f32 50%, #8b4513 100%);
  --glassmorphism: rgba(20, 20, 50, 0.7);
  --glass-border: rgba(255, 255, 255, 0.15);
  --neon-red: 0 0 20px rgba(255, 68, 68, 0.8), 0 0 40px rgba(255, 68, 68, 0.4);
  --neon-gold: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.4);
  --neon-purple: 0 0 20px rgba(155, 89, 182, 0.8), 0 0 40px rgba(155, 89, 182, 0.4);
  --neon-green: 0 0 20px rgba(0, 255, 136, 0.8), 0 0 40px rgba(0, 255, 136, 0.4);
}

/* ============================================
   PREMIUM GLASSMORPHISM PANELS
   ============================================ */
.premium-panel {
  background: var(--glassmorphism);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Enhanced Player Cards */
#players-panel {
  background: linear-gradient(145deg, rgba(20, 20, 50, 0.9), rgba(10, 10, 30, 0.95));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 60px rgba(255, 215, 0, 0.05);
}

.player-card {
  background: linear-gradient(145deg, rgba(30, 30, 60, 0.9), rgba(20, 20, 45, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.player-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--premium-gold);
  opacity: 0;
  transition: opacity 0.3s;
}

.player-card.active::before {
  opacity: 1;
}

.player-card.active {
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 
    0 4px 20px rgba(255, 215, 0, 0.2),
    inset 0 0 30px rgba(255, 215, 0, 0.03);
  transform: scale(1.02);
}

/* ============================================
   PREMIUM DICE STYLING
   ============================================ */
#dice-area {
  background: linear-gradient(145deg, rgba(25, 25, 55, 0.95), rgba(15, 15, 40, 0.98));
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.die {
  width: 70px;
  height: 70px;
  background: linear-gradient(145deg, #ffffff, #e8e8e8);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 25px rgba(0, 0, 0, 0.4),
    inset 0 2px 4px rgba(255, 255, 255, 0.8),
    inset 0 -2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.die:hover {
  transform: translateY(-3px) rotateX(10deg) rotateY(-10deg);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.5),
    inset 0 2px 4px rgba(255, 255, 255, 0.8);
}

.die::before {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  height: 30%;
  background: linear-gradient(180deg, rgba(255,255,255,0.6), transparent);
  border-radius: 10px 10px 50% 50%;
  pointer-events: none;
}

.die-face {
  font-family: 'Bangers', cursive;
  font-size: 36px;
  color: #1a1a2e;
  text-shadow: 
    1px 1px 2px rgba(0, 0, 0, 0.2),
    -1px -1px 0 rgba(255, 255, 255, 0.5);
}

.die.rolling {
  animation: diceRoll3D 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes diceRoll3D {
  0% { transform: rotateX(0) rotateY(0) scale(1); }
  25% { transform: rotateX(180deg) rotateY(90deg) scale(1.1); }
  50% { transform: rotateX(360deg) rotateY(180deg) scale(1); }
  75% { transform: rotateX(540deg) rotateY(270deg) scale(1.1); }
  100% { transform: rotateX(720deg) rotateY(360deg) scale(1); }
}

/* ============================================
   PREMIUM ACTION BUTTONS
   ============================================ */
.action-btn {
  position: relative;
  padding: 14px 28px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(145deg, #e74c3c, #c0392b);
  color: white;
  box-shadow: 
    0 6px 20px rgba(231, 76, 60, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.action-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.action-btn:hover::before {
  left: 100%;
}

.action-btn:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 10px 30px rgba(231, 76, 60, 0.5),
    var(--neon-red);
}

.action-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

#btn-roll-dice {
  background: linear-gradient(145deg, #ffd700, #c9a000);
  color: #1a1a2e;
  font-size: 18px;
  padding: 16px 36px;
  box-shadow: 
    0 6px 25px rgba(255, 215, 0, 0.4),
    inset 0 2px 0 rgba(255, 255, 255, 0.4),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

#btn-roll-dice:hover {
  box-shadow: 
    0 12px 40px rgba(255, 215, 0, 0.5),
    var(--neon-gold);
  transform: translateY(-4px) scale(1.02);
}

/* ============================================
   PREMIUM GAME HUD
   ============================================ */
#game-hud {
  background: linear-gradient(180deg, rgba(10, 10, 30, 0.98), rgba(10, 10, 30, 0.9));
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.5),
    inset 0 -1px 0 rgba(255, 255, 255, 0.05);
}

#turn-display {
  background: linear-gradient(145deg, rgba(30, 30, 60, 0.9), rgba(20, 20, 45, 0.95));
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 12px 24px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#current-player-name {
  font-family: var(--font-game);
  font-size: 22px;
  background: var(--premium-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

#bank-display {
  background: linear-gradient(145deg, rgba(39, 174, 96, 0.2), rgba(30, 130, 76, 0.3));
  border: 1px solid rgba(39, 174, 96, 0.4);
  border-radius: 10px;
  padding: 10px 18px;
  box-shadow: 
    0 4px 15px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#bank-amount {
  font-family: var(--font-game);
  font-size: 24px;
  color: #2ecc71;
  text-shadow: 0 0 15px rgba(46, 204, 113, 0.5);
}

/* ============================================
   PREMIUM MESSAGE LOG
   ============================================ */
#message-log {
  background: linear-gradient(145deg, rgba(20, 20, 45, 0.95), rgba(10, 10, 30, 0.98));
  border: 1px solid rgba(100, 100, 200, 0.2);
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

#log-title {
  background: linear-gradient(90deg, transparent, rgba(155, 89, 182, 0.3), transparent);
  padding: 10px;
  font-family: var(--font-game);
  font-size: 16px;
  letter-spacing: 3px;
  color: #bb8fce;
  text-align: center;
  border-bottom: 1px solid rgba(155, 89, 182, 0.2);
}

#log-messages {
  padding: 12px;
  max-height: 200px;
  overflow-y: auto;
}

#log-messages::-webkit-scrollbar {
  width: 6px;
}

#log-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

#log-messages::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9b59b6, #6c3483);
  border-radius: 3px;
}

.log-msg {
  padding: 8px 12px;
  margin: 4px 0;
  background: rgba(30, 30, 60, 0.6);
  border-left: 3px solid #9b59b6;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  line-height: 1.4;
  animation: logSlideIn 0.3s ease-out;
}

@keyframes logSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   PREMIUM BOARD CONTAINER
   ============================================ */
#board-container {
  position: relative;
  border-radius: 16px;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 100px rgba(255, 215, 0, 0.05);
  overflow: hidden;
}

#board-container::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffd700, #c9a000, #ffd700, #8b6914);
  background-size: 400% 400%;
  border-radius: 18px;
  z-index: -1;
  animation: borderGlow 8s linear infinite;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================
   PREMIUM CASINO ENHANCEMENTS
   ============================================ */
.casino-game-btn {
  background: linear-gradient(145deg, rgba(30, 30, 60, 0.95), rgba(20, 20, 45, 0.98));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.casino-game-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}

.casino-game-btn:hover::before {
  opacity: 1;
}

.casino-game-btn:hover {
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    var(--neon-gold);
}

.casino-title {
  font-family: var(--font-game);
  font-size: 64px;
  background: var(--premium-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.6));
  animation: casinoTitlePulse 2s ease-in-out infinite alternate;
}

@keyframes casinoTitlePulse {
  from { filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.4)); }
  to { filter: drop-shadow(0 0 40px rgba(255, 215, 0, 0.8)); }
}

/* ============================================
   PREMIUM MONEY DISPLAY
   ============================================ */
.money-display {
  font-family: var(--font-game);
  background: linear-gradient(145deg, rgba(39, 174, 96, 0.2), rgba(30, 130, 76, 0.3));
  border: 1px solid rgba(46, 204, 113, 0.4);
  border-radius: 8px;
  padding: 6px 14px;
  color: #2ecc71;
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
  font-weight: 600;
}

.money-gain {
  animation: moneyGain 0.5s ease-out;
  color: #2ecc71;
}

.money-loss {
  animation: moneyLoss 0.5s ease-out;
  color: #e74c3c;
}

@keyframes moneyGain {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); color: #00ff88; text-shadow: 0 0 20px rgba(0, 255, 136, 0.8); }
  100% { transform: scale(1); }
}

@keyframes moneyLoss {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); color: #ff4444; text-shadow: 0 0 20px rgba(255, 68, 68, 0.8); }
  100% { transform: scale(1); }
}

/* ============================================
   PREMIUM PROPERTY CARDS
   ============================================ */
.property-card {
  background: linear-gradient(145deg, rgba(250, 250, 250, 0.98), rgba(230, 230, 230, 0.95));
  border-radius: 12px;
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
  transform: translateY(-5px) rotateX(5deg);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.property-card-header {
  padding: 12px;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  position: relative;
}

.property-card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.2);
}

/* ============================================
   SMOOTH SCROLLBARS
   ============================================ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #9b59b6, #6c3483);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #bb8fce, #9b59b6);
}

/* ============================================
   ANIMATIONS FOR PREMIUM FEEL
   ============================================ */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.shimmer-effect {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* Particle effect for wins */
@keyframes particleFloat {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

.win-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffd700;
  border-radius: 50%;
  animation: particleFloat 1.5s ease-out forwards;
}
