/* Styles for Breakout Interactive Quiz Hubs (How Long Would You Survive + Spotify Music-Vibe Matcher).
   100% CSS custom properties from styles/main.css — zero hardcoded hex values. */

.bq-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 108px 20px 84px;
}

.bq-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--muted);
}

.bq-breadcrumb a {
  color: var(--gold);
}

.bq-hero {
  margin-bottom: 28px;
}

.bq-kicker {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 36%, transparent);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}

.bq-hero h1 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: clamp(1.75rem, 3.8vw, 2.5rem);
  line-height: 1.22;
  margin: 0 0 12px;
}

.bq-lede {
  color: var(--text-body);
  font-size: 1.03rem;
  line-height: 1.72;
  margin: 0 0 16px;
}

.bq-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bq-pill {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
}

/* Interactive Quiz Card */
.bq-widget {
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  border-radius: 14px;
  overflow: hidden;
  margin: 24px 0 36px;
}

.bq-progress-track {
  height: 5px;
  background: var(--bg-alt);
}

.bq-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ember), var(--gold));
  transition: width 0.3s ease;
}

.bq-stage {
  padding: 28px 26px;
}

.bq-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bq-day-badge {
  color: var(--gold-bright);
  font-weight: 700;
}

.bq-question {
  font-family: var(--font-heading);
  font-size: clamp(1.18rem, 2.4vw, 1.48rem);
  color: var(--text);
  line-height: 1.4;
  margin: 0 0 18px;
}

.bq-options {
  display: grid;
  gap: 10px;
}

.bq-option {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
  background: var(--bg-alt);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.bq-option:hover {
  border-color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold) 10%, var(--bg-alt));
}

.bq-option[aria-pressed="true"] {
  border-color: var(--gold-bright);
  border-width: 2px;
  background: color-mix(in srgb, var(--gold) 16%, var(--bg-alt));
}

.bq-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.bq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-bright);
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.bq-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.bq-btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--gold));
  border-color: transparent;
  color: var(--bg);
}

.bq-btn-primary:hover {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
}

/* Result panel */
.bq-result-head {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.bq-result-day {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  color: var(--gold-bright);
  margin: 4px 0 6px;
}

.bq-result-sub {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 10px;
}

.bq-result-summary {
  color: var(--text-body);
  line-height: 1.68;
  margin: 0;
}

.bq-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 22px;
}

.bq-bar-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}

.bq-bar-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 6px;
}

.bq-bar-track {
  height: 8px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}

.bq-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-bright), var(--gold-bright));
}

.bq-bridge {
  background: color-mix(in srgb, var(--gold) 9%, var(--bg-alt));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 18px 0;
}

.bq-bridge h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
  color: var(--gold-bright);
}

.bq-bridge p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--text-body);
}

.bq-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Article & GEO Content Sections */
.bq-article {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  margin-top: 32px;
}

.bq-section {
  min-width: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}

.bq-section h2 {
  font-family: var(--font-heading);
  color: var(--gold);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin: 0 0 12px;
}

.bq-section h3 {
  font-family: var(--font-heading);
  color: var(--gold-bright);
  font-size: 1.08rem;
  margin: 16px 0 8px;
}

.bq-section p,
.bq-section li {
  color: var(--text-body);
  line-height: 1.74;
  font-size: 0.98rem;
}

.bq-section p + p {
  margin-top: 12px;
}

.bq-section ul,
.bq-section ol {
  padding-left: 22px;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.bq-table-wrap {
  overflow-x: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.bq-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 0.9rem;
}

.bq-table th,
.bq-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  color: var(--text-body);
}

.bq-table thead th {
  background: var(--bg-alt);
  color: var(--gold-bright);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.bq-faq {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.bq-faq details {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
}

.bq-faq summary {
  cursor: pointer;
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--text);
}

.bq-faq details p {
  margin-top: 8px;
}

.bq-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.bq-related-card {
  display: block;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  text-decoration: none;
}

.bq-related-card:hover {
  border-color: var(--gold-bright);
}

.bq-related-card strong {
  display: block;
  font-family: var(--font-heading);
  color: var(--gold-bright);
  font-size: 0.98rem;
  margin-bottom: 6px;
}

.bq-related-card span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .bq-shell {
    padding: 92px 14px 80px;
  }
  .bq-stage,
  .bq-section {
    padding: 20px 16px;
  }
  .bq-bars,
  .bq-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bq-progress-fill,
  .bq-option {
    transition: none;
  }
}
