/* Puzzle Generation Styles */

/* Puzzle Generation Loader */
#puzzle-generation-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  font-family: Arial, sans-serif;
}

.puzzle-loader-overlay {
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.puzzle-loader-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.puzzle-loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: puzzle-loader-spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes puzzle-loader-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.puzzle-loader-content h3 {
  margin: 0 0 0.5rem 0;
  color: #333;
  font-size: 1.2rem;
}

.puzzle-loader-content p {
  margin: 0 0 1rem 0;
  color: #666;
  font-size: 0.9rem;
}

.puzzle-loader-progress {
  width: 100%;
  height: 6px;
  background-color: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.puzzle-loader-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 3px;
  animation: puzzle-loader-progress 3s ease-in-out infinite;
}

@keyframes puzzle-loader-progress {
  0% { width: 10%; }
  50% { width: 70%; }
  100% { width: 90%; }
}

/* Puzzle Difficulty Display */
.puzzle-difficulty-display {
  text-align: center;
  margin: 10px 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.simple-difficulty-display {
  text-align: center;
  font-size: 14px;
  margin: 8px 0;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  color: #333;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.difficulty-stars {
  font-size: 16px;
  color: #ffd700;
  margin-right: 8px;
}

.difficulty-label {
  font-weight: 500;
  color: #333;
}

.difficulty-details {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

/* Responsive Design */
@media (max-width: 600px) {
  .puzzle-loader-content {
    max-width: 320px;
    padding: 1.5rem;
  }
  
  .puzzle-loader-content h3 {
    font-size: 1.1rem;
  }
  
  .puzzle-loader-content p {
    font-size: 0.85rem;
  }
  
  .puzzle-loader-spinner {
    width: 40px;
    height: 40px;
  }
  
  .simple-difficulty-display {
    font-size: 13px;
    margin: 6px 0;
    padding: 3px 6px;
  }
}

@media (max-width: 400px) {
  .puzzle-loader-content {
    max-width: 280px;
    padding: 1rem;
  }
  
  .puzzle-loader-content h3 {
    font-size: 1rem;
  }
  
  .puzzle-loader-content p {
    font-size: 0.8rem;
  }
  
  .puzzle-loader-spinner {
    width: 35px;
    height: 35px;
  }
  
  .simple-difficulty-display {
    font-size: 12px;
  }
  
  .difficulty-stars {
    font-size: 14px;
  }
}