/* Musician 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: #E8BFFF;
  font-size: 1.5em;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(139, 0, 139, 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(139, 0, 139, 0.4);
  box-shadow: 
    0 0 15px rgba(139, 0, 139, 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(139, 0, 139, 0.2),
    0 0 2px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

/* Character token styling */
.preview-token.musician {
  background: radial-gradient(circle at 30% 30%, #DDA0DD 10%, #8B008B 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 #8B008B,
    0 0 16px #8B008B88;
  border: 1.5px solid #4B0082;
  font-weight: 900;
  text-shadow: 0 0 8px #8B008B, 0 0 4px #fff;
  position: absolute;
  z-index: 10;
}

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

/* Ally tokens */
.preview-token.ally {
  background: radial-gradient(circle at 30% 30%, #60A5FA 10%, #2563EB 60%);
  color: #ffffff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7em;
  box-shadow: 
    0 0 8px #2563EB,
    0 0 16px #2563EB88;
  border: 1.5px solid #1D4ED8;
  font-weight: 700;
  text-shadow: 0 0 8px #2563EB, 0 0 4px #fff;
  position: absolute;
  z-index: 10;
}

/* Boosted ally effects */
.preview-token.ally.boosted-positive {
  animation: positiveBoost 2s ease-in-out infinite;
}

.preview-token.ally.boosted-negative {
  animation: negativeBoost 2s ease-in-out infinite;
}

@keyframes positiveBoost {
  0%, 100% {
    box-shadow: 
      0 0 8px #22C55E,
      0 0 16px #22C55E88;
    border-color: #16A34A;
  }
  50% {
    box-shadow: 
      0 0 12px #22C55E,
      0 0 24px #22C55E88,
      0 0 36px #22C55E44;
    transform: scale(1.1);
    border-color: #22C55E;
  }
}

@keyframes negativeBoost {
  0%, 100% {
    box-shadow: 
      0 0 8px #EF4444,
      0 0 16px #EF444488;
    border-color: #DC2626;
  }
  50% {
    box-shadow: 
      0 0 12px #EF4444,
      0 0 24px #EF444488,
      0 0 36px #EF444444;
    transform: scale(0.9);
    border-color: #EF4444;
  }
}

/* PIANO TILES ELEMENTS */

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

.piano-key {
  width: 25px;
  height: 40px;
  background: linear-gradient(135deg, #fff 0%, #f8f8f8 100%);
  border: 2px solid #333;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  position: relative;
  color: #333;
  font-weight: bold;
}

.piano-key.pressed {
  background: linear-gradient(135deg, #E8BFFF 0%, #DDA0DD 100%);
  transform: translateY(2px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Musical notes floating effect */
.musical-notes {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  animation: floatingNotes 3s ease-in-out infinite;
}

.musical-note {
  font-size: 1.2em;
  color: #E8BFFF;
  text-shadow: 0 0 8px rgba(139, 0, 139, 0.6);
  animation: noteFloat 2s ease-in-out infinite;
}

.musical-note:nth-child(1) { animation-delay: 0s; }
.musical-note:nth-child(2) { animation-delay: 0.3s; }
.musical-note:nth-child(3) { animation-delay: 0.6s; }

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

@keyframes noteFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

/* Performance rating stars */
.performance-rating {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 10px 0;
  padding: 8px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 6px;
}

.star {
  font-size: 1.2em;
  color: #FFD700;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  animation: starTwinkle 2s ease-in-out infinite;
}

.star.filled {
  animation: starShine 1.5s ease-in-out infinite;
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes starShine {
  0%, 100% { 
    color: #FFD700;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
  }
  50% { 
    color: #FFF700;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.9);
    transform: scale(1.2);
  }
}

/* Ally effect indicators */
.ally-effects {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.effect-scenario {
  padding: 8px;
  border-radius: 6px;
  text-align: center;
  font-size: 0.7em;
  font-weight: bold;
  border: 2px solid;
}

.effect-scenario.three-stars {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22C55E;
  color: #22C55E;
  text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.effect-scenario.two-stars {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3B82F6;
  color: #3B82F6;
  text-shadow: 0 0 8px rgba(59, 130, 246, 0.6);
}

.effect-scenario.one-star {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #EF4444;
  text-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

/* Value change display */
.value-change-display {
  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;
}

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

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

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

.change-value {
  font-weight: bold;
  font-size: 1em;
}

/* RESPONSIVE DESIGN */
@media (max-width: 480px) {
  .preview-cell {
    width: 28px;
    height: 28px;
    font-size: 0.7em;
  }
  
  .preview-token.musician {
    width: 22px;
    height: 22px;
    font-size: 0.7em;
  }
  
  .preview-token.ally {
    width: 20px;
    height: 20px;
    font-size: 0.65em;
  }
  
  .piano-key {
    width: 20px;
    height: 32px;
    font-size: 0.7em;
  }
  
  .piano-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.musician {
    width: 20px;
    height: 20px;
    font-size: 0.6em;
  }
  
  .preview-token.ally {
    width: 18px;
    height: 18px;
    font-size: 0.55em;
  }
  
  .piano-key {
    width: 18px;
    height: 28px;
    font-size: 0.6em;
  }
  
  .preview-board {
    padding: 5px;
    gap: 1px;
  }
  
  .ability-preview-container {
    padding: 12px;
  }
  
  .ally-effects {
    grid-template-columns: 1fr;
    gap: 4px;
  }
} 