/* Renkler ve yazı tipleri sitenin ortak temasından gelir (../../tema.css):
   krem zemin, bakır vurgu, Fraunces başlık, Inter metin. Burada renk yazmayın;
   değişiklik için tema.css'i değiştirin. */
:root {
  --bg: var(--bk-kagit);
  --ink: var(--bk-murekkep);
  --ink-2: var(--bk-murekkep-orta);
  --ink-3: var(--bk-murekkep-silik);
  --gold: var(--bk-bakir);
  --gold-hi: var(--bk-bakir);
  --gold-lo: var(--bk-bakir-koyu);
  --panel: var(--bk-cam-koyu);
  --line: rgba(194, 90, 64, 0.28);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); overflow: hidden; }
body { font-family: var(--sans); -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
button { font: inherit; color: inherit; }

/* ---------- stage ---------- */
.stage { position: fixed; inset: 0; overflow: hidden; perspective: 1600px; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab; }
.stage.dragging { cursor: grabbing; }
.glow { position: absolute; inset: 0; background: radial-gradient(60% 45% at 50% 44%, rgba(233, 128, 98, 0.16), transparent 70%); pointer-events: none; }
.views { position: absolute; inset: 0; transform-style: preserve-3d; }
.view { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform, opacity; visibility: hidden; }
.view.on { visibility: visible; }
.view img {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; display: block; max-width: none;
  pointer-events: none; -webkit-user-drag: none;
  /* the photo melts into the dark page around the ring (mask centre/size set per view in JS) */
  -webkit-mask-image: radial-gradient(var(--mr) at var(--mx) var(--my), #000 38%, rgba(0,0,0,.6) 62%, rgba(0,0,0,.18) 84%, transparent 100%);
          mask-image: radial-gradient(var(--mr) at var(--mx) var(--my), #000 38%, rgba(0,0,0,.6) 62%, rgba(0,0,0,.18) 84%, transparent 100%);
  filter: brightness(1) contrast(1.03);
}
.vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(250, 243, 236, 0.72) 100%), linear-gradient(to bottom, rgba(250,243,236,.85), transparent 20%, transparent 62%, rgba(250,243,236,.96)); }
.spots { position: absolute; inset: 0; pointer-events: none; transform: translateZ(2px); transition: opacity .25s ease, visibility .25s; }
body.spots-off .spots { opacity: 0; visibility: hidden; }

/* ---------- blinking white markers (same language as the vitrin) ---------- */
.spot {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 0; padding: 0; background: none; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent;
}
.spot::before { content: ''; position: absolute; inset: 7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); animation: ring 1.6s ease-out infinite; }
.spot::after {
  content: ''; position: absolute; inset: 12px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,.55), 0 0 12px 3px rgba(255,255,255,.9), 0 2px 8px rgba(0,0,0,.6);
  animation: blink 1.1s ease-in-out infinite; transition: transform .2s ease;
}
.spot:hover::after, .spot:focus-visible::after, .spot.active::after { transform: scale(1.3); }
.spot.active::after { animation: none; }
.spot:focus-visible { outline: none; }
.spot:focus-visible::before { border-width: 3px; animation: none; }
.spot.active::before { animation: none; inset: 4px; }
.spot-label {
  position: absolute; left: 50%; bottom: calc(100% - 4px); transform: translateX(-50%); white-space: nowrap;
  padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.94); border: 1px solid var(--line); box-shadow: var(--bk-golge);
  font: 500 11.5px/1 var(--sans); letter-spacing: .03em; color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .18s ease;
}
@media (hover: hover) { .spot:hover .spot-label { opacity: 1; } }
.spot:focus-visible .spot-label { opacity: 1; }
.spot.active .spot-label { opacity: 0; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@keyframes ring { 0% { transform: scale(.75); opacity: 1; } 80%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- chrome ---------- */
.topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: calc(18px + var(--safe-t)) clamp(16px, 3vw, 36px) 0; pointer-events: none; }
.overline { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.pill-btn {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bk-cam); box-shadow: var(--bk-golge), var(--bk-ic-isik); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  cursor: pointer; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; transition: background .2s, border-color .2s;
}
.pill-btn:hover { background: var(--bk-cam-koyu); border-color: var(--gold); }
.pill-btn:focus-visible, .arrow:focus-visible, .dot:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.pill-btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--gold-hi); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pill-btn .ico-off, body.spots-off .pill-btn .ico-on { display: none; }
body.spots-off .pill-btn .ico-off { display: block; }

.arrow {
  position: fixed; top: 50%; z-index: 5; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bk-cam); box-shadow: var(--bk-golge), var(--bk-ic-isik); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.arrow:hover { background: var(--bk-cam-koyu); border-color: var(--gold); }
