/* DOLABINI TASARLA sayfası — style.css'in renk ve düğmelerini kullanır */

body.tasarla { overflow-x: hidden; }

/* İki sütun: solda sabit 3D, sağda kayan seçimler */
.tas-duzen { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, 1fr); min-height: 100vh; }

.tas-sahne {
  position: sticky; top: 0; height: 100vh;
  background: radial-gradient(ellipse at 50% 35%, #2a2018 0%, #120d09 60%, #0b0806 100%);
  border-right: 1px solid var(--line);
}
#dolap3d { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
#dolap3d:active { cursor: grabbing; }
.sahne-ust { position: absolute; top: 76px; left: 24px; }
.sahne-ust .mono { font-size: 13px; color: var(--heading); background: rgba(11, 8, 6, 0.6); padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); }
.sahne-alt { position: absolute; left: 24px; bottom: 22px; display: flex; gap: 10px; flex-wrap: wrap; }
.sahne-ipucu { position: absolute; right: 24px; bottom: 28px; font-size: 10px; opacity: 0.7; }

.kucuk-btn {
  padding: 8px 14px; border-radius: 10px; cursor: pointer;
  font: 600 13px "Manrope", sans-serif; color: var(--heading);
  background: rgba(11, 8, 6, 0.65); border: 1px solid var(--line-strong);
}
.kucuk-btn:hover { background: rgba(232, 168, 92, 0.16); }

.tas-panel { padding: 96px 32px 60px; max-width: 640px; }
.tas-baslik { font-size: clamp(30px, 3.2vw, 42px); }

