/* Gambler Preview CSS - Mobile-first design */

.ability-preview-container {
  margin: 20px 0;
  padding: 15px;
  background: linear-gradient(135deg, #1a1f3a 0%, #0d1225 100%);
  border-radius: 12px;
  border: 2px solid rgba(0, 226, 255, 0.3);
  box-shadow: 
    0 0 20px rgba(0, 226, 255, 0.2),
    inset 0 0 15px rgba(0, 0, 0, 0.4);
}

.ability-preview-title {
  text-align: center;
  color: #00e2ff;
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(0, 226, 255, 0.5);
}

.ability-preview-boards {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.preview-board-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.preview-board-label {
  color: #a6f9ff;
  font-size: 0.8em;
  font-weight: 500;
  text-align: center;
  opacity: 0.9;
}

.ability-arrow {
  color: #DC143C;
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(220, 20, 60, 0.6);
  animation: bounceArrow 2s ease-in-out infinite;
}

@keyframes bounceArrow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* PREVIEW BOARD */
.preview-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 2px;
  background: linear-gradient(135deg, #151a32 30%, #1b2d56 100%);
  padding: 8px;
  border-radius: 8px;
  border: 2px solid rgba(220, 20, 60, 0.4);
  box-shadow: 
    0 0 15px rgba(220, 20, 60, 0.3),
    0 0 10px rgba(0, 0, 0, 0.6);
}

.preview-cell {
  width: 32px;
  height: 32px;
  background: linear-gradient(145deg, #1e2744 70%, #253555 100%);
  border: 1px solid rgba(58, 68, 134, 0.4);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 0.8em;
  font-weight: 700;
  font-family: 'Audiowide', 'Orbitron', sans-serif;
  color: #fff;
  box-shadow: 
    0 0 3px rgba(220, 20, 60, 0.2),
    0 0 2px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

/* Character token styling */
.preview-token.gambler {
  background: radial-gradient(circle at 30% 30%, #FF6B9D 10%, #DC143C 60%);
  color: #ffffff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  box-shadow: 
    0 0 8px #DC143C,
    0 0 16px #DC143C88;
  border: 1.5px solid #8B0000;
  font-weight: 900;
  text-shadow: 0 0 8px #DC143C, 0 0 4px #fff;
  position: absolute;
  z-index: 10;
}

/* SVG decoration for gambler in preview */
.preview-token.gambler::before {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url('../../svg/gambler-decoration.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: -1;
}

/* Value change indicators */
.preview-token.gambler.value-changed {
  animation: gamblerValueChange 2s ease-in-out infinite;
}

@keyframes gamblerValueChange {
  0%, 100% {
    box-shadow: 
      0 0 8px #DC143C,
      0 0 16px #DC143C88;
  }
  50% {
    box-shadow: 
      0 0 12px #FFD700,
      0 0 24px #FFD70088,
      0 0 36px #FFD70044;
    transform: scale(1.1);
  }
}

/* CARD GAME ELEMENTS */

/* Cards display area */
.cards-showcase {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
  min-height: 60px;
  padding: 10px;
  background: rgba(220, 20, 60, 0.1);
  border: 1px solid rgba(220, 20, 60, 0.3);
  border-radius: 8px;
}

.preview-card {
  width: 35px;
  height: 50px;
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border: 2px solid #333;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7em;
  font-weight: bold;
  padding: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  color: #333;
}

.preview-card.red-suit {
  color: #DC143C;
}

.preview-card.black-suit {
  color: #333;
}

.card-value {
  font-size: 0.8em;
  font-weight: bold;
}

.card-suit {
  font-size: 1em;
}

/* Outcome indicators */
.outcome-indicator {
  padding: 8px 12px;
  border-radius: 6px;
  text-align: center;
  font-weight: bold;
  font-size: 0.8em;
  margin: 5px 0;
  animation: outcomeGlow 2s ease-in-out infinite;
}

.outcome-indicator.win {
  background: rgba(34, 197, 94, 0.2);
  border: 2px solid #22C55E;
  color: #22C55E;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.outcome-indicator.bust {
  background: rgba(239, 68, 68, 0.2);
  border: 2px solid #EF4444;
  color: #EF4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.outcome-indicator.abandon {
  background: rgba(156, 163, 175, 0.2);
  border: 2px solid #9CA3AF;
  color: #9CA3AF;
  text-shadow: 0 0 8px rgba(156, 163, 175, 0.6);
}

@keyframes outcomeGlow {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Health change visualization */
.health-change {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 10px 0;
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
}

.health-arrow {
  font-size: 1.2em;
  font-weight: bold;
}

.health-arrow.positive {
  color: #22C55E;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.health-arrow.negative {
  color: #EF4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

.health-value {
  font-weight: bold;
  font-size: 1.1em;
}

/* Risk assessment display */
.risk-assessment {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.risk-option {
  padding: 6px;
  border-radius: 4px;
  text-align: center;
  font-size: 0.7em;
  font-weight: bold;
  border: 1px solid;
}

.risk-option.win-scenario {
  background: rgba(34, 197, 94, 0.1);
  border-color: #22C55E;
  color: #22C55E;
}

.risk-option.bust-scenario {
  background: rgba(239, 68, 68, 0.1);
  border-color: #EF4444;
  color: #EF4444;
}

.risk-option.abandon-scenario {
  background: rgba(156, 163, 175, 0.1);
  border-color: #9CA3AF;
  color: #9CA3AF;
}

/* RESPONSIVE DESIGN */
@media (max-width: 480px) {
  .preview-cell {
    width: 28px;
    height: 28px;
    font-size: 0.7em;
  }
  
  .preview-token.gambler {
    width: 22px;
    height: 22px;
    font-size: 0.7em;
  }
  
  .preview-card {
    width: 30px;
    height: 42px;
    font-size: 0.6em;
  }
  
  .cards-showcase {
    gap: 6px;
    min-height: 50px;
  }
  
  .preview-board {
    padding: 6px;
    gap: 1.5px;
  }
}

@media (max-width: 360px) {
  .preview-cell {
    width: 24px;
    height: 24px;
    font-size: 0.65em;
  }
  
  .preview-token.gambler {
    width: 20px;
    height: 20px;
    font-size: 0.6em;
  }
  
  .preview-card {
    width: 25px;
    height: 36px;
    font-size: 0.55em;
  }
  
  .preview-board {
    padding: 5px;
    gap: 1px;
  }
  
  .ability-preview-container {
    padding: 12px;
  }
  
  .risk-assessment {
    grid-template-columns: 1fr;
    gap: 4px;
  }
} 