.arrow:active { transform: scale(.94); }
.arrow svg { width: 20px; height: 20px; fill: none; stroke: var(--gold-hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.arrow.prev { left: clamp(12px, 4vw, 56px); }
.arrow.next { right: clamp(12px, 4vw, 56px); }

.info {
  position: fixed; left: 50%; bottom: calc(22px + var(--safe-b)); z-index: 5; transform: translateX(-50%);
  width: min(720px, calc(100% - 32px)); text-align: center; pointer-events: none;
}
.product-name { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; margin: 0 0 14px; letter-spacing: .02em; }
.specs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 16px; }
.specs div { display: flex; gap: 7px; align-items: baseline; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--bk-cam); box-shadow: var(--bk-golge), var(--bk-ic-isik); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.specs dt { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.specs dd { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
/* Instagram'dan Sor: Instagram renklerinde düğme + "kopyalandı" notu */
.info-alt { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.ig-sor { display: flex; width: max-content; margin: 0; pointer-events: auto; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; text-decoration: none; font: 600 13.5px/1 var(--sans); color: #fff; letter-spacing: .01em; background: linear-gradient(45deg, #f9b44c 0%, #f0623a 30%, #d6246e 60%, #8a3ab9 100%); box-shadow: 0 10px 22px -10px rgba(214, 36, 110, .7), inset 0 1px 0 rgba(255, 255, 255, .35); transition: transform .2s ease, box-shadow .2s ease; }
.ig-sor svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ig-sor:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(214, 36, 110, .8), inset 0 1px 0 rgba(255, 255, 255, .35); }
.ig-sor:active { transform: scale(.96); }
.ig-sor:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.ig-not { position: fixed; left: 50%; top: 50%; z-index: 20; transform: translate(-50%, -46%) scale(.96); opacity: 0; pointer-events: none; width: min(320px, calc(100% - 40px)); padding: 18px 18px 20px; border-radius: 18px; overflow: hidden; background: rgba(42, 26, 20, .94); color: #fff; font: 500 13px/1.45 var(--sans); text-align: center; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, .6); transition: opacity .2s, transform .2s; }
.ig-not.goster { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.ig-not b { display: block; font-size: 16px; margin-bottom: 4px; }
.ig-not span { display: block; color: rgba(255, 255, 255, .82); }
.ig-not-ac { display: inline-block; margin-top: 12px; padding: 9px 16px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; background: linear-gradient(45deg, #f9b44c 0%, #f0623a 30%, #d6246e 60%, #8a3ab9 100%); }
/* 2 sn'de dolan çubuk: Instagram'ın ne zaman açılacağını gösterir */
.ig-not-cubuk { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #f9b44c, #d6246e, #8a3ab9); }
.ig-not.goster .ig-not-cubuk { animation: ig-dol 2s linear forwards; }
@keyframes ig-dol { to { transform: scaleX(1); } }
.dots { display: inline-flex; gap: 6px; pointer-events: auto; padding: 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--bk-golge), var(--bk-ic-isik); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dot { border: 0; background: none; cursor: pointer; padding: 7px 14px; border-radius: 999px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); transition: background .25s, color .25s; }
.dot:hover { color: var(--ink); }
.dot[aria-current="true"] { background: linear-gradient(135deg, var(--bk-bakir-acik), var(--bk-bakir)); color: #fff; font-weight: 600; }

/* ---------- feature card ---------- */
.card {
  position: fixed; z-index: 6; left: 0; top: 0; width: 300px; max-width: calc(100vw - 32px); padding: 22px 22px 20px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(250, 243, 236, 0.95)); border: 1px solid var(--line);
  box-shadow: var(--bk-golge-uzak), var(--bk-ic-isik); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; transform: translate3d(var(--cx, 0), var(--cy, 0), 0) scale(.96); transition: opacity .22s ease, transform .22s ease;
}
.card.show { opacity: 1; transform: translate3d(var(--cx, 0), var(--cy, 0), 0) scale(1); }
.card-close { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 18px; line-height: 1; color: var(--ink-2); }
.card-close:hover { color: var(--ink); border-color: var(--gold); }
.card-close:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.card-type { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; padding-right: 34px; }
.card-name { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; margin: 0 0 10px; padding-right: 20px; }
.card-desc { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

.loader { position: fixed; inset: 0; z-index: 10; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--bg); color: var(--ink-2); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; transition: opacity .6s ease, visibility .6s; }
.loader.done { opacity: 0; visibility: hidden; }
.loader-ring { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); border-top-color: var(--gold-hi); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .pill-btn { width: 34px; padding: 0; justify-content: center; }
  .pill-label { display: none; }
  .arrow { width: 44px; height: 44px; margin-top: -22px; top: 62%; }
  .specs { gap: 6px; margin-bottom: 12px; }
  .specs div { padding: 6px 10px; }
  .specs dd { font-size: 12px; }
  .ig-sor { padding: 9px 13px; font-size: 12.5px; gap: 6px; }
  .ig-sor svg { width: 16px; height: 16px; }
  .dot { padding: 7px 11px; letter-spacing: .12em; }
  .card { left: 16px; right: 16px; top: auto; bottom: calc(16px + var(--safe-b)); width: auto; max-width: none; transform: translate3d(0, 16px, 0); border-radius: 20px; }
  .card.show { transform: translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .spot::before { animation: none; }
  .spot::after { animation-duration: 1.6s; }
}

/* ---------- ana sayfaya dönüş (siteye eklendi) ---------- */
.topbar .lead { display: flex; align-items: center; gap: 12px; }
.back {
  pointer-events: auto; width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--bk-cam-koyu); box-shadow: var(--bk-golge), var(--bk-ic-isik);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-decoration: none; transition: background .2s, border-color .2s;
}
.back:hover { background: #fff; border-color: var(--gold); }
.back:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.back svg { width: 18px; height: 18px; margin-left: -2px; fill: none; stroke: var(--gold); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
