/* DODOTRIS Styles */

.dodotris-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Menu Screen */
.menu-screen {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 30px 0;
  color: white;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.menu-section {
  margin-bottom: 25px;
}

.menu-section h3 {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 12px 0;
  font-weight: 600;
}

.button-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.button-group.vertical {
  flex-direction: column;
}

/* Button styles */
.mode-button,
.melody-button,
.synth-button,
.difficulty-button,
.back-button,
.play-again-button {
  padding: 12px 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
  min-width: 100px;
}

.mode-button:hover,
.melody-button:hover,
.synth-button:hover,
.difficulty-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mode-button.selected,
.melody-button.selected,
.synth-button.selected {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.difficulty-button {
  background: linear-gradient(135deg, #11998e, #38ef7d);
  border: none;
}

.difficulty-button:hover:not(:disabled) {
  background: linear-gradient(135deg, #0e8076, #2ed968);
}

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

.back-button,
.play-again-button {
  background: rgba(255, 255, 255, 0.15);
  margin-top: 20px;
}

.back-button:hover,
.play-again-button:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Game Over Overlay */
.game-over-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.game-over-screen {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.game-over-title {
  font-size: 48px;
  font-weight: bold;
  text-align: center;
  margin: 0 0 30px 0;
  color: white;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.stats-container {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 30px;
}

.stat {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:last-child {
  border-bottom: none;
}

.stat-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.stat-value {
  color: white;
  font-size: 18px;
  font-weight: bold;
}

/* Audio playback section (reused from FlappyDODO) */
.audio-playback-modern {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.audio-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.audio-title {
  font-size: 18px;
  font-weight: bold;
  color: white;
  margin: 0;
}

.synth-badge {
  font-size: 14px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.9);
}

.audio-player-container {
  margin-bottom: 15px;
}

.modern-audio-player {
  width: 100%;
  border-radius: 8px;
  outline: none;
}

.action-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.download-btn,
.suno-upload-button {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 120px;
}

.download-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.suno-upload-button {
  background: linear-gradient(135deg, #f093fb, #f5576c);
  color: white;
}

.download-btn:hover,
.suno-upload-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.suno-upload-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Controls hint */
.controls-hint {
  margin-top: 20px;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  text-align: center;
}

.controls-hint p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin: 5px 0;
}

/* Loading animations */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.loading-container {
  text-align: center;
  padding: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.loading-text {
  color: white;
  font-size: 16px;
  margin-bottom: 10px;
}
