/* ===================================
   Quiz-Specific Styles
   =================================== */

.quiz-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing);
}

/* ===================================
   Quiz Introduction Section
   =================================== */
.quiz-intro {
  text-align: center;
  padding: 3rem 0;
}

.intro-content h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.intro-description {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.character-preview {
  margin: 3rem 0;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.character-card {
  background: var(--card-background);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.character-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--accent-color);
}

.character-card h3 {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.character-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

.start-quiz-btn {
  background: linear-gradient(135deg, var(--accent-color), #f6ad55);
  color: white;
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.start-quiz-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(237, 137, 54, 0.4);
  background: linear-gradient(135deg, #f6ad55, var(--accent-color));
}

/* ===================================
   Quiz Questions Section
   =================================== */
.quiz-questions {
  padding: 2rem 0;
}

.progress-bar {
  background: var(--border-color);
  border-radius: 10px;
  height: 10px;
  margin-bottom: 2rem;
  overflow: hidden;
  position: relative;
}

.progress-fill {
  background: linear-gradient(90deg, var(--accent-color), #f6ad55);
  height: 100%;
  width: 0%;
  transition: width 0.5s ease;
  border-radius: 10px;
}

.progress-text {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.question-container {
  background: var(--card-background);
  border-radius: 15px;
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-color);
}

.question h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.question-text {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 2rem;
  font-weight: 500;
  line-height: 1.6;
}

.answers {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.answer-btn {
  background: var(--background-color);
  border: 2px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  line-height: 1.5;
  min-height: 60px;
  display: flex;
  align-items: center;
}

.answer-btn:hover {
  border-color: var(--accent-color);
  background: rgba(237, 137, 54, 0.05);
  transform: translateX(5px);
}

.answer-btn.selected {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
  transform: translateX(10px);
  box-shadow: 0 4px 15px rgba(237, 137, 54, 0.3);
}

/* ===================================
   Quiz Navigation
   =================================== */
.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.nav-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-btn:hover:not(:disabled) {
  background: #2d3748;
  transform: translateY(-2px);
}

.nav-btn:disabled {
  background: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===================================
   Quiz Results Section
   =================================== */
.quiz-results {
  padding: 2rem 0;
  text-align: center;
}

.result-content h2 {
  font-size: 2.2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 600;
}

.character-result {
  background: var(--card-background);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-medium);
  border: 3px solid;
  animation: fadeInUp 0.8s ease-out;
}

.character-result h3 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.character-title {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 0.5rem;
  opacity: 0.9;
  font-weight: 500;
}

.character-ballet {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.8;
}

.character-description {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: left;
}

.character-traits {
  text-align: left;
  margin-bottom: 2rem;
}

.character-traits h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

.character-traits ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.character-traits li {
  background: rgba(255, 255, 255, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.character-quote {
  font-size: 1.2rem;
  font-style: italic;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  border-left: 4px solid var(--accent-color);
  position: relative;
}

.character-quote::before {
  content: '"';
  font-size: 3rem;
  position: absolute;
  top: -10px;
  left: 20px;
  opacity: 0.3;
  font-family: serif;
}

.result-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.retake-btn,
.explore-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  min-width: 120px;
}

.retake-btn {
  background: var(--primary-color);
  color: white;
  border: none;
}

.retake-btn:hover {
  background: #2d3748;
  transform: translateY(-2px);
}

.explore-btn {
  background: var(--accent-color);
  color: white;
  border: none;
}

.explore-btn:hover {
  background: #f6ad55;
  transform: translateY(-2px);
}

/* ===================================
   Social Sharing Section
   =================================== */
.share-section {
  margin: 1.5rem 0;
}

.share-title {
  font-size: 1rem;
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: 500;
}

.social-buttons {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  min-width: 100px;
  justify-content: center;
}

.twitter-btn {
  background: #1da1f2;
}

.twitter-btn:hover {
  background: #0d8bd9;
  transform: translateY(-2px);
}

.pinterest-btn {
  background: #e60023;
}

.pinterest-btn:hover {
  background: #c8001f;
  transform: translateY(-2px);
}

.copy-btn {
  background: var(--text-secondary);
}

.copy-btn:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 768px) {
  .quiz-container {
    padding: 1rem;
  }

  .intro-content h1 {
    font-size: 2rem;
  }

  .character-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.8rem;
  }

  .character-card {
    padding: 1rem;
  }

  .question-container {
    padding: 1.5rem;
  }

  .character-result {
    padding: 2rem;
  }

  .character-result h3 {
    font-size: 2rem;
  }

  .result-actions {
    flex-direction: column;
    align-items: center;
  }

  .retake-btn,
  .explore-btn {
    width: 100%;
    max-width: 250px;
  }

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

  .social-btn {
    width: 100%;
    max-width: 200px;
  }

  .quiz-navigation {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .intro-content h1 {
    font-size: 1.8rem;
  }

  .intro-description {
    font-size: 1rem;
  }

  .character-grid {
    grid-template-columns: 1fr 1fr;
  }

  .question-text {
    font-size: 1.1rem;
  }

  .answer-btn {
    padding: 0.8rem;
    font-size: 0.9rem;
    min-height: 50px;
  }
}
