/* CandlCrew Restaurant Training Game CSS */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  color: #333;
}

.hero-section {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.95);
  margin: 20px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
}

.hero-title i {
  color: #f1770a;
  margin-right: 15px;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 40px;
}

.game-modes {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #f1770a, #fbbf24);
  color: white;
  box-shadow: 0 4px 15px rgba(241, 119, 10, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(241, 119, 10, 0.4);
}

.btn-secondary {
  background: #6b7280;
  color: white;
}

.btn-secondary:hover {
  background: #4b5563;
  transform: translateY(-2px);
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: white;
}

.btn-success:hover {
  transform: translateY(-2px);
}

.sections-grid {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.sections-grid h2 {
  text-align: center;
  font-size: 2.5rem;
  color: white;
  margin-bottom: 40px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.section-card {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.section-card h3 {
  font-size: 1.4rem;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-card h3 i {
  color: #f1770a;
  font-size: 1.2rem;
}

.section-card p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.section-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #888;
}

.section-progress {
  background: #e5e7eb;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.section-progress-fill {
  background: linear-gradient(90deg, #f1770a, #fbbf24);
  height: 100%;
  transition: width 0.3s ease;
}

.game-container {
  max-width: 800px;
  margin: 20px auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.game-header {
  background: #f8fafc;
  padding: 25px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.progress-info {
  flex: 1;
}

.progress-bar {
  background: #e5e7eb;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  background: linear-gradient(90deg, #f1770a, #fbbf24);
  height: 100%;
  transition: width 0.3s ease;
}

.game-stats {
  display: flex;
  gap: 30px;
}

.stat {
  font-weight: 600;
  color: #333;
}

.question-container {
  padding: 40px;
}

#question-content {
  font-size: 1.3rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 30px;
  line-height: 1.5;
}

.answer-options {
  margin-bottom: 30px;
}

.option {
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option:hover {
  border-color: #f1770a;
  background: #fff7ed;
}

.option.selected {
  border-color: #f1770a;
  background: #fff7ed;
  box-shadow: 0 0 0 3px rgba(241, 119, 10, 0.1);
}

.question-actions {
  text-align: center;
}

.feedback {
  margin: 30px 40px 0;
  padding: 20px;
  border-radius: 10px;
  border-left: 5px solid;
}

.feedback.correct {
  background: #f0fdf4;
  border-left-color: #10b981;
  color: #065f46;
}

.feedback.incorrect {
  background: #fef2f2;
  border-left-color: #ef4444;
  color: #991b1b;
}

.results-container {
  max-width: 600px;
  margin: 40px auto;
  background: white;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.results-content {
  padding: 50px 40px;
}

.results-content h2 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 30px;
}

#results-stats {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: #666;
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .game-modes {
    flex-direction: column;
    align-items: center;
  }
  
  .sections {
    grid-template-columns: 1fr;
  }
  
  .game-header {
    flex-direction: column;
    text-align: center;
  }
  
  .game-stats {
    justify-content: center;
  }
  
  .question-container {
    padding: 25px;
  }
  
  .results-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* Loading and Error States */
.loading {
  text-align: center;
  padding: 60px;
  color: white;
  font-size: 1.2rem;
}

.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 20px;
  margin: 20px;
  color: #991b1b;
  text-align: center;
}

/* Floating Home Button */
.floating-home-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f1770a, #fbbf24);
  color: white;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(241, 119, 10, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-home-btn:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 12px 35px rgba(241, 119, 10, 0.5);
}

.floating-home-btn:active {
  transform: translateY(-1px) scale(1.05);
}

/* Navigation Improvements */
.results-container {
  position: relative;
}

.game-header {
  align-items: center;
  gap: 15px;
}

.game-header .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.progress-info {
  text-align: center;
}

.results-actions {
  gap: 15px;
}

.results-actions .btn {
  min-width: 120px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

.floating-home-btn {
  animation: float 3s ease-in-out infinite;
}

.section-card {
  animation: fadeIn 0.6s ease;
}

.section-card:nth-child(1) { animation-delay: 0.1s; }
.section-card:nth-child(2) { animation-delay: 0.2s; }
.section-card:nth-child(3) { animation-delay: 0.3s; }
.section-card:nth-child(4) { animation-delay: 0.4s; }