/* Monk 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;
}

.preview-board-label {
  color: #73f5ff;
  font-size: 0.8em;
  font-weight: 500;
  text-align: center;
}

.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(0, 226, 255, 0.4);
  box-shadow: 
    0 0 15px rgba(0, 226, 255, 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(0, 226, 255, 0.2),
    0 0 2px rgba(0, 0, 0, 0.4);
}

/* Monk token styling in preview */
.preview-cell.has-monk {
  position: relative;
}

.preview-token {
  background: radial-gradient(circle at 30% 30%, #FFD38C 10%, #FF8C00 60%);
  color: #4F2C00;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75em;
  box-shadow: 
    0 0 8px #FF8C00,
    0 0 16px #FF7F0088;
  border: 1.5px solid #4E361A;
  font-weight: 900;
  text-shadow: 0 0 8px #FF8C00, 0 0 4px #fff;
  position: absolute;
  z-index: 10;
}

/* SVG decoration for monk in preview */
.preview-token.monk::before {
  content: '';
  position: absolute;
  width: 36px;
  height: 36px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-image: url('../../svg/monk-decoration.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: -1;
}

/* Enemy tokens in preview */
.preview-enemy {
  background: radial-gradient(circle at 30% 30%, #ff86a3 10%, #DC143C 60%);
  color: #fff;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7em;
  border: 1.5px solid #3a1c29;
  box-shadow: 
    0 0 8px rgba(255, 62, 107, 0.6),
    0 0 12px rgba(255, 62, 107, 0.3);
  font-weight: 700;
  text-shadow: 0 0 8px #ff3e6b, 0 0 4px #fff;
  position: absolute;
  z-index: 10;
}

/* Highlight changed values */
.preview-token.value-changed {
  animation: valueGlow 1s ease-in-out infinite;
}

@keyframes valueGlow {
  0%, 100% {
    box-shadow: 
      0 0 8px #FF8C00,
      0 0 16px #FF7F0088;
  }
  50% {
    box-shadow: 
      0 0 12px #FF8C00,
      0 0 24px #FF7F00,
      0 0 32px #FFD700;
    transform: scale(1.1);
  }
}

/* Arrow indicator */
.ability-arrow {
  color: #00e2ff;
  font-size: 1.5em;
  text-align: center;
  text-shadow: 0 0 10px rgba(0, 226, 255, 0.8);
  animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.6; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(3px); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .preview-cell {
    width: 28px;
    height: 28px;
    font-size: 0.7em;
  }
  
  .preview-token {
    width: 22px;
    height: 22px;
    font-size: 0.65em;
  }
  
  .preview-enemy {
    width: 20px;
    height: 20px;
    font-size: 0.6em;
  }
  
  .preview-board {
    padding: 6px;
    gap: 1.5px;
  }
}

@media (max-width: 360px) {
  .preview-cell {
    width: 24px;
    height: 24px;
    font-size: 0.65em;
  }
  
  .preview-token {
    width: 20px;
    height: 20px;
    font-size: 0.6em;
  }
  
  .preview-enemy {
    width: 18px;
    height: 18px;
    font-size: 0.55em;
  }
  
  .preview-board {
    padding: 5px;
    gap: 1px;
  }
  
  .ability-preview-container {
    padding: 12px;
  }
}

/* Landscape orientation optimization */
@media (orientation: landscape) and (max-height: 600px) {
  .ability-preview-boards {
    flex-direction: row;
    gap: 20px;
  }
  
  .ability-arrow {
    transform: rotate(-90deg);
    margin: 0 10px;
  }
  
  @keyframes arrowPulse {
    0%, 100% { opacity: 0.6; transform: rotate(-90deg) translateX(0); }
    50% { opacity: 1; transform: rotate(-90deg) translateX(3px); }
  }
} 