/* Helcast Word Tactics Game Styles */

.helcast-game {
  min-height: 100vh;
  padding: 2rem;
  transition: background-color 0.5s;
}

/* Theme Backgrounds */
.helcast-game.theme-stealth {
  background: linear-gradient(135deg, #020617 0%, #0f172a 100%);
  color: #e2e8f0;
}

.helcast-game.theme-military {
  background: linear-gradient(135deg, #0f170a 0%, #1a2e05 100%);
  color: #d1fae5;
}

.helcast-game.theme-cyber {
  background: linear-gradient(135deg, #0c0a17 0%, #1e1b4b 100%);
  color: #c7d2fe;
}

/* Header */
.helcast-header {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.helcast-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  margin: 0;
  font-family: 'Bebas Neue', 'Arial Black', sans-serif;
}

.helcast-title.color-cyan {
  color: #22d3ee;
}

.helcast-title.color-rose {
  color: #f43f5e;
}

.helcast-title.color-emerald {
  color: #10b981;
}

.helcast-title.color-amber {
  color: #f59e0b;
}

.turn-indicator {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.turn-indicator.my-turn {
  background: rgba(34, 211, 238, 0.2);
  border-color: #22d3ee;
  animation: pulse 2s infinite;
}

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

/* Game Board */
.game-board-container {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.grid-container {
  position: relative;
  background: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.letter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.tile {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid #334155;
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  font-family: 'Bebas Neue', Arial, sans-serif;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: #64748b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tile.selected {
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
  border-color: #22d3ee;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.5);
  transform: scale(1.05);
}

.tile-letter {
  font-size: 2rem;
  font-weight: 900;
  color: white;
}

.tile-points {
  font-size: 0.75rem;
  color: #94a3b8;
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
}

.multiplier {
  position: absolute;
  top: 0.25rem;
  left: 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
}

.word-mult {
  background: #f59e0b;
  color: white;
}

.letter-mult {
  background: #22d3ee;
  color: white;
}

.tile.word-mult-2 {
  border-color: #f59e0b;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.3);
}

.tile.word-mult-3 {
  border-color: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.tile.letter-mult-2 {
  border-color: #22d3ee;
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}

.tile.letter-mult-3 {
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

.selection-order {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background: white;
  color: #0f172a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
}

/* Controls */
.controls {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  justify-content: center;
}

.controls.disabled {
  opacity: 0.5;
  text-align: center;
  padding: 1rem;
  color: #64748b;
}

.btn {
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Bebas Neue', Arial, sans-serif;
  letter-spacing: 0.05em;
}

.btn-clear {
  background: #64748b;
  color: white;
}

.btn-clear:hover {
  background: #475569;
}

.btn-submit {
  background: #22d3ee;
  color: #0f172a;
}

.btn-submit:hover {
  background: #06b6d4;
  transform: translateY(-2px);
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Word Display */
.word-display {
  max-width: 600px;
  margin: 2rem auto;
  min-height: 4rem;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.current-word {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.3em;
  color: #22d3ee;
  font-family: 'Bebas Neue', Arial, sans-serif;
}

.potential-score {
  font-size: 1rem;
  color: #94a3b8;
  margin-top: 0.5rem;
}

.last-word {
  font-size: 2rem;
  font-weight: 900;
  font-family: 'Bebas Neue', Arial, sans-serif;
}

.last-word.valid {
  color: #10b981;
}

.last-word.invalid {
  color: #64748b;
}

.placeholder {
  color: #475569;
  font-size: 1.25rem;
  opacity: 0.5;
}

/* Scoreboard */
.scoreboard {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.scoreboard h3 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  color: #64748b;
  font-family: 'Bebas Neue', Arial, sans-serif;
}

.player-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.player-card.active {
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.1);
}

.player-name {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: 'Bebas Neue', Arial, sans-serif;
}

.player-stats {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.score {
  font-size: 1.5rem;
  font-weight: 900;
  color: #22d3ee;
}

.turns {
  font-size: 0.875rem;
  color: #64748b;
}

/* Game Over */
.game-over {
  text-align: center;
  padding: 3rem;
  max-width: 600px;
  margin: 0 auto;
}

.game-over h1 {
  font-size: 3rem;
  font-family: 'Bebas Neue', Arial, sans-serif;
  color: #22d3ee;
  margin-bottom: 2rem;
}

.winner {
  background: linear-gradient(135deg, #22d3ee 0%, #0ea5e9 100%);
  color: white;
  padding: 2rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
}

.winner h2 {
  font-size: 2.5rem;
  margin: 0;
  font-family: 'Bebas Neue', Arial, sans-serif;
}

.winner p {
  font-size: 1.5rem;
  margin: 0.5rem 0 0;
  opacity: 0.9;
}

.final-scores {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 0.75rem;
}

.final-scores h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: 'Bebas Neue', Arial, sans-serif;
}

.score-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
}

.rank {
  font-weight: 700;
  color: #64748b;
}

.name {
  flex: 1;
  margin: 0 1rem;
}

.score-row .score {
  font-weight: 900;
  color: #22d3ee;
}

/* Notifications */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 700;
  z-index: 1000;
  animation: slideIn 0.3s;
  max-width: 300px;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.notification.fade-out {
  animation: fadeOut 0.3s;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

.notification-info {
  background: #3b82f6;
  color: white;
}

.notification-success {
  background: #10b981;
  color: white;
}

.notification-error {
  background: #ef4444;
  color: white;
}

/* Color utilities */
.color-cyan {
  color: #22d3ee;
}
.color-rose {
  color: #f43f5e;
}
.color-emerald {
  color: #10b981;
}
.color-amber {
  color: #f59e0b;
}

/* Responsive */
@media (max-width: 768px) {
  .helcast-title {
    font-size: 2rem;
  }

  .letter-grid {
    gap: 0.25rem;
  }

  .tile-letter {
    font-size: 1.5rem;
  }

  .current-word {
    font-size: 1.75rem;
  }
}
