/* ============================================================
   Feedback Hub — Portal (sade, kurumsal, light/dark)
   ============================================================ */

:root {
  color-scheme: light;
  /* native kontroller (select açılır listesi, scrollbar) aydınlık */
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f1f3f5;
  --border: #e4e7eb;
  --border-strong: #d5d9df;
  --text: #1b2029;
  --muted: #697180;
  --accent: #2563eb;
  --accent-hover: color-mix(in srgb, var(--accent) 84%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --danger: #dc2626;
  --success: #16a34a;
  --star: #e0a411;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  /* native select açılır listesi/scrollbar koyu → görünür */
  --bg: #0d1117;
  --surface: #151a21;
  --surface-2: #1b212a;
  --border: #252b35;
  --border-strong: #333b47;
  --text: #e6edf3;
  --muted: #8b95a3;
  --accent: #4f8cff;
  --star: #e2b53c;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0d1117;
    --surface: #151a21;
    --surface-2: #1b212a;
    --border: #252b35;
    --border-strong: #333b47;
    --text: #e6edf3;
    --muted: #8b95a3;
    --accent: #4f8cff;
    --star: #e2b53c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
}

/* ---------- Genel yerleşim: iki panel ---------- */
.page {
  display: flex;
  min-height: 100vh;
}

/* Sol: marka paneli (accent gradient) */
.brandside {
  flex: 0 0 40%;
  max-width: 500px;
  min-width: 0;
  display: flex;
  position: relative;
  overflow: hidden;
  padding: 44px 48px;
  color: #fff;
  background:
    linear-gradient(155deg,
      color-mix(in srgb, var(--accent) 90%, #ffffff) 0%,
      var(--accent) 44%,
      color-mix(in srgb, var(--accent) 56%, #0b1020) 100%);
}

.brandside-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(560px 440px at 80% 6%, rgba(255, 255, 255, .22), transparent 62%),
    radial-gradient(480px 400px at 6% 104%, rgba(0, 0, 0, .22), transparent 60%);
}

.brandside-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.brandside .brand {
  color: #fff;
  font-size: 16px;
}

.brandside .brand-mark {
  color: #fff;
}

.brandside .intro {
  margin: auto 0;
  text-align: left;
}

.brandside .intro h1 {
  font-size: 34px;
  font-weight: 760;
  line-height: 1.16;
  letter-spacing: -.02em;
  color: #fff;
}

.brandside .intro p {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .86);
  max-width: 34ch;
}

.brandside-foot {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .6);
}

/* Sağ: çalışma alanı */
.workarea {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.workbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.workscroll {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  padding: clamp(12px, 2vh, 28px) clamp(12px, 2vw, 32px);
}

.workscroll-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-mark svg {
  width: 22px;
  height: 22px;
}

/* ---------- Dil / tema kontrolleri ---------- */
.lang-select {
  height: 34px;
  padding: 0 26px 0 10px;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .12s;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 7px center;
}

.lang-select:hover {
  border-color: var(--border-strong);
}

.lang-select:focus {
  border-color: var(--accent);
  box-shadow: var(--ring);
}

/* Açılır liste öğeleri: bazı tarayıcılar option arka planını ayrı çizer → açıkça temala. */
.lang-select option {
  background: var(--surface);
  color: var(--text);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: background .12s, color .12s, border-color .12s;
}

.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Adım göstergesi (çalışma çubuğunda, solda) ---------- */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.step .dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--surface);
  color: var(--muted);
  border: 1.5px solid var(--border-strong);
}

.step .lbl {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.step.active .dot {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.step.active .lbl {
  color: var(--text);
}

.step.done .dot {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: transparent;
}

.step-line {
  width: 28px;
  height: 1.5px;
  background: var(--border-strong);
  margin: 0 9px;
}

.card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow-y: auto;
  padding: clamp(28px, 4vh, 48px) clamp(24px, 4vw, 60px);
}

.card>* {
  width: 100%;
  max-width: 780px;
  margin-left: 0;
  margin-right: auto;
  flex-shrink: 0;
}

.card-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.card-sub {
  margin: 5px 0 25px;
  color: var(--muted);
  font-size: 16px;
}

.loading,
.empty {
  text-align: center;
  color: var(--muted);
  padding: 46px 0;
}

/* ---------- Geri ---------- */
.back-bar {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 0;
  margin-bottom: 14px;
  font-family: inherit;
}

.back-bar:hover {
  color: var(--accent);
}

.back-bar svg {
  width: 15px;
  height: 15px;
}

/* ---------- Arama ---------- */
.search {
  width: 100%;
  max-width: 450px;
  padding: 12px 16px;
  margin-bottom: 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--text);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.search:focus {
  border-color: var(--accent);
  box-shadow: none;
}

/* ---------- Ürün listesi ---------- */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 450px;
  margin-top: 18vh;
  /* Butonları aşağı kaydırmak için */
}

.product-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: transform .12s, border-color .12s;
}

.product-item:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.avatar-img {
  object-fit: cover;
}

.product-name {
  flex: 1;
  font-weight: 600;
  text-align: center;
  margin-right: 28px;
}

.chev {
  display: none;
}

