/*
 * Styles for the LuxLife Quest plugin.
 *
 * The design draws on dark‑themed luxury aesthetics with gold accents and
 * generous whitespace.  Fonts are selected for elegance and readability.  All
 * sizes use relative units so that the game remains legible on phones and
 * tablets.
 */

:root {
  /* Colour palette */
  --lux-bg-gradient-start: #0d1b2a;
  --lux-bg-gradient-end:   #1b263b;
  --lux-primary:          #c5b358; /* muted gold */
  --lux-secondary:        #778da9; /* desaturated blue */
  --lux-text-light:       #f5f5f5;
  --lux-text-muted:       #b0bfcf;
  --lux-correct:          #2ca58d;
  --lux-wrong:            #d66b5d;
}

/* Basic container styling */
.luxlife-quest-wrapper {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, var(--lux-bg-gradient-start) 0%,
    var(--lux-bg-gradient-end) 100%);
  color: var(--lux-text-light);
  font-family: 'Montserrat', 'Arial', sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.luxlife-quest-wrapper h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  color: var(--lux-primary);
  text-align: center;
}

.luxlife-quest-wrapper .subtitle {
  font-size: 1rem;
  color: var(--lux-text-muted);
  text-align: center;
  margin-bottom: 2rem;
}

/* Progress bar */
.luxlife-progress {
  width: 100%;
  background-color: var(--lux-bg-gradient-start);
  border-radius: 0.5rem;
  overflow: hidden;
  margin-bottom: 1rem;
  height: 1rem;
}

.luxlife-progress-bar {
  height: 100%;
  width: 0;
  background-color: var(--lux-primary);
  transition: width 0.5s ease;
}

/* Question text */
.luxlife-question {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

/* Answer list */
.luxlife-answers {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.luxlife-answers li {
  background-color: var(--lux-bg-gradient-start);
  border: 1px solid var(--lux-secondary);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}

.luxlife-answers li:hover {
  background-color: rgba(197, 179, 88, 0.2);
  border-color: var(--lux-primary);
}

/* Selected states */
.luxlife-answers li.correct {
  border-color: var(--lux-correct);
  background-color: rgba(44, 165, 141, 0.2);
}

.luxlife-answers li.wrong {
  border-color: var(--lux-wrong);
  background-color: rgba(214, 107, 93, 0.2);
}

/* Feedback message */
.luxlife-feedback {
  margin-top: 1rem;
  font-size: 1rem;
}

.luxlife-feedback.correct {
  color: var(--lux-correct);
}
.luxlife-feedback.wrong {
  color: var(--lux-wrong);
}

/* Explanation / mini‑lesson section */
.luxlife-explanation {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--lux-text-muted);
}

/* Buttons */
.luxlife-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background-color: var(--lux-primary);
  color: #0d1b2a;
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s;
}

.luxlife-btn:hover {
  background-color: #d4af37;
}

/* Score summary */
.luxlife-score {
  text-align: center;
  margin-top: 2rem;
}

.luxlife-score h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--lux-primary);
}

.luxlife-score p {
  font-size: 1rem;
  color: var(--lux-text-muted);
}

/* Audio control */
.luxlife-audio-control {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: transparent;
  border: none;
  color: var(--lux-primary);
  cursor: pointer;
  font-size: 1.2rem;
}

.luxlife-audio-control:hover {
  color: #d4af37;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .luxlife-quest-wrapper {
    padding: 1.5rem;
  }
  .luxlife-quest-wrapper h1 {
    font-size: 1.8rem;
  }
  .luxlife-question {
    font-size: 1rem;
  }
  .luxlife-btn {
    width: 100%;
    padding: 0.75rem;
  }
}

/* Module selector styling */
.luxlife-module-selector {
  margin-bottom: 1.5rem;
  text-align: center;
}
.luxlife-module-selector h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--lux-primary);
}
.luxlife-module-selector ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.luxlife-module-selector li button {
  background-color: var(--lux-bg-gradient-start);
  border: 1px solid var(--lux-secondary);
  border-radius: 0.5rem;
  padding: 0.6rem 1.2rem;
  color: var(--lux-text-light);
  cursor: pointer;
  transition: background-color 0.3s, border-color 0.3s;
}
.luxlife-module-selector li button:hover {
  background-color: rgba(197, 179, 88, 0.2);
  border-color: var(--lux-primary);
}