/* AraçRehberi Wizard v2 — scoped to .wizard-v2-* */

.wizard-v2-section {
  padding-top: 0.5rem;
}

.wizard-v2-app {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.2rem, 3vw, 2.25rem);
  box-shadow: var(--shadow);
  overflow-x: hidden;
}

.wizard-v2-progress {
  margin-bottom: 1.25rem;
}

.wizard-v2-progress-track {
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.7rem;
}

.wizard-v2-progress-bar {
  height: 100%;
  width: 33.333%;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  transition: width 0.3s ease;
}

.wizard-v2-step-label {
  margin: 0;
  color: var(--orange-strong);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.wizard-v2-error {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: #fff1ee;
  color: var(--danger);
  font-weight: 600;
}

.wizard-v2-screen[hidden] {
  display: none;
}

.wizard-v2-title {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 1.85rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.wizard-v2-lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.wizard-v2-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
}

.wizard-v2-field label,
.wizard-v2-budget-legend {
  margin: 0;
  font-weight: 700;
  color: var(--ink-mid);
}

.wizard-v2-field input[type="number"] {
  width: 100%;
  max-width: 100%;
  min-height: 2.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  padding: 0.6rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.wizard-v2-field input[type="number"]:focus {
  outline: 3px solid rgba(242, 106, 27, 0.18);
  border-color: var(--orange);
}

.wizard-v2-budget-values {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
  font-weight: 800;
  color: var(--ink);
}

.wizard-v2-budget-sep {
  color: var(--ink-soft);
  font-weight: 600;
}

.wizard-v2-range {
  position: relative;
  height: 2.75rem;
}

.wizard-v2-range-rail {
  position: absolute;
  left: 0.2rem;
  right: 0.2rem;
  top: 50%;
  height: 6px;
  margin-top: -3px;
  background: var(--line);
  border-radius: 999px;
}

.wizard-v2-range-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--orange));
  border-radius: 999px;
}

.wizard-v2-range input[type="range"] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 2.75rem;
  margin: 0;
  background: none;
  pointer-events: none;
  appearance: none;
  -webkit-appearance: none;
}

.wizard-v2-range input[type="range"]:focus-visible {
  outline: none;
}

.wizard-v2-range input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border: 0;
}

.wizard-v2-range input[type="range"]::-moz-range-track {
  height: 6px;
  background: transparent;
  border: 0;
}

.wizard-v2-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  pointer-events: all;
  width: 1.55rem;
  height: 1.55rem;
  margin-top: -0.55rem;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--orange);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

.wizard-v2-range input[type="range"]::-moz-range-thumb {
  pointer-events: all;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--orange);
  box-shadow: var(--shadow-sm);
  cursor: grab;
}

.wizard-v2-range input[type="range"]:focus-visible::-webkit-slider-thumb {
  outline: 3px solid rgba(242, 106, 27, 0.45);
  outline-offset: 2px;
}

.wizard-v2-range input[type="range"]:focus-visible::-moz-range-thumb {
  outline: 3px solid rgba(242, 106, 27, 0.45);
  outline-offset: 2px;
}

.wizard-v2-fieldset {
  border: 0;
  margin: 0 0 1.15rem;
  padding: 0;
}

.wizard-v2-fieldset[hidden] {
  display: none;
}

.wizard-v2-fieldset legend {
  padding: 0;
  margin-bottom: 0.7rem;
  font-weight: 700;
  color: var(--ink-mid);
}

.wizard-v2-choices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.wizard-v2-choice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.wizard-v2-choice:hover {
  border-color: var(--orange);
  background: var(--bg-soft);
}

.wizard-v2-choice:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-soft);
}