/* Adımlar */
.adim { border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-top: 18px; background: rgba(16, 12, 9, 0.6); min-width: 0; }
.adim legend { padding: 0 8px; margin-left: -8px; color: var(--heading); font-weight: 600; font-size: 17px; }
.adim legend b { font: 500 12px "JetBrains Mono", monospace; color: var(--accent); margin-right: 8px; letter-spacing: 1px; }
.alt-baslik { margin: 16px 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.ipucu { font-size: 13px; color: var(--muted); margin-top: 10px; }

.secim-grup { display: flex; flex-wrap: wrap; gap: 8px; }
.secim-grup button {
  padding: 9px 14px; border-radius: 10px; cursor: pointer;
  font: 500 14px "Manrope", sans-serif; color: var(--text);
  background: rgba(232, 168, 92, 0.04); border: 1px solid var(--line);
}
.secim-grup button:hover { border-color: var(--line-strong); }
.secim-grup button[aria-pressed="true"] { color: #1a1007; background: var(--accent); border-color: var(--accent); font-weight: 600; }

.olculer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.olculer label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; position: relative; }
.olculer .birim { position: absolute; right: 12px; bottom: 12px; font-size: 12px; pointer-events: none; }
.tasarla input, .tasarla select, .tasarla textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); color: var(--heading);
  font: 500 15px "Manrope", sans-serif;
}
.tasarla input:focus, .tasarla select:focus, .tasarla textarea:focus { outline: none; border-color: var(--accent); }
.tasarla input[type="checkbox"] { width: auto; accent-color: var(--accent); margin-top: 3px; flex: none; }
.tasarla input.hatali { border-color: #e0664f; }

.onay { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 14px; cursor: pointer; }

.satir { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.satir > span { font-size: 14px; }
.sayac { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.sayac button { width: 36px; height: 36px; background: rgba(232, 168, 92, 0.08); color: var(--heading); border: 0; font-size: 18px; cursor: pointer; }
.sayac button:hover { background: rgba(232, 168, 92, 0.2); }
.sayac button:disabled { opacity: 0.35; cursor: default; }
.sayac output { min-width: 38px; text-align: center; font-weight: 700; color: var(--heading); }

/* Bölme kartları */
.bolme-liste { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.bolme-kart { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; transition: border-color .2s; }
.bolme-kart.secili { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.bolme-no { font: 600 12px "JetBrains Mono", monospace; color: var(--accent); }
.bolme-ust { display: flex; gap: 8px; align-items: center; }
.bolme-ust .gen { width: 96px; position: relative; }
.bolme-ust .gen input { padding-right: 32px; }
.bolme-ust .gen span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--muted); }
.bolme-alt { grid-column: 1 / -1; display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.bolme-alt .satir { gap: 8px; }
.bolme-alt .sayac button { width: 30px; height: 30px; font-size: 16px; }
.bolme-alt .sayac output { min-width: 28px; }

/* Renk kutucukları */
.renkler { display: block; padding-bottom: 6px; }
.renk-kutu { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.renk-grup-ad { font-size: 11.5px; font-weight: 600; color: var(--muted); margin: 10px 0 6px; letter-spacing: .3px; }
.renk-grup-ad:first-child { margin-top: 2px; }
.renkler button {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; position: relative;
  border: 2px solid rgba(255, 255, 255, 0.15); transition: transform .12s;
}
.renkler button:hover { transform: scale(1.08); }
.renkler button[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 3px; }
.renk-secili { font-size: 13px; color: var(--muted); margin-top: 8px; min-height: 1.4em; }
.renk-secili b { color: var(--heading); font-weight: 600; }
.renk-not { font-size: 11.5px; color: var(--muted); margin: 4px 0 14px; }

/* Özet */
.ozet-kutu { margin-top: 18px; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--line-strong); background: rgba(232, 168, 92, 0.04); }
.ozet-kutu ul { list-style: none; margin-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ozet-kutu .hatalar li { color: #f08a72; }
.ozet-kutu .hatalar li::before { content: "✕ "; }
.ozet-kutu .uyarilar li { color: #e6c37a; }
.ozet-kutu .uyarilar li::before { content: "! "; font-weight: 700; }

.iletisim-alanlar { display: flex; flex-direction: column; gap: 10px; }
.gizli-alan { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.gonder-durum { margin-top: 12px; font-size: 14px; min-height: 20px; }
.gonder-durum.iyi { color: #9fd48a; }
.gonder-durum.kotu { color: #f08a72; }

.basari {
  margin-top: 18px; padding: 24px; border-radius: 16px; border: 1px solid var(--accent);
  background: rgba(232, 168, 92, 0.08);
}
.basari h2 { font-size: 26px; }
.basari .kod { font: 600 22px "JetBrains Mono", monospace; color: var(--accent); letter-spacing: 2px; }

/* TELEFON / TABLET */
@media (max-width: 900px) {
  .tas-duzen { grid-template-columns: 1fr; }
  .tas-sahne { position: sticky; top: 0; height: 46vh; z-index: 2; border-right: 0; border-bottom: 1px solid var(--line); }
  .sahne-ust { top: 64px; left: 14px; }
  .sahne-alt { left: 14px; bottom: 12px; }
  .sahne-ipucu { display: none; }
  .tas-panel { padding: 22px 16px 60px; max-width: none; }
  .tas-baslik { font-size: 28px; }
  .tas-panel .lead { display: none; }
  .olculer { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .adim { padding: 16px 14px; }
}

/* ÇİZEREK TASARLA (kalem / parmakla çizim katmanı) */
.cizim-ac span { font-size: 15px; margin-right: 2px; }
.cizim-katman { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; background: #f7f2ea; color: #2a2018; }
.cizim-katman[hidden] { display: none; }
.cizim-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 18px 10px; border-bottom: 1px solid #e4dccf; }
.cizim-ust b { display: block; font-size: 16px; color: #1c140d; }
.cizim-ust span { display: block; font-size: 12.5px; color: #6b5d4c; margin-top: 2px; line-height: 1.45; max-width: 640px; }
.cizim-kapat { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid #d8cdbd; background: #fff; font-size: 22px; line-height: 1; cursor: pointer; color: #3a2c1e; }
.cizim-alan { position: relative; flex: 1; min-height: 0; }
.cizim-tuval { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; display: block; }
.cizim-tuval.silgi { cursor: cell; }
.cizim-ornek { position: absolute; right: 14px; top: 14px; width: 168px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .8); border: 1px solid #e4dccf; font-size: 11.5px; color: #5c4f40; pointer-events: none; }
.cizim-ornek p { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.cizim-ornek b { width: 22px; text-align: center; color: #1d4ed8; font-size: 12px; }
.cizim-ornek i { width: 22px; height: 16px; flex: none; position: relative; }
.cizim-ornek i::before, .cizim-ornek i::after { content: ""; position: absolute; border-color: #1d4ed8; border-style: solid; border-width: 0; }
.o-dikey::before { left: 10px; top: 0; height: 16px; border-left-width: 2px !important; }
.o-yatay::before { left: 1px; top: 7px; width: 20px; border-top-width: 2px !important; }
.o-aski::before { left: 1px; top: 3px; width: 20px; border-top-width: 2px !important; }
.o-aski::after { left: 6px; top: 6px; width: 10px; height: 7px; border-width: 2px 2px 0 2px !important; border-radius: 6px 6px 0 0; transform: rotate(180deg); }
.o-cekmece::before { left: 1px; top: 3px; width: 18px; height: 10px; border-width: 2px !important; border-radius: 2px; }
.cizim-durum { margin: 0 18px 8px; padding: 10px 14px; border-radius: 12px; background: #fff; border: 1px solid #e4dccf; font-size: 13.5px; line-height: 1.5; color: #2a2018; }
.cizim-durum.hata { border-color: #e2a39a; background: #fff3f1; color: #8a2a1d; }
.cizim-durum.tamam { border-color: #b9d6b8; }
.cizim-durum p { margin: 0 0 4px; }
.cizim-durum .uyari { color: #8a4a12; font-size: 12.5px; }
.cizim-durum .soru { color: #1d4ed8; font-weight: 600; }
.cizim-durum-btn { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.cizim-durum .kucuk-btn { color: #2a2018; border-color: #d8cdbd; background: #fbf8f3; }
.cizim-yukleniyor { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid #c9bba7; border-top-color: #1d4ed8; animation: cizimDon .8s linear infinite; }
@keyframes cizimDon { to { transform: rotate(360deg); } }
.cizim-arac { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 18px 16px; border-top: 1px solid #e4dccf; }
.cizim-arac button:not(.btn) { padding: 9px 14px; border-radius: 10px; border: 1px solid #d8cdbd; background: #fff; color: #2a2018; font: 600 13.5px "Manrope", sans-serif; cursor: pointer; }
.cizim-arac button:disabled { opacity: .45; cursor: default; }
.cizim-araclar { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: #ece4d7; }
.cizim-araclar button { border: 0 !important; background: transparent !important; }
.cizim-araclar button[aria-pressed="true"] { background: #fff !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); color: #1d4ed8 !important; }
.cizim-gonder { margin-left: auto; }
.cizim-gonder:disabled { opacity: .5; cursor: default; }
@media (max-width: 900px) {
  .cizim-katman { position: fixed; z-index: 60; }
  body.cizim-acik { overflow: hidden; }
  .cizim-ornek { display: none; }
  .cizim-ust span { font-size: 12px; }
  .cizim-arac { padding: 8px 12px 14px; }
  .cizim-gonder { width: 100%; margin-left: 0; }
}
body.cizim-acik .nav, body.cizim-acik .ai-ac, body.cizim-acik .sosyal { display: none !important; }
.cizim-mod button { white-space: nowrap; }
@media (max-width: 900px) { .cizim-mod { width: 100%; } .cizim-mod button { flex: 1; } }
.cizim-arac .cizim-duz[aria-pressed="true"] { border-color: #1d4ed8; color: #1d4ed8; background: #eef3ff; }

/* Atölye modu (anlaşmalı atölye panelden proje tasarlarken) */
.atolye-bant { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 16px; margin-bottom: 18px; border: 1px solid rgba(127, 176, 224, 0.45); background: rgba(127, 176, 224, 0.08); border-radius: 12px; font-size: 14px; color: var(--heading); }
.atolye-bant .mono { color: #7fb0e0; }
.atolye-bant a { margin-left: auto; color: var(--accent); font-weight: 600; }
.atolye-bant .atolye-uyari { flex-basis: 100%; color: #f0b27a; }
.atolye-bant .atolye-uyari a { margin-left: 0; }
.atolye-sonra { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.atolye-sonra .btn { padding: 10px 16px; font-size: 14px; }
