/* ═══════════════════════════════════════════════════
   DTV MOTORS — Recommendation Wizard Stylesheet
   ═══════════════════════════════════════════════════ */

/* ── Nav (reuse forma-nav pattern) ── */
.rek-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.rek-nav__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rek-nav__back {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.rek-nav__back:hover { color: var(--brand-400); }
.rek-nav__lang {
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-light);
  border-radius: 9999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.rek-nav__lang:hover {
  border-color: rgba(242, 196, 0, 0.5);
  color: var(--brand-400);
}

/* ── Hero ── */
.rek-hero {
  padding: 7rem 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rek-hero::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(242, 196, 0, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.rek-hero__content {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.rek-hero__badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  background: rgba(242, 196, 0, 0.08);
  border: 1px solid rgba(242, 196, 0, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--brand-400);
  margin-bottom: 1.25rem;
}
.rek-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--text-white);
  margin: 0 0 1rem;
}
.rek-hero__subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ── Progress Bar ── */
.rek-progress {
  max-width: 600px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}
.rek-progress__bar {
  height: 4px;
  background: var(--surface-700);
  border-radius: 100px;
  overflow: hidden;
}
.rek-progress__fill {
  height: 100%;
  background: var(--brand-500);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.rek-progress__text {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ── Wizard Container ── */
.rek-wizard {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  min-height: 400px;
}

/* ── Step ── */
.rek-step {
  animation: rekFadeIn 0.35s ease-out;
}
@keyframes rekFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.rek-step__question {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 0.5rem;
  line-height: 1.2;
}
.rek-step__hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1.75rem;
}

/* ── Option Cards ── */
.rek-options {
  display: grid;
  gap: 0.75rem;
}
.rek-options--2col {
  grid-template-columns: 1fr 1fr;
}
.rek-options--3col {
  grid-template-columns: 1fr 1fr 1fr;
}
@media (max-width: 500px) {
  .rek-options--2col,
  .rek-options--3col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) {
  .rek-options--2col,
  .rek-options--3col { grid-template-columns: 1fr; }
}

.rek-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.25rem 1rem;
  background: var(--surface-800);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}
.rek-option:hover {
  border-color: rgba(242, 196, 0, 0.3);
  background: var(--surface-700);
}
.rek-option--active {
  border-color: var(--brand-500) !important;
  background: rgba(242, 196, 0, 0.06) !important;
  box-shadow: 0 0 0 1px var(--brand-500), 0 0 20px -6px rgba(242, 196, 0, 0.2);
}
.rek-option__icon {
  font-size: 2rem;
  line-height: 1;
}
.rek-option__label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
}
.rek-option__desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Budget Slider ── */
.rek-slider-group {
  margin-bottom: 1.5rem;
}
.rek-slider-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}
.rek-slider-label span {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}
.rek-slider-value {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-400);
  text-align: center;
  margin-bottom: 1.25rem;
  line-height: 1;
}
.rek-slider-value span {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 400;
}

input[type="range"].rek-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--surface-600);
  border-radius: 100px;
  outline: none;
  cursor: pointer;
}
input[type="range"].rek-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--brand-500);
  border: 3px solid var(--surface-950);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(242, 196, 0, 0.3);
  transition: transform 0.15s;
}
input[type="range"].rek-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
input[type="range"].rek-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  background: var(--brand-500);
  border: 3px solid var(--surface-950);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(242, 196, 0, 0.3);
}

/* ── Priority Ranking ── */
.rek-priorities {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rek-priority-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--surface-800);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  cursor: grab;
  transition: all 0.2s;
  user-select: none;
}
.rek-priority-item:hover {
  border-color: rgba(242, 196, 0, 0.2);
  background: var(--surface-700);
}
.rek-priority-item--dragging {
  opacity: 0.5;
  border-color: var(--brand-500);
}
.rek-priority-item__rank {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(242, 196, 0, 0.1);
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--brand-400);
  flex-shrink: 0;
}
.rek-priority-item__label {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}
.rek-priority-item__arrows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rek-priority-item__arrow {
  width: 24px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.625rem;
  padding: 0;
  transition: all 0.15s;
}
.rek-priority-item__arrow:hover {
  border-color: var(--brand-500);
  color: var(--brand-400);
  background: rgba(242, 196, 0, 0.06);
}

/* ── Input field style ── */
.rek-input-group {
  margin-bottom: 1.25rem;
}
.rek-input-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.375rem;
}
.rek-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface-700);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.rek-input::placeholder { color: var(--text-muted); }
.rek-input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(242, 196, 0, 0.08);
}

/* ── Color swatches ── */
.rek-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.rek-color {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
}
.rek-color__swatch {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: all 0.2s;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
}
.rek-color:hover .rek-color__swatch {
  transform: scale(1.1);
}
.rek-color--active .rek-color__swatch {
  border-color: var(--brand-500) !important;
  box-shadow: 0 0 0 2px var(--surface-950), 0 0 0 4px var(--brand-500);
}
.rek-color__label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