.wizard-v2-choice input {
  accent-color: var(--orange);
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.wizard-v2-choice--used {
  grid-column: 1 / -1;
}

.wizard-v2-beta {
  display: inline-flex;
  align-items: center;
  margin-left: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wizard-v2-hint {
  margin: 0.65rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.wizard-v2-remaining {
  margin: 0 0 0.85rem;
  min-height: 1.5rem;
  font-weight: 700;
  color: var(--ink-mid);
}

.wizard-v2-remaining.is-ready {
  color: var(--ok);
}

.wizard-v2-remaining.is-over {
  color: var(--warn);
}

.wizard-v2-bubbles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.35rem;
  align-items: end;
  justify-items: center;
  margin: 0 0 0.35rem;
  padding: 2.4rem 0 0.65rem;
  overflow: visible;
}

.wizard-v2-bubble-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  width: 100%;
  min-height: 9.25rem;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.wizard-v2-bubble-float {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  will-change: transform;
  animation-name: wizard-v2-float-a;
  animation-duration: 5.2s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.wizard-v2-bubble-wrap:nth-child(1) .wizard-v2-bubble-float {
  animation-name: wizard-v2-float-a;
  animation-duration: 4.6s;
  animation-delay: -1.2s;
}
.wizard-v2-bubble-wrap:nth-child(2) .wizard-v2-bubble-float {
  animation-name: wizard-v2-float-b;
  animation-duration: 5.3s;
  animation-delay: -2.4s;
}
.wizard-v2-bubble-wrap:nth-child(3) .wizard-v2-bubble-float {
  animation-name: wizard-v2-float-a;
  animation-duration: 5.8s;
  animation-delay: -0.7s;
}
.wizard-v2-bubble-wrap:nth-child(4) .wizard-v2-bubble-float {
  animation-name: wizard-v2-float-c;
  animation-duration: 5.1s;
  animation-delay: -3.1s;
}
.wizard-v2-bubble-wrap:nth-child(5) .wizard-v2-bubble-float {
  animation-name: wizard-v2-float-b;
  animation-duration: 6s;
  animation-delay: -1.8s;
}
.wizard-v2-bubble-wrap:nth-child(6) .wizard-v2-bubble-float {
  animation-name: wizard-v2-float-c;
  animation-duration: 4.9s;
  animation-delay: -2.8s;
}
.wizard-v2-bubble-wrap:nth-child(7) .wizard-v2-bubble-float {
  animation-name: wizard-v2-float-a;
  animation-duration: 5.6s;
  animation-delay: -0.4s;
}
.wizard-v2-bubble-wrap:nth-child(8) .wizard-v2-bubble-float {
  animation-name: wizard-v2-float-b;
  animation-duration: 5.4s;
  animation-delay: -2.1s;
}

@keyframes wizard-v2-float-a {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}

@keyframes wizard-v2-float-b {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@keyframes wizard-v2-float-c {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}

.wizard-v2-bubble {
  --v2-lift: 0px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.35rem;
  border: 0;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font: inherit;
  font-weight: 800;
  text-align: center;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transform: translateY(calc(var(--v2-lift) * -1));
  transition:
    width 0.32s ease,
    height 0.32s ease,
    transform 0.32s ease,
    background 0.32s ease,
    color 0.32s ease,
    box-shadow 0.32s ease;
}

.wizard-v2-bubble:focus-visible {
  outline: 3px solid rgba(242, 106, 27, 0.45);
  outline-offset: 3px;
}

.wizard-v2-bubble.level-0 {
  --v2-lift: 0px;
  width: 3.6rem;
  height: 3.6rem;
  font-size: 0.68rem;
  background: #fff;
  color: var(--ink-mid);
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  z-index: 1;
}

.wizard-v2-bubble.level-1 {
  --v2-lift: 5px;
  width: 4.35rem;
  height: 4.35rem;
  font-size: 0.7rem;
  background: var(--orange-soft);
  z-index: 2;
}

.wizard-v2-bubble.level-2 {
  --v2-lift: 10px;
  width: 5.15rem;
  height: 5.15rem;
  font-size: 0.74rem;
  background: var(--orange);
  color: #fff;
  z-index: 3;
}

.wizard-v2-bubble.level-3 {
  --v2-lift: 16px;
  width: 5.9rem;
  height: 5.9rem;
  font-size: 0.76rem;
  background: var(--orange-strong);
  color: #fff;
  box-shadow: var(--shadow);
  z-index: 4;
}

.wizard-v2-bubble.is-tapped {
  animation: wizard-v2-tap 0.22s ease;
}

.wizard-v2-bubble.is-maxed {
  cursor: default;
}

.wizard-v2-bubble-minus {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 1px 4px rgba(23, 19, 16, 0.14);
  backdrop-filter: blur(8px);
}

.wizard-v2-bubble-minus[hidden] {
  display: none;
}

.wizard-v2-bubble-minus:focus-visible {
  outline: 3px solid rgba(242, 106, 27, 0.45);
  outline-offset: 2px;
}

@keyframes wizard-v2-tap {
  0% { transform: translateY(calc(var(--v2-lift) * -1)) scale(1); }
  40% { transform: translateY(calc(var(--v2-lift) * -1)) scale(0.96); }
  100% { transform: translateY(calc(var(--v2-lift) * -1)) scale(1); }
}

.wizard-v2-bubble-label {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.wizard-v2-bubble-score {
  margin-top: 0.12rem;
  font-size: 0.85em;
  font-weight: 800;
  opacity: 0.9;
}

.wizard-v2-bubble.is-disabled,
.wizard-v2-bubble-wrap.is-disabled .wizard-v2-bubble {
  --v2-lift: 0px;
  background: var(--bg-tint);
  color: var(--ink-soft);
  box-shadow: inset 0 0 0 1.5px var(--line);
  cursor: not-allowed;
  z-index: 0;
}

.wizard-v2-soon {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: var(--line);
  color: var(--ink-mid);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wizard-v2-tech-note {
  margin: 0;
  max-width: 9.5rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.35;
}

.wizard-v2-nav {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.wizard-v2-results-head {
  margin-bottom: 1.2rem;
}

.wizard-v2-results-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.wizard-v2-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.wizard-v2-card:first-child {
  background: linear-gradient(170deg, var(--bg-soft), #fff 55%);
  box-shadow: var(--shadow);
}

.wizard-v2-card-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem 0.9rem;
  align-items: start;
}

.wizard-v2-rank {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 800;
}

.wizard-v2-card-name {
  margin: 0;
  font-size: 1.12rem;
  overflow-wrap: anywhere;
}

.wizard-v2-card-meta {
  margin: 0.3rem 0 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.wizard-v2-card-price {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.wizard-v2-card-price-note {
  margin: 0.15rem 0 0;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.wizard-v2-score {
  grid-column: 1 / -1;
}

.wizard-v2-score-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--orange-strong);
  letter-spacing: -0.04em;
  line-height: 1;
}

.wizard-v2-score small {
  color: var(--ink-soft);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wizard-v2-coverage,
.wizard-v2-coverage-status {
  margin: 0.7rem 0 0;
  color: var(--ink-mid);
  font-size: 0.88rem;
}

.wizard-v2-coverage-status {
  margin-top: 0.2rem;
  color: var(--ink-soft);
}

.wizard-v2-meta-block {
  margin-top: 0.95rem;
}

.wizard-v2-meta-title {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-mid);
}

.wizard-v2-meta-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wizard-v2-meta-list li {
  position: relative;
  padding-left: 1.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.wizard-v2-plus {
  color: var(--ok);
}

.wizard-v2-plus::before {
  content: "+";
  position: absolute;
  left: 0;
  font-weight: 800;
}

.wizard-v2-warn {
  color: var(--warn);
}

.wizard-v2-warn::before {
  content: "!";
  position: absolute;
  left: 0;
  font-weight: 800;
}

.wizard-v2-empty {
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.wizard-v2-empty-hint {
  margin: 0 0 1.2rem;
  color: var(--ink-soft);
}

.wizard-v2-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: 1.4rem;
}

.wizard-v2-reset {
  font-size: 0.9rem;
  padding-inline: 0.9rem;
}

@media (min-width: 390px) {
  .wizard-v2-bubble.level-0 { width: 3.75rem; height: 3.75rem; }
  .wizard-v2-bubble.level-1 { width: 4.5rem; height: 4.5rem; }
  .wizard-v2-bubble.level-2 { width: 5.3rem; height: 5.3rem; }
  .wizard-v2-bubble.level-3 { width: 6.05rem; height: 6.05rem; }
}

@media (min-width: 430px) {
  .wizard-v2-bubble.level-0 { width: 3.9rem; height: 3.9rem; }
  .wizard-v2-bubble.level-1 { width: 4.7rem; height: 4.7rem; }
  .wizard-v2-bubble.level-2 { width: 5.5rem; height: 5.5rem; }
  .wizard-v2-bubble.level-3 { width: 6.25rem; height: 6.25rem; --v2-lift: 18px; }

  .wizard-v2-bubble-wrap {
    min-height: 9.25rem;
  }
}

@media (min-width: 768px) {
  .wizard-v2-choices {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .wizard-v2-choice--used {
    grid-column: auto;
  }

  .wizard-v2-bubbles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem 0.5rem;
    padding-top: 2.6rem;
  }

  .wizard-v2-bubble-wrap {
    min-height: 10.5rem;
  }

  .wizard-v2-bubble.level-0 { width: 4.4rem; height: 4.4rem; font-size: 0.74rem; }
  .wizard-v2-bubble.level-1 { width: 5.25rem; height: 5.25rem; font-size: 0.76rem; --v2-lift: 6px; }
  .wizard-v2-bubble.level-2 { width: 6.1rem; height: 6.1rem; font-size: 0.8rem; --v2-lift: 12px; }
  .wizard-v2-bubble.level-3 { width: 6.9rem; height: 6.9rem; font-size: 0.84rem; --v2-lift: 18px; }

  .wizard-v2-card-top {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .wizard-v2-score {
    grid-column: auto;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-v2-progress-bar,
  .wizard-v2-choice,
  .wizard-v2-bubble {
    transition: none;
  }

  .wizard-v2-bubble-float,
  .wizard-v2-bubble.is-tapped {
    animation: none !important;
  }
}
