/* =========================================================
   DEBİTEKNİK — Klima Asistanı sihirbazı (klima-asistani-n.php)
   product.css (dbt-card/dbt-grid) + sections.css ile birlikte yüklenir.
   ========================================================= */
/* [hidden], author display kurallarını (.btn, .wiz-result vs.) ezmeli */
.wiz [hidden], .wiz-result[hidden], .wiz [hidden] { display: none !important; }
#wizPrev[hidden], #wizNext[hidden], #wizFinish[hidden], .wiz-prod__fit[hidden], .wiz-prod__match[hidden] { display: none !important; }

.wiz-page { padding-block: clamp(1.75rem, 4vw, 2.75rem) clamp(3.5rem, 8vw, 6rem); }
.wiz-page .dbt-crumbs { margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem); }

/* --- Başlık --- */
.wiz-head { max-width: 760px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.wiz-head__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(var(--fs-30), 5vw, var(--fs-48)); line-height: var(--lh-snug);
  letter-spacing: var(--tracking-tight); color: var(--text); margin: var(--space-4) 0 0;
}
.wiz-head__title em { font-style: italic; color: var(--accent-strong); }
.wiz-head__lead { font-size: var(--fs-16); line-height: var(--lh-base); color: var(--text-soft); margin: var(--space-4) 0 0; }
@media (min-width: 768px) { .wiz-head__lead { font-size: var(--fs-18); } }
.wiz-head__lead strong { color: var(--text); }

/* --- Sihirbaz kabuğu --- */
.wiz {
  background: var(--surface); border: var(--hairline); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md); overflow: hidden;
  padding: clamp(1.25rem, 3.5vw, 2.5rem);
}

/* --- Adım göstergesi --- */
.wiz-steps {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  list-style: none; padding: 0; margin: 0 0 clamp(1.5rem, 3vw, 2.25rem);
  counter-reset: none;
}
.wiz-steps__item {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-13); font-weight: 500; color: var(--text-muted);
  padding: 0.4rem 0.5rem; flex: 1 1 auto; min-width: max-content;
}
.wiz-steps__n {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none;
  border-radius: 50%; font-family: var(--font-mono); font-size: var(--fs-12);
  background: var(--paper-soft); color: var(--text-muted);
  border: 1px solid var(--surface-line-strong);
  transition: all var(--dur-fast) var(--ease-out);
}
.wiz-steps__item.is-active { color: var(--text); }
.wiz-steps__item.is-active .wiz-steps__n { background: var(--ink-900); color: var(--text-invert); border-color: var(--ink-900); }
.wiz-steps__item.is-done .wiz-steps__n { background: var(--ice-500); color: #fff; border-color: var(--ice-500); }

/* --- Paneller --- */
.wiz-panel { display: none; animation: wizFade .3s var(--ease-out); }
.wiz-panel.is-active { display: block; }
@keyframes wizFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wiz-panel__title { font-family: var(--font-display); font-weight: 500; font-size: clamp(var(--fs-20), 2.6vw, var(--fs-24)); color: var(--text); margin: 0 0 var(--space-2); }
.wiz-panel__desc { font-size: var(--fs-14); color: var(--text-muted); margin: 0 0 var(--space-6); }

/* --- Alanlar --- */
.wiz-field { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-6); }
.wiz-field__label { font-size: var(--fs-14); font-weight: 500; color: var(--text-soft); }
.wiz-grid2 { display: grid; grid-template-columns: 1fr; gap: clamp(1rem, 3vw, 2rem); }
@media (min-width: 640px) { .wiz-grid2 { grid-template-columns: 1fr 1fr; } }

/* --- Oda tipi kart seçimi --- */
.wiz-usage { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); margin-bottom: var(--space-8); }
.wiz-usage input { position: absolute; opacity: 0; pointer-events: none; }
.wiz-usage__opt {
  display: flex; flex-direction: column; gap: 2px; cursor: pointer;
  padding: var(--space-4); border-radius: var(--radius-md);
  border: 1.5px solid var(--surface-line-strong); background: var(--paper);
  transition: all var(--dur-fast) var(--ease-out);
}
.wiz-usage__opt:hover { border-color: var(--ice-400); background: var(--surface); }
.wiz-usage input:checked + .wiz-usage__opt {
  border-color: var(--ice-500); background: var(--ice-100);
  box-shadow: 0 0 0 3px rgba(58,158,240,0.12);
}
.wiz-usage input:focus-visible + .wiz-usage__opt { outline: 2px solid var(--ice-500); outline-offset: 2px; }
.wiz-usage__ad { font-weight: 600; font-size: var(--fs-15); color: var(--text); }
.wiz-usage__not { font-size: var(--fs-12); color: var(--text-muted); line-height: 1.4; }