/* ── Navigation Buttons ── */
.rek-nav-btns {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}
.rek-btn {
  flex: 1;
  padding: 0.875rem 1.5rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s;
  text-align: center;
}
.rek-btn--back {
  background: var(--surface-700);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  flex: 0 0 auto;
  padding: 0.875rem 1.25rem;
}
.rek-btn--back:hover {
  background: var(--surface-600);
  color: var(--text-white);
}
.rek-btn--next {
  background: var(--brand-500);
  color: var(--surface-950);
  box-shadow: 0 4px 20px rgba(242, 196, 0, 0.2);
}
.rek-btn--next:hover {
  background: var(--brand-400);
  box-shadow: 0 8px 30px rgba(242, 196, 0, 0.3);
  transform: translateY(-1px);
}
.rek-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ═══════════════════════════════════════════
   RESULTS SCREEN
   ═══════════════════════════════════════════ */

.rek-results {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  animation: rekFadeIn 0.5s ease-out;
}
.rek-results__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text-white);
  text-align: center;
  margin: 0 0 0.5rem;
}
.rek-results__subtitle {
  text-align: center;
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 2.5rem;
}

/* Result Card — Horizontal layout */
.rek-car-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: var(--surface-800);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: all 0.3s;
}
.rek-car-card--winner {
  border-color: rgba(242, 196, 0, 0.3);
  box-shadow: 0 0 0 1px rgba(242, 196, 0, 0.1), 0 0 40px -15px rgba(242, 196, 0, 0.15);
}
.rek-car-card:hover {
  border-color: rgba(242, 196, 0, 0.2);
  transform: translateY(-2px);
}

.rek-car-card__rank {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 10px;
  backdrop-filter: blur(8px);
}
.rek-car-card__rank--gold {
  background: var(--brand-500);
  color: var(--surface-950);
}
.rek-car-card__rank--silver {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.rek-car-card__rank--bronze {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rek-car-card__image {
  position: relative;
  min-height: 200px;
  overflow: hidden;
  background: var(--surface-700);
  display: flex;
  align-items: center;
  justify-content: center;
}
.rek-car-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rek-car-card__image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: var(--text-muted);
  background: var(--surface-700);
}

.rek-car-card__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.rek-car-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.875rem;
}
.rek-car-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 0.125rem;
  line-height: 1.2;
}
.rek-car-card__price {
  font-size: 0.875rem;
  color: var(--brand-400);
  font-weight: 700;
  margin: 0;
}

.rek-car-card__match {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  background: rgba(242, 196, 0, 0.06);
  border: 1px solid rgba(242, 196, 0, 0.12);
  border-radius: 10px;
}
.rek-car-card__match-pct {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--brand-400);
  line-height: 1;
}
.rek-car-card__match-label {
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.125rem;
}

.rek-car-card__stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.375rem;
  margin-bottom: 0.875rem;
}
.rek-car-stat {
  text-align: center;
  padding: 0.5rem 0.125rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}
.rek-car-stat__value {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-400);
}
.rek-car-stat__label {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.0625rem;
}

.rek-car-card__reason {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 0.875rem;
}

.rek-car-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: var(--brand-500);
  color: var(--surface-950);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  align-self: flex-start;
}
.rek-car-card__cta:hover {
  background: var(--brand-400);
  box-shadow: 0 4px 20px rgba(242, 196, 0, 0.25);
  transform: translateY(-1px);
}

/* ── Tablet: stack vertically below 768px ── */
@media (max-width: 768px) {
  .rek-car-card {
    grid-template-columns: 1fr;
  }
  .rek-car-card__image {
    height: 200px;
    min-height: auto;
  }
}

/* ── Restart Button ── */
.rek-restart {
  text-align: center;
  margin-top: 2rem;
}
.rek-restart__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.rek-restart__btn:hover {
  border-color: rgba(242, 196, 0, 0.3);
  color: var(--brand-400);
  background: rgba(242, 196, 0, 0.04);
}

/* ── Loading Spinner ── */
.rek-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  gap: 1.5rem;
  animation: rekFadeIn 0.3s ease-out;
}
.rek-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--surface-600);
  border-top-color: var(--brand-500);
  border-radius: 50%;
  animation: rekSpin 0.8s linear infinite;
}
@keyframes rekSpin {
  to { transform: rotate(360deg); }
}
.rek-loading__text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ── Footer ── */
.rek-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .rek-hero { padding: 6rem 1.25rem 1.5rem; }
  .rek-wizard { padding: 0 1rem 3rem; }
  .rek-results { padding: 0 1rem 3rem; }
  .rek-step__question { font-size: 1.25rem; }
  .rek-slider-value { font-size: 2rem; }
  .rek-car-card__image { height: 180px; }
  .rek-car-card__body { padding: 1rem 1.25rem; }
  .rek-car-card__name { font-size: 1.125rem; }
  .rek-car-card__stats { grid-template-columns: repeat(5, 1fr); gap: 0.25rem; }
  .rek-car-stat { padding: 0.375rem 0; }
  .rek-car-stat__value { font-size: 0.75rem; }
  .rek-car-stat__label { font-size: 0.5rem; }
  .rek-option { padding: 1rem 0.75rem; }
  .rek-option__icon { font-size: 1.5rem; }
  .rek-color__swatch { width: 40px; height: 40px; }
}
