.studio-page { padding-top: 12px; }

.studio-wrap {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.look {
  --glass: rgba(255, 255, 255, 0.16);
  position: relative;
  height: 640px;
  border-radius: 18px;
  overflow: hidden;
  background: #1b1e22;
  box-shadow: 0 18px 40px rgba(8, 40, 68, 0.18);
  user-select: none;
  touch-action: none;
}

.look[data-color="seffaf"] { --glass: rgba(255, 255, 255, 0.18); }
.look[data-color="fume"] { --glass: rgba(38, 42, 48, 0.62); }
.look[data-color="bronz"] { --glass: rgba(112, 68, 28, 0.5); }
.look[data-color="yesil"] { --glass: rgba(14, 78, 46, 0.48); }
.look[data-color="mavi"] { --glass: rgba(12, 52, 112, 0.5); }
.look[data-color="siyah"] { --glass: rgba(6, 8, 10, 0.74); }

.photo {
  position: absolute;
  inset: 0;
  background-position: center 42%;
  background-size: cover;
  opacity: 0;
  transition: opacity 0.45s ease;
}

.photo.is-on { opacity: 1; }
.photo.deniz { background-image: url("../images/manzara/deniz.jpg"); background-position: center 38%; }
.photo.sehir { background-image: url("../images/manzara/sehir.jpg"); background-position: center 46%; }
.photo.bahce { background-image: url("../images/manzara/bahce.jpg"); background-position: center 40%; }
.photo.dag { background-image: url("../images/manzara/dag.jpg"); background-position: center 45%; }
.photo.gunbatimi { background-image: url("../images/manzara/gunbatimi.jpg"); background-position: center 42%; }

.ceiling,
.jamb,
.floor,
.aperture,
.remote,
.drag-hint { position: absolute; }

.ceiling {
  left: 0;
  right: 0;
  top: 0;
  height: 9%;
  z-index: 5;
  background: linear-gradient(#f7f5f2, #e6e1da);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
}

.jamb {
  top: 0;
  bottom: 16%;
  width: 6.5%;
  z-index: 4;
  background: linear-gradient(180deg, #f3efe9, #ddd6cc);
}

.jamb.left { left: 0; box-shadow: inset -10px 0 16px rgba(0, 0, 0, 0.05); }
.jamb.right { right: 0; box-shadow: inset 10px 0 16px rgba(0, 0, 0, 0.05); }

.floor {
  left: 0;
  right: 0;
  bottom: 0;
  height: 16%;
  z-index: 5;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 24%),
    repeating-linear-gradient(90deg, transparent 0 86px, rgba(40, 36, 32, 0.16) 86px 87px),
    repeating-linear-gradient(transparent 0 86px, rgba(40, 36, 32, 0.1) 86px 87px),
    #c8c1b6;
  box-shadow: 0 -12px 24px rgba(0, 0, 0, 0.16);
}

.aperture {
  left: 6.5%;
  right: 6.5%;
  top: 9%;
  bottom: 16%;
  z-index: 4;
  display: grid;
  grid-template-columns: 17% 1fr 17%;
}

.aperture::before,
.aperture::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  z-index: 6;
  background: linear-gradient(180deg, #6a727a, #2a3036 42%, #15191c 58%, #4e565e);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.aperture::before { top: 0; height: 14px; }
.aperture::after { bottom: 0; height: 18px; }

.bay {
  position: relative;
  min-width: 0;
  perspective: 900px;
}

.bay + .bay::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 14px;
  bottom: 18px;
  width: 8px;
  z-index: 5;
  background: linear-gradient(90deg, #1c2126, #8b949c 42%, #d5dbe0 50%, #2a3036);
}

.bay-side.left { transform: perspective(1100px) rotateY(12deg); transform-origin: right center; }
.bay-side.right { transform: perspective(1100px) rotateY(-12deg); transform-origin: left center; }

.bay.is-solid {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.06), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.08)),
    linear-gradient(#efe8df, #ddd4c8);
}

.bay.is-solid .leafs { display: none; }
.bay.is-solid .bay-name { color: #5c5348; text-shadow: none; }

.bay-name {
  position: absolute;
  left: 8px;
  bottom: 24px;
  z-index: 6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

.leafs {
  position: absolute;
  inset: 14px 5px 18px;
  transform-style: preserve-3d;
}

.look[data-system="giyotin"] .leafs { overflow: hidden; }

.leafs.is-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  overflow: visible;
}

.stack {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.leaf {
  position: absolute;
  top: 0;
  bottom: 0;
  box-sizing: border-box;
  width: calc((100% - (var(--n) - 1) * 4px) / var(--n));
  left: calc(var(--i) * ((100% - (var(--n) - 1) * 4px) / var(--n) + 4px));
  background:
    linear-gradient(108deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.08) 22%, transparent 38%, rgba(255, 255, 255, 0.16) 62%, transparent 78%),
    var(--glass);
  box-shadow:
    inset 0 0 0 1px rgba(10, 12, 14, 0.55),
    inset 5px 0 0 #3c444c,
    inset -2px 0 0 #9aa3ab;
  cursor: grab;
  transition: transform 0.45s cubic-bezier(.22, .7, .2, 1), background 0.3s ease;
}

.look.is-dragging .leaf { transition: none; cursor: grabbing; }

.look[data-system="giyotin"] .leaf {
  left: 0;
  right: 0;
  width: auto;
  bottom: auto;
  cursor: ns-resize;
  height: calc((100% - (var(--n) - 1) * 4px) / var(--n));
  top: calc(var(--i) * ((100% - (var(--n) - 1) * 4px) / var(--n) + 4px));
  box-shadow:
    inset 0 0 0 1px rgba(10, 12, 14, 0.55),
    inset 0 4px 0 #3c444c,
    inset 0 -2px 0 #9aa3ab;
}

.remote {
  display: none;
  bottom: 19%;
  z-index: 7;
  width: 78px;
  padding: 10px 10px 12px;
  border-radius: 22px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #3a4148, #1a1e22 38%, #121416);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.look[data-system="giyotin"] .remote { display: flex; }
.remote-sol { left: 18px; }
.remote-sag { right: 18px; }

.remote p {
  margin: 0;
  color: #c5ced6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.remote button {
  width: 52px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  color: #f4f7f8;
  background: linear-gradient(180deg, #5c666f, #2c343b);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 0 #0c0e10;
  font-size: 16px;
  line-height: 1;
}

.remote button:active { transform: translateY(1px); }

.remote-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d3a28;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
}

.remote.is-holding .remote-led {
  background: #35d07a;
  box-shadow: 0 0 8px #35d07a;
}

.drag-hint {
  left: 8%;
  right: 8%;
  top: 12%;
  z-index: 6;
  margin: 0;
  text-align: center;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.studio-readout {
  margin: 14px 4px 0;
  color: var(--ink-soft);
  min-height: 4.8em;
}

.studio-note {
  margin: 8px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.studio-panel {
  position: sticky;
  top: 108px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
}

.studio-panel fieldset {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.studio-panel legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze);
}

.views { display: grid; gap: 8px; }

.views button,
.choice button { font: inherit; color: inherit; cursor: pointer; }

.views button {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 6px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.views button strong { display: block; font-size: 15px; color: var(--ink); }
.views button span { color: var(--muted); font-size: 13px; }

.views button[aria-pressed="true"],
.choice button[aria-pressed="true"] {
  border-color: #e09000;
  box-shadow: 0 0 0 2px #f5a300;
}

.view-mini {
  display: block;
  height: 52px;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
}

.view-mini.deniz { background-image: url("../images/manzara/deniz.jpg"); }
.view-mini.sehir { background-image: url("../images/manzara/sehir.jpg"); }
.view-mini.bahce { background-image: url("../images/manzara/bahce.jpg"); }
.view-mini.dag { background-image: url("../images/manzara/dag.jpg"); }
.view-mini.gunbatimi { background-image: url("../images/manzara/gunbatimi.jpg"); }

.choice { display: flex; flex-wrap: wrap; gap: 8px; }

.choice button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 650;
  font-size: 14.5px;
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(16, 32, 51, 0.2);
}

.swatch-dot.clear { background: linear-gradient(#f7fbfe, #d5ebf6); }
.swatch-dot.fume { background: #6a7076; }
.swatch-dot.bronz { background: #a97848; }
.swatch-dot.yesil { background: #1f8a52; }
.swatch-dot.mavi { background: #1d6fbe; }
.swatch-dot.siyah { background: #161616; }

.plan {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  gap: 4px;
  height: 64px;
  margin-bottom: 8px;
}

.plan i {
  display: block;
  border-radius: 6px;
  background: #d5e0ea;
}

.plan i.is-glass { background: #00a7e1; }
.plan i[data-plan="on"] { background: #f5a300; }

.plan-key {
  display: flex;
  gap: 12px;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.studio-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 980px) {
  .studio-grid { grid-template-columns: 1fr; }
  .studio-panel { position: static; }
  .look { height: 520px; }
}

@media (max-width: 760px) {
  .look { height: 460px; border-radius: 16px; }
  .bay-name { font-size: 9px; }
  .remote { width: 64px; }
  .remote-sol { left: 8px; }
  .remote-sag { right: 8px; }
  .drag-hint { font-size: 12px; }
}
