/* Quiz Container */
.quiz-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  margin-bottom: 2rem;
  animation: fadeInUp 0.5s ease;
}

/* Progress Bar */
.progress-container {
  margin-bottom: 2rem;
}

.progress-text {
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
}

.progress-bar {
  background: #e2e8f0;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  background: linear-gradient(90deg, #68d391, #48bb78);
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 4px;
}

/* Question */
.question {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 2rem;
  line-height: 1.4;
  text-align: center;
}

/* Options */
.options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.option-btn {
  background: #f7fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  color: #2d3748;
  line-height: 1.5;
  position: relative;
  overflow: hidden;
}

.option-btn:hover {
  background: #edf2f7;
  border-color: #cbd5e0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.option-btn:active {
  transform: translateY(0);
}

.option-btn.selected {
  background: #e6fffa;
  border-color: #38b2ac;
  color: #234e52;
}

.option-btn.selected::after {
  content: '✓';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #38b2ac;
  font-weight: bold;
  font-size: 1.2rem;
}

.option-btn:focus {
  outline: 2px solid #4299e1;
  outline-offset: 2px;
}

/* Loading State */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading .option-btn {
  cursor: not-allowed;
}

/* Result Container */
.result-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
  text-align: center;
  display: none;
}

.result-container.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.result-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

.result-container h2, .result-container h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 1rem;
}

.result-title {
  font-weight: 800;
  background: linear-gradient(45deg, #68d391, #48bb78);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.result-description {
  font-size: 1.1rem;
  color: #4a5568;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Share Section */
.share-section {
  background: linear-gradient(135deg, #f7f4f0 0%, #e8e2d4 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 2rem;
  text-align: center;
}

.share-section h3, .share-section h4 {
  color: #2d3748;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.share-text {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-text:hover {
  border-color: #cbd5e0;
  background: #f7fafc;
}

.share-text.copied {
  background: #f0fff4;
  border-color: #68d391;
  color: #22543d;
}

/* Quiz Header (for standalone pages) */
.quiz-header {
  text-align: center;
  padding: 3rem 0 2rem;
  background: linear-gradient(135deg, #f7f4f0 0%, #e8e2d4 100%);
  margin: 0 -2rem 3rem;
  border-radius: 0 0 20px 20px;
}

.quiz-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #2d3748;
}

.quiz-header p {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
  .quiz-header {
    margin: 0 -1rem 2rem;
    padding: 2rem 1rem;
  }

  .quiz-header h1 {
    font-size: 2rem;
  }

  .quiz-container {
    padding: 2rem 1.5rem;
  }

  .result-container {
    padding: 2rem 1.5rem;
  }

  .question {
    font-size: 1.2rem;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .question {
    font-size: 1.1rem;
  }

  .option-btn {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  .result-icon {
    font-size: 3.5rem;
  }
}