/* ---------- Kategori listesi (ürün adımıyla aynı düz stil) ---------- */
.cat-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 450px;
}

.cat-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text);
  font-family: inherit;
  transition: transform .12s, border-color .12s;
}

.cat-tile:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

.cat-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  justify-content: center;
}

.cat-icon {
  display: inline-flex;
  align-items: center;
  color: var(--accent);
}

.cat-icon svg {
  width: 20px;
  height: 20px;
}

.cat-title {
  font-weight: 600;
  font-size: 14px;
}

.cat-desc {
  display: none;
}

/* ---------- Adım içerik wrapper (2, 3, başarı) ---------- */
.step-content {
  margin-top: 18vh;
}

/* ---------- Adım 3: İçerik ---------- */
.detail-center {
  width: 100%;
  max-width: 450px;
}

/* ---------- Özet ---------- */
.summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  background: transparent;
  border: 1px solid var(--text);
  border-radius: 0;
  padding: 14px 20px;
  margin-bottom: 20px;
  font-size: 14px;
}

.summary-prod {
  font-weight: 650;
}

.summary-sep {
  color: var(--muted);
}

.summary-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
}

.summary-cat-icon {
  display: inline-flex;
  align-items: center;
}

.summary-cat-icon svg {
  width: 16px;
  height: 16px;
}

/* ---------- Form ---------- */
.detail-form {
  display: flex;
  flex-direction: column;
}

.field {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.field label,
.rating-block label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.field-input {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid var(--text);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  outline: none;
  resize: vertical;
  transition: border-color .12s, box-shadow .12s;
}

textarea.field-input {
  min-height: 130px;
}

.field-input:focus {
  border-color: var(--accent);
  box-shadow: none;
}

.field-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}

.form-error {
  color: var(--danger);
  font-size: 13px;
  margin: 0 0 12px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* ---------- Yıldız ---------- */
.rating-block {
  margin-bottom: 20px;
  border: 1px solid var(--text);
  padding: 24px 20px;
  text-align: center;
}

.rating-block label {
  display: block;
  text-align: center;
  margin-bottom: 12px;
  font-size: 14px;
}

.stars {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.star {
  position: relative;
  width: 34px;
  height: 34px;
  cursor: pointer;
  color: var(--border-strong);
}

.star svg {
  width: 34px;
  height: 34px;
  display: block;
  fill: currentColor;
}

.star .s-half {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  color: var(--star);
}

.star.on {
  color: var(--star);
}

.rating-value {
  font-size: 14px;
  color: var(--muted);
  height: 18px;
  margin-top: 10px;
  font-weight: 600;
  text-align: center;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background .12s, border-color .12s, transform .12s;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  width: 100%;
}

.btn.primary:hover {
  background: var(--accent-hover);
  transform: scale(1.02);
}

.btn.primary:disabled {
  opacity: .6;
  cursor: default;
  transform: none;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
  width: 100%;
}

.btn.ghost:hover {
  border-color: var(--accent);
  transform: scale(1.02);
}

/* ---------- Başarı ---------- */
.success {
  text-align: left;
  padding: 0;
  max-width: 450px;
}

.success-check {
  width: 52px;
  height: 52px;
  margin: 0 0 14px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--success);
  color: var(--success);
}

.success-check svg {
  width: 28px;
  height: 28px;
}

.success h2 {
  font-size: 18px;
  margin-bottom: 6px;
}

.success p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Alt bilgi ---------- */
.foot {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

/* Dar ekran: iki panel alt alta yığılır */
@media (max-width: 880px) {
  .page {
    flex-direction: column;
    min-height: 100vh;
  }

  .brandside {
    flex: none;
    max-width: none;
    padding: 22px 24px;
  }

  .brandside-inner {
    display: block;
  }

  .brandside .brand {
    margin-bottom: 12px;
  }

  .brandside .intro {
    margin: 0;
  }

  .brandside .intro h1 {
    font-size: 22px;
  }

  .brandside .intro p {
    font-size: 14px;
    margin-top: 6px;
    max-width: none;
  }

  .brandside-foot {
    display: none;
  }

  .workbar {
    padding: 14px 18px;
  }

  /* Dar ekranda sabit boyut yerine normal akış (dikey kaydırma). */
  .workscroll {
    display: block;
    overflow: visible;
    padding: 26px 16px;
  }

  .workscroll-inner {
    display: block;
    min-height: 0;
  }

  .card {
    width: 100%;
    height: auto;
    max-width: none;
    justify-content: flex-start;
    padding: 24px 20px;
  }

  .card>* {
    max-width: none;
  }

  .step-content,
  .detail-center,
  .product-list,
  .cat-grid {
    max-width: none;
    margin-top: 4vh;
  }
}

@media (max-width: 520px) {
  .cat-grid {
    max-width: none;
  }

  .step-content,
  .detail-center {
    max-width: none;
    margin-top: 0;
  }

  .step-content,
  .product-list,
  .cat-grid {
    margin-top: 2vh;
  }

  .step .lbl {
    display: none;
  }

  .step-line {
    width: 20px;
    margin: 0 7px;
  }

  .brandside .intro p {
    display: none;
  }

  .card {
    padding: 20px 16px;
  }
}