/* --- Segment (radio grup) --- */
.wiz-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 5px; background: var(--paper-soft); border-radius: var(--radius-pill); }
.wiz-seg input { position: absolute; opacity: 0; pointer-events: none; }
.wiz-seg__opt {
  cursor: pointer; padding: 0.5rem 1rem; border-radius: var(--radius-pill);
  font-size: var(--fs-14); font-weight: 500; color: var(--text-soft);
  transition: all var(--dur-fast) var(--ease-out); white-space: nowrap;
}
.wiz-seg__opt:hover { color: var(--text); }
.wiz-seg input:checked + .wiz-seg__opt { background: var(--ink-900); color: var(--text-invert); box-shadow: var(--shadow-sm); }
.wiz-seg input:focus-visible + .wiz-seg__opt { outline: 2px solid var(--ice-500); outline-offset: 2px; }

/* --- Range + number --- */
.wiz-range { display: flex; align-items: center; gap: var(--space-4); }
.wiz-range input[type="range"] { flex: 1; accent-color: var(--ice-600); height: 6px; }
.wiz-num, .wiz-select {
  font: inherit; font-size: var(--fs-16); font-weight: 600; color: var(--text);
  padding: 0.6rem 0.8rem; border: 1px solid var(--surface-line-strong);
  border-radius: var(--radius-sm); background: var(--paper); width: 100%;
}
.wiz-num { max-width: 110px; text-align: center; }
.wiz-num:focus, .wiz-select:focus { outline: none; border-color: var(--ice-500); box-shadow: 0 0 0 3px rgba(58,158,240,0.12); }

/* --- Stepper --- */
.wiz-stepper { display: inline-flex; align-items: center; border: 1px solid var(--surface-line-strong); border-radius: var(--radius-pill); overflow: hidden; background: var(--paper); width: max-content; }
.wiz-stepper input { width: 56px; text-align: center; border: 0; background: transparent; font: inherit; font-size: var(--fs-16); font-weight: 600; color: var(--text); }
.wiz-stepper input:focus { outline: none; }
.wiz-stepper__btn { border: 0; background: transparent; width: 42px; height: 42px; font-size: 1.25rem; color: var(--ink-700); cursor: pointer; transition: background-color var(--dur-fast); }
.wiz-stepper__btn:hover { background: var(--paper-cool); }

/* --- Checkbox --- */
.wiz-check { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-14); color: var(--text-soft); cursor: pointer; }
.wiz-check input { width: 18px; height: 18px; accent-color: var(--ice-600); }

/* --- Navigasyon --- */
.wiz-nav { display: flex; align-items: center; gap: var(--space-3); margin-top: clamp(1.5rem, 3vw, 2rem); padding-top: var(--space-5); border-top: var(--hairline); }
.wiz-nav__live { margin-left: auto; margin-right: auto; font-size: var(--fs-13); color: var(--text-muted); font-family: var(--font-mono); }
.wiz-nav__live strong { color: var(--accent-strong); }
.wiz-nav #wizNext, .wiz-nav #wizFinish { margin-left: 0; }
@media (max-width: 560px) {
  .wiz-nav { flex-wrap: wrap; }
  .wiz-nav__live { order: -1; width: 100%; margin: 0 0 var(--space-2); text-align: center; }
}

/* --- SONUÇ --- */
.wiz-result { animation: wizFade .35s var(--ease-out); }
.wiz-result__hero {
  text-align: center; padding: clamp(1.75rem, 4vw, 3rem) var(--space-4);
  border-radius: var(--radius-lg); color: var(--text-invert);
  background: radial-gradient(120% 140% at 50% 0%, var(--ink-800), var(--ink-950));
  position: relative; overflow: hidden;
}
.wiz-result__badge {
  display: inline-block; font-family: var(--font-mono); font-size: var(--fs-12);
  text-transform: uppercase; letter-spacing: var(--tracking-wider); color: var(--ice-300);
  margin-bottom: var(--space-3);
}
.wiz-result__btu { font-family: var(--font-display); font-weight: 500; line-height: 1; letter-spacing: var(--tracking-tight); }
.wiz-result__btu span:first-child { font-size: clamp(3rem, 9vw, 5.5rem); color: #fff; }
.wiz-result__unit { font-size: clamp(1rem, 2.5vw, 1.5rem); color: var(--ice-200); margin-left: var(--space-2); }
.wiz-result__tip { margin-top: var(--space-3); font-size: var(--fs-16); font-weight: 500; color: var(--ice-100); }
.wiz-result__note { max-width: 62ch; margin: var(--space-4) auto 0; font-size: var(--fs-14); line-height: var(--lh-base); color: var(--text-invert-soft); }

/* Özet chip'leri */
.wiz-summary { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin: clamp(1.25rem, 3vw, 1.75rem) 0; }
.wiz-chip { font-size: var(--fs-13); color: var(--text-soft); background: var(--paper-soft); border: var(--hairline); border-radius: var(--radius-pill); padding: 0.35rem 0.8rem; }
.wiz-chip b { color: var(--text-muted); font-weight: 500; }

/* Ürün başlık */
.wiz-result__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin: clamp(1.75rem, 4vw, 2.5rem) 0 var(--space-6); }
.wiz-result__h { font-family: var(--font-display); font-weight: 500; font-size: clamp(var(--fs-24), 3vw, var(--fs-30)); color: var(--text); margin: var(--space-2) 0 0; }
.wiz-result__h em { font-style: italic; color: var(--accent-strong); }
.wiz-result__headdesc { font-size: var(--fs-14); color: var(--text-muted); }

