:root {
  --gold: #d4af37;
  --gold-dim: #b39030;
  --dark-green: #0f3d2e;
  --emerald: #0b2e23;
  --cream: #fdfbf7;
  --black-overlay: rgba(0, 0, 0, 0.65);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --border-color: rgba(212, 175, 55, 0.3);
}

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

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--cream);
  background-color: var(--emerald);
  min-height: 100vh;
  position: relative;
}

/* Background consistent with other pages */
.bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/bg.png') no-repeat center center/cover;
  z-index: -2;
  filter: brightness(0.6) contrast(1.1);
  position: fixed;
  /* Fixed for quiz page to avoid scroll issues */
}

.bg-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8));
  z-index: -1;
}

/* Navigation - Consistent with Lookbook/Home */
.main-nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  position: fixed;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.nav-brand-logo {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--cream);
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}


/* Quiz Layout */
.quiz-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
  /* Nav space */
}

.quiz-content {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  max-width: 800px;
  width: 90%;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 400px;
  /* Ensure height for transitions */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Decorative Gold Lines (Inspired by Home) */
.glass-card::before,
.glass-card::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  border: 2px solid var(--gold);
  opacity: 0.3;
  transition: all 0.5s ease;
}

.glass-card::before {
  top: 20px;
  left: 20px;
  border-bottom: none;
  border-right: none;
}

.glass-card::after {
  bottom: 20px;
  right: 20px;
  border-top: none;
  border-left: none;
}


/* Quiz Steps & Transitions */
.quiz-step {
  display: none;
  /* Hidden by default */
  flex-direction: column;
  align-items: center;
  width: 100%;
  animation: fadeIn 0.5s ease-out;
}

.quiz-step.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
.quiz-title,
.result-title,
.question-text {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.quiz-title {
  font-size: 2.5rem;
}

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

.result-title {
  font-size: 2.2rem;
}

.quiz-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  font-weight: 300;
  max-width: 600px;
  line-height: 1.6;
}

/* Options Grid */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  max-width: 600px;
}

.option-btn {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--cream);
  padding: 1.2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.option-btn:hover {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.cta-button {
  display: inline-block;
  padding: 14px 35px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 1rem;
}

.cta-button:hover {
  background: var(--gold);
  color: var(--dark-green);
}

.secondary-btn {
  background: transparent;
  border: none;
  color: var(--cream);
  text-decoration: underline;
  margin-top: 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.secondary-btn:hover {
  opacity: 1;
}


/* Result Section */
.result-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2rem;
  text-align: left;
  width: 100%;
}

.result-image-container {
  flex: 1;
  max-width: 300px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.result-img {
  width: 100%;
  height: auto;
  display: block;
}

.result-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.result-details h3 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--gold);
}

.result-details p {
  line-height: 1.6;
  font-size: 1rem;
  opacity: 0.9;
}


.did-you-know {
  font-size: 0.9rem;
  color: #fff;
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 1rem;
  margin: 1rem 0;
  opacity: 0.8;
}

.identify-section {
  font-size: 0.9rem;
  color: #fff;
  opacity: 0.9;
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.identify-label {
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.3rem;
  font-family: 'Montserrat', sans-serif;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .options-grid {
    grid-template-columns: 1fr;
  }

  .result-content {
    flex-direction: column;
    text-align: center;
  }

  .quiz-title {
    font-size: 2rem;
  }

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

  /* Mobile Nav */
  .main-nav {
    justify-content: center;
  }

  .nav-links {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #0f3d2e;
    padding: 1rem;
    justify-content: space-around;
    border-top: 1px solid var(--gold);
    z-index: 1000;
  }
}