/* ============================================
   ReadPuppy Breed Match Quiz — breed-match.css
   Mirrors dx- aesthetic from diagnostic.css
   ============================================ */

/* ── Hero ──────────────────────────────────────────────────── */
.bm-hero {
  background: linear-gradient(160deg, var(--rp-hero-1) 0%, var(--rp-hero-2) 60%, var(--rp-hero-3) 100%);
  padding: 56px 0 48px;
  text-align: center;
  color: #fff;
}
.bm-hero__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 14px;
}
.bm-hero__title {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 14px;
}
.bm-hero__title em {
  font-style: italic;
  color: #F59E0B;
}
.bm-hero__sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── Wrap ──────────────────────────────────────────────────── */
.bm-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 64px;
}
.bm-step {
  animation: rp-fadein 0.3s ease;
}

/* ── Intro ─────────────────────────────────────────────────── */
.bm-intro {
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.bm-intro__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--rp-dark);
  margin-bottom: 14px;
}
.bm-intro__body p {
  color: var(--rp-muted);
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 12px;
}
.bm-intro__body p:last-child {
  margin-bottom: 24px;
}

/* ── Progress ──────────────────────────────────────────────── */
.bm-progress {
  margin-bottom: 24px;
}
.bm-progress__bar {
  height: 6px;
  background: var(--rp-border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.bm-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--rp-purple), #F59E0B);
  border-radius: 3px;
  transition: width 0.3s ease;
}
.bm-progress__label {
  font-size: 0.78rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--rp-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: right;
}

/* ── Question ──────────────────────────────────────────────── */
.bm-question {
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.bm-question__text {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--rp-dark);
  line-height: 1.3;
  margin-bottom: 8px;
}
.bm-question__help {
  font-size: 0.88rem;
  color: var(--rp-muted);
  font-style: italic;
  margin-bottom: 20px;
}
.bm-question__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* ── Options ───────────────────────────────────────────────── */
.bm-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bm-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--rp-white);
  border: 1.5px solid var(--rp-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.15s;
}
.bm-option:hover {
  border-color: var(--rp-purple);
  background: rgba(124, 58, 237, 0.03);
}
.bm-option.is-selected {
  border-color: var(--rp-purple);
  background: rgba(124, 58, 237, 0.08);
}
.bm-option__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--rp-border);
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
}
.bm-option.is-selected .bm-option__radio {
  border-color: var(--rp-purple);
}
.bm-option.is-selected .bm-option__radio::after {
  content: '';
  position: absolute;
  inset: 3px;
  background: var(--rp-purple);
  border-radius: 50%;
}
.bm-option__label {
  font-size: 0.96rem;
  color: var(--rp-dark);
  font-weight: 500;
}

/* ── Results header ────────────────────────────────────────── */
.bm-result-header {
  text-align: center;
  padding: 32px 24px;
  background: linear-gradient(160deg, var(--rp-purple) 0%, #5B21B6 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  margin-bottom: 24px;
}
.bm-result-header__eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
}
.bm-result-header__title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  margin-bottom: 8px;
  color: #fff;
}
.bm-result-header__tagline {
  font-size: 0.98rem;
  color: rgba(255,255,255,0.85);
  font-style: italic;
}

/* ── Mismatch warnings (top of results) ────────────────────── */
.bm-warning {
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 16px;
  border-left: 4px solid;
}
.bm-warning--serious {
  background: #FEF3C7;
  border-color: #D97706;
  color: #78350F;
}
.bm-warning--severe {
  background: #FEE2E2;
  border-color: #DC2626;
  color: #7F1D1D;
}
.bm-warning__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.bm-warning__message {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ── Group cards ───────────────────────────────────────────── */
.bm-group-card {
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.bm-group-card--rank-1 {
  border-color: var(--rp-purple);
  border-width: 2px;
  box-shadow: 0 4px 18px rgba(124, 58, 237, 0.15);
}
.bm-group-card__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.bm-group-card__rank {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rp-purple);
  background: rgba(124, 58, 237, 0.08);
  padding: 4px 10px;
  border-radius: 100px;
}
.bm-group-card--rank-2 .bm-group-card__rank,
.bm-group-card--rank-3 .bm-group-card__rank {
  color: var(--rp-muted);
  background: var(--rp-bg);
}
.bm-group-card__name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--rp-dark);
}
.bm-group-card__narrative {
  color: var(--rp-muted);
  font-size: 0.96rem;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* ── Breed picks ───────────────────────────────────────────── */
.bm-breed-picks__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rp-muted);
  margin-bottom: 10px;
  margin-top: 8px;
}
.bm-breed-picks__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.bm-breed-card {
  display: block;
  text-decoration: none;
  background: var(--rp-bg);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: all 0.15s;
}
.bm-breed-card:hover {
  border-color: var(--rp-purple);
  background: rgba(124, 58, 237, 0.04);
  transform: translateY(-1px);
}
.bm-breed-card__name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--rp-dark);
  margin-bottom: 4px;
}
.bm-breed-card__hook {
  font-size: 0.82rem;
  color: var(--rp-muted);
  line-height: 1.5;
  margin-bottom: 10px;
}
.bm-breed-card__cta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rp-purple);
}

/* ── Tradeoffs ─────────────────────────────────────────────── */
.bm-tradeoffs {
  margin-top: 18px;
  padding: 14px 16px;
  background: #FFFBEB;
  border-radius: var(--radius-md);
  border-left: 3px solid #F59E0B;
}
.bm-tradeoffs__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #92400E;
  margin-bottom: 8px;
}
.bm-tradeoffs__list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #78350F;
  line-height: 1.6;
}
.bm-tradeoffs__list li {
  margin-bottom: 4px;
}

/* ── Mismatch (per-group) ──────────────────────────────────── */
.bm-mismatch {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--rp-bg);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}
.bm-mismatch__label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rp-muted);
  margin-bottom: 6px;
}
.bm-mismatch__text {
  color: var(--rp-dark);
  line-height: 1.55;
  font-style: italic;
}

/* ── Email card ────────────────────────────────────────────── */
.bm-email-card {
  background: var(--rp-white);
  border: 1px solid var(--rp-border);
  border-radius: var(--radius-lg);
  padding: 22px;
  margin-top: 24px;
  box-shadow: var(--shadow-sm);
}
.bm-email-card__title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--rp-dark);
  margin-bottom: 6px;
}
.bm-email-card__desc {
  font-size: 0.88rem;
  color: var(--rp-muted);
  margin-bottom: 14px;
  line-height: 1.55;
}
.bm-email-card__form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bm-email-card__form input {
  flex: 1;
  min-width: 180px;
}
.bm-email-card__note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--rp-muted);
}

/* ── Restart ───────────────────────────────────────────────── */
.bm-restart {
  text-align: center;
  margin-top: 32px;
}

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .bm-hero__title { font-size: 2.1rem; }
  .bm-result-header__title { font-size: 1.6rem; }
  .bm-breed-picks__grid { grid-template-columns: 1fr; }
  .bm-question { padding: 22px 18px; }
  .bm-intro { padding: 24px 20px; }
}