/* Ürün kart rozeti */
.wiz-prod { position: relative; }
.wiz-prod__fit {
  background: var(--ember-500); color: #fff; font-size: var(--fs-12); font-weight: 600;
  padding: 0.25rem 0.6rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.wiz-prod__match { font-size: var(--fs-12); font-weight: 500; color: var(--ice-700); margin: 2px 0 var(--space-2); }
.wiz-prod[hidden] { display: none !important; }

.wiz-empty { text-align: center; color: var(--text-muted); background: var(--paper-soft); border-radius: var(--radius-md); padding: var(--space-8); margin-bottom: var(--space-6); }

/* CTA bandı */
.wiz-cta {
  display: flex; align-items: center; justify-content: space-between; gap: clamp(1rem, 3vw, 2.5rem);
  flex-wrap: wrap; margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3.5vw, 2.25rem); border-radius: var(--radius-lg);
  background: var(--paper-warm); border: 1px solid var(--ember-300);
}
.wiz-cta__txt h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-24); color: var(--text); margin: 0 0 var(--space-2); }
.wiz-cta__txt p { font-size: var(--fs-14); color: var(--text-soft); margin: 0; max-width: 46ch; }
.wiz-cta__txt strong { color: var(--text); }
.wiz-cta__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.wiz-restart {
  display: inline-flex; align-items: center; gap: var(--space-2); margin: clamp(1.5rem,3vw,2rem) auto 0;
  background: none; border: 0; cursor: pointer; color: var(--text-muted); font: inherit; font-size: var(--fs-14);
}
.wiz-restart:hover { color: var(--accent-strong); }
.wiz-result { display: flex; flex-direction: column; }
.wiz-restart { align-self: center; }

/* --- SEO bölümleri --- */
.wiz-seo { display: grid; grid-template-columns: 1fr; gap: clamp(1.5rem, 4vw, 3rem); margin-top: clamp(3rem, 7vw, 5rem); }
.wiz-seo > * { min-width: 0; }   /* uzun formül kodu sütunu şişirip SCOP bloğunu taşırmasın */
@media (min-width: 900px) { .wiz-seo { grid-template-columns: 1.7fr 1fr; align-items: start; } }
.wiz-seo h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(var(--fs-24), 3vw, var(--fs-30)); color: var(--text); margin: 0 0 var(--space-4); }
.wiz-seo p { font-size: var(--fs-16); line-height: 1.75; color: var(--text-soft); margin: 0 0 var(--space-4); }
.wiz-seo strong { color: var(--text); }
.wiz-formula { background: var(--ink-950); border-radius: var(--radius-md); padding: var(--space-5); margin: var(--space-5) 0; overflow-x: auto; }
.wiz-formula code { font-family: var(--font-mono); font-size: var(--fs-13); color: var(--ice-200); line-height: 1.7; white-space: nowrap; }
.wiz-seo__aside { background: var(--surface); border: var(--hairline); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow-sm); }
.wiz-seo__aside h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-18); margin: 0 0 var(--space-4); color: var(--text); }
.wiz-reftable { list-style: none; padding: 0; margin: 0 0 var(--space-4); }
.wiz-reftable li { display: flex; justify-content: space-between; align-items: center; padding: var(--space-3) 0; border-bottom: 1px dashed var(--surface-line); font-size: var(--fs-14); }
.wiz-reftable li span { color: var(--text-muted); }
.wiz-reftable li strong { font-family: var(--font-mono); color: var(--ink-800); }
.wiz-reftable__note { font-size: var(--fs-12) !important; color: var(--text-faint) !important; }

.wiz-faq { margin-top: clamp(2.5rem, 6vw, 4rem); max-width: 820px; }
.wiz-faq h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(var(--fs-24), 3vw, var(--fs-30)); color: var(--text); margin: 0 0 var(--space-5); }
.wiz-faq__item { border: var(--hairline); border-radius: var(--radius-md); background: var(--surface); margin-bottom: var(--space-3); overflow: hidden; }
.wiz-faq__item summary { cursor: pointer; padding: var(--space-4) var(--space-5); font-weight: 500; font-size: var(--fs-15); color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.wiz-faq__item summary::-webkit-details-marker { display: none; }
.wiz-faq__item summary::after { content: "+"; font-size: 1.4rem; color: var(--ice-500); font-weight: 400; line-height: 1; }
.wiz-faq__item[open] summary::after { content: "−"; }
.wiz-faq__item p { padding: 0 var(--space-5) var(--space-5); margin: 0; color: var(--text-soft); font-size: var(--fs-14); line-height: 1.7; }
