/* =========================================================================
   ANA SAYFA · Tasarım Stüdyosu bölümü — yapılandırma paneli (2026-11-15, kullanıcı onaylı mockup)
   partials/home/studio.php · yalnız ana sayfa (home.php css_defer; koşullu CSS haritasında yok).

   Önce: dört kontrol grubu (Düzen · Kurumsal renk · Tema · Alt gezinme) rastgele kırılıyor, telefon
   "Keşfedin" düğmesinin altında kalıyordu — mobilde dokunulan seçeneğin sonucu ekran dışındaydı.
   Şimdi: telefonun hemen altında TEK panel — sekmeler + seçili sekmenin seçenekleri tek satırda.
   Mobil sıra: başlık → telefon → panel → keşfet (telefon + panel aynı ekrana sığar).
   Masaüstü: solda başlık + panel + keşfet, sağda telefon.
   Seçili seçenek koyu; magenta yalnız "Keşfedin" düğmesinde (tek vurgu).
   ========================================================================= */
.hx-studio .dspreview__container {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "head phone" "cfg phone" "cta phone";
  column-gap: clamp(32px, 6vw, 72px);
  row-gap: 0;
  align-items: start;
  align-content: center;
}
.hx-studio .dspreview__head { grid-area: head; max-width: 520px; }
.hx-studio .dspreview__phone { grid-area: phone; align-self: center; }
.hx-studio .dspreview__cta { grid-area: cta; justify-self: start; }
.hx-studio .dspreview__lede { margin-bottom: 26px; }

/* ── panel ──────────────────────────────────────────────────────────── */
.dscfg { grid-area: cfg; width: min(100%, 460px); margin: 0 0 28px; padding: 8px 8px 12px; box-sizing: border-box;
  border-radius: 24px; background: rgba(255, 255, 255, .92);
  box-shadow: 0 24px 44px -26px rgba(40, 16, 60, .35), 0 0 0 1px rgba(20, 10, 30, .06);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.dscfg__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 4px; border-radius: 16px; background: #f1eef4; }
.dscfg__tab { height: 36px; padding: 0 4px; border: 0; border-radius: 12px; background: none; cursor: pointer;
  font: 600 12.5px/1 var(--ff-body, Inter, sans-serif); color: #6d6676; white-space: nowrap;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.dscfg__tab:hover { color: #141018; }
.dscfg__tab.is-on { background: #fff; color: #141018; box-shadow: 0 2px 8px -2px rgba(20, 10, 30, .2), 0 0 0 1px rgba(20, 10, 30, .04); }
.dscfg__tab:focus-visible, .dscfg__opt:focus-visible { outline: 2px solid #141018; outline-offset: 2px; }
.dscfg__pane { display: none; gap: 8px; padding: 12px 4px 0; grid-auto-flow: column; grid-auto-columns: 1fr; }
.dscfg__pane.is-on { display: grid; animation: dscfg-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes dscfg-in { from { opacity: 0; transform: translateY(6px); } }
.dscfg__opt { display: grid; justify-items: center; align-content: center; gap: 7px; height: 76px; padding: 0; border: 0; border-radius: 16px;
  background: none; cursor: pointer; font: 600 11.5px/1 var(--ff-body, Inter, sans-serif); color: #4a4452;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.dscfg__opt:hover { background: #f6f4f8; }
.dscfg__opt svg { width: 30px; height: 30px; }
.dscfg__opt svg .f { fill: currentColor; }
.dscfg__opt svg .s { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dscfg__opt.ts-preview__chip--active, .dscfg__opt.ts-preview__swatch--active { background: #141018; color: #fff; box-shadow: 0 10px 20px -12px rgba(20, 10, 30, .6); }
.dscfg__sw { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.dscfg__opt.ts-preview__swatch--active .dscfg__sw { box-shadow: 0 0 0 2px #141018, 0 0 0 4px #fff; }
.dscfg__hint { margin: 10px 0 0; text-align: center; font: 500 11px/1.3 var(--ff-body, Inter, sans-serif); color: #8a8392; }

/* ── tablet + telefon: tek sütun, başlık → telefon → panel → keşfet ── */
@media (max-width: 900px) {
  .hx-studio .dspreview__container { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "phone" "cfg" "cta"; justify-items: center; }
  .hx-studio .dspreview__head { margin: 0 auto 26px; }
  .hx-studio .dspreview__lede { margin-bottom: 0; }
  .hx-studio .dspreview__cta { justify-self: center; }
  .dscfg { width: min(100%, 360px); margin: 22px auto 24px; }
}
/* telefonda önizleme biraz küçülür: telefon + panel aynı ekrana sığsın (ekran ölçeğini betik uyarlar) */
@media (max-width: 600px) {
  .hx-studio .dsp-phone { width: 226px; padding: 8px; border-radius: 38px; }
  .hx-studio .dsp-screen { width: 210px; height: 456px; border-radius: 30px; }
}
@media (prefers-reduced-motion: reduce) { .dscfg__pane.is-on { animation: none; } }
