/* Atölye Adası: anasayfanın üst sahnesinde, kuşların yazdığı göğün altında (index.html .island-hero).
   Arka plan şeffaf; gökyüzü sayfanın kendisi (sky-film / murmuration). Yazılar sayfa renklerini kullanır. */
/* Saf tek ekran (100dvh) Atölye Adası: aşağıda kaydırma bölümü yok */
body.home-pure-island { overflow: hidden; height: 100dvh; }
.home-pure-island .island-main-shell { height: calc(100dvh - var(--hdr, 78px)); overflow: hidden; }
.home-pure-island .mmw-stage-border { border-bottom: 0; margin: 0; height: 100%; }
.home-page .mmw-stage { height: calc(100dvh - var(--hdr, 78px)); min-height: 480px; }
.home-page .sky-caption, .home-page .mmw-hint, .home-page .mmw-hud-bottom, .home-page .mmw-over { display: none; }

.island-hero { position: absolute; inset: 0; z-index: 1; }
.island-stage { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.island-stage.is-dragging { cursor: grabbing; }
.island-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; display: block; opacity: 0; transition: opacity 1.4s cubic-bezier(.22,1,.36,1); }
.island-tour.is-ready .island-canvas { opacity: 1; }
/* Alt sayfadan tersine dönüşle gelindiyse 3B tuval ilk karede anında tam görünür olur */
.island-tour.is-return-instant .island-canvas { opacity: 1 !important; transition: none !important; }

.island-copy { position: absolute; left: max(24px, calc((100vw - 1192px) / 2)); bottom: clamp(96px, 12vh, 140px); z-index: 3; max-width: 400px; color: var(--fg); pointer-events: none; transition: opacity .4s, filter .4s; }
.island-eyebrow { font: 600 11px/1 var(--font-mono, ui-monospace, monospace); letter-spacing: .14em; color: var(--fg-muted, currentColor); }
.island-title { margin-top: 12px; font: 640 clamp(40px, 5.6vw, 84px)/.95 var(--font-display, var(--font-sans, inherit)); letter-spacing: -.035em; color: var(--fg); text-shadow: 0 2px 24px color-mix(in srgb, var(--bg, #fff) 55%, transparent); }
.island-title em { font-family: var(--font-serif, Georgia, serif); font-weight: 400; color: #d98a2b; }
html[data-atmosphere="dusk"] .island-title em, html[data-atmosphere="night"] .island-title em { color: #ffc98a; }
.island-lead { margin-top: 14px; font-size: 15px; line-height: 1.6; color: var(--fg-secondary, var(--fg)); text-shadow: 0 1px 14px color-mix(in srgb, var(--bg, #fff) 70%, transparent); }
.island-tour.is-focused .island-copy { opacity: .15; filter: blur(3px); }
/* sinematik sırasında kontroller ve yazı çekilir; ekrana dokunmak iptal eder */
.island-pins, .island-toolbar { transition: opacity .4s; }
.island-tour.is-cinema .island-pins, .island-tour.is-cinema .island-toolbar, .island-tour.is-cinema .island-copy { opacity: 0; pointer-events: none; }
.island-tour.is-cinema .island-stage { cursor: default; }
.home-page .mmw-hud-top, .home-page .mmw-hud-bottom, .home-page .site-header { transition: opacity .4s; }
body.island-cinema .mmw-hud-top, body.island-cinema .mmw-hud-bottom, body.island-cinema .mbn, body.island-cinema .site-header { opacity: 0; pointer-events: none; }

.island-pins { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.island-pin { position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; pointer-events: auto; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .6); background: rgba(24, 20, 16, .62); color: #fff8ee; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); transition: background .3s, color .3s, box-shadow .3s; will-change: transform; }
.island-pin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform .35s cubic-bezier(.22,1,.36,1); }
.island-pin:hover svg { transform: rotate(90deg); }
.island-pin.is-active { background: #fff8ee; color: #1b160f; box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); }
.island-pin.is-active svg { transform: rotate(45deg); }
.island-pin-ring { position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); animation: island-ring 2.6s ease-out infinite; pointer-events: none; }
.island-pin.is-active .island-pin-ring { display: none; }
@keyframes island-ring { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }
.island-pin-label { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); padding: 5px 11px; border-radius: 99px; background: rgba(24, 20, 16, .62); border: 1px solid rgba(255, 255, 255, .3);
  font: 600 12px/1.2 var(--font-sans, inherit); white-space: nowrap; color: #fff8ee; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); pointer-events: none; transition: opacity .3s; }
.island-pin.is-active .island-pin-label { opacity: 0; }
.island-pin:focus-visible, .island-toolbar button:focus-visible, .island-card a:focus-visible, .island-card button:focus-visible { outline: 2px solid #ffb35c; outline-offset: 3px; }

.island-card { position: absolute; top: 22px; right: max(24px, calc((100vw - 1192px) / 2)); bottom: auto; z-index: 5; width: min(320px, calc(100% - 32px)); padding: 15px 18px; border-radius: 20px;
  background: rgba(252, 249, 243, .9); color: #1d1b17; border: 1px solid rgba(255, 255, 255, .75); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .5);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); animation: island-card-in .38s cubic-bezier(.22,1,.36,1) both; cursor: auto; }
html[data-atmosphere="dusk"] .island-card, html[data-atmosphere="night"] .island-card {
  background: rgba(18, 22, 34, .86); color: #f4efe6; border-color: rgba(255, 255, 255, .18);
}
html[data-atmosphere="dusk"] .island-card p, html[data-atmosphere="night"] .island-card p { color: rgba(244, 239, 230, .78); }
html[data-atmosphere="dusk"] .island-go, html[data-atmosphere="night"] .island-go { background: #f4efe6; color: #15171b; }
@keyframes island-card-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } }
.island-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid rgba(128, 128, 128, .18); }
.island-tag { padding: 3px 9px; border-radius: 99px; background: rgba(128, 128, 128, .14); font: 600 10px/1.2 var(--font-mono, ui-monospace, monospace); letter-spacing: .1em; }
.island-close { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: 13px; }
.island-close:hover { background: rgba(128, 128, 128, .16); }
.island-card h3 { margin-top: 10px; font: 640 20px/1.15 var(--font-display, var(--font-sans, inherit)); letter-spacing: -.02em; }
.island-card p { margin-top: 6px; font-size: 13px; line-height: 1.5; color: rgba(29, 27, 23, .75); }
.island-go { display: inline-flex; margin-top: 12px; padding: 9px 15px; border-radius: 99px; background: #1d1b17; color: #fbf6ee; font-weight: 600; font-size: 13px; text-decoration: none; transition: transform .25s; }
.island-go:hover { transform: translateX(3px); }

/* 3B Emre karakteri konuşma baloncuğu: sinematikte gizlenir (asıl cam stili island-emre.js'te) */
.island-tour.is-cinema .island-emre-bubble { opacity: 0 !important; visibility: hidden; }

.island-toolbar { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: calc(100% - 24px); }
.island-jumps { display: flex; gap: 4px; padding: 4px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(24, 20, 16, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.island-toolbar button { height: 32px; padding: 0 14px; border-radius: 99px; border: 0; background: transparent; color: rgba(255, 248, 238, .82); font: 600 12px/1 var(--font-sans, inherit); cursor: pointer; transition: background .25s, color .25s; }
.island-toolbar button:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.island-reset { border: 1px solid rgba(255, 255, 255, .35) !important; background: rgba(24, 20, 16, .42) !important; color: #fff8ee !important; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }

/* yakınlaştırma ve araç düğmeleri */
.island-zoom, .island-utils { display: flex; gap: 2px; padding: 4px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(24, 20, 16, .42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.island-zoom button { width: 32px; padding: 0 !important; font-size: 17px !important; }
.island-utils button[aria-expanded="true"] { background: rgba(255, 255, 255, .24); color: #fff; }

/* Atölye Özeti & Ayarlar cam çekmeceleri */
.island-drawer {
  position: absolute; right: max(24px, calc((100vw - 1192px) / 2)); bottom: 78px; z-index: 6;
  width: min(410px, calc(100% - 28px)); max-height: calc(100% - 110px); overflow-y: auto;
  padding: 18px 20px; border-radius: 22px;
  background: rgba(252, 249, 243, .92); color: #1d1b17;
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .58);
  -webkit-backdrop-filter: blur(20px) saturate(155%); backdrop-filter: blur(20px) saturate(155%);
  animation: island-card-in .35s cubic-bezier(.22, 1, .36, 1) both; cursor: auto;
}
html[data-atmosphere="dusk"] .island-drawer, html[data-atmosphere="night"] .island-drawer {
  background: rgba(18, 22, 34, .88); color: #f4efe6; border-color: rgba(255, 255, 255, .16);
}
.island-drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(128, 128, 128, .22); margin-bottom: 14px; }
.island-overview-grid { display: grid; gap: 14px; }
.island-ov-block h2 { font: 650 15px/1.2 var(--font-display, var(--font-sans, inherit)); margin: 0 0 6px; letter-spacing: -.01em; }
.island-ov-block p, .island-ov-list { font-size: 13px; line-height: 1.5; opacity: .82; margin: 0; }
.island-ov-list { padding-left: 16px; display: grid; gap: 4px; }
.island-ov-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.island-ov-thumbs img { width: 100%; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid rgba(128, 128, 128, .22); display: block; }
.island-ov-link { margin-top: 8px; padding: 0; border: 0; background: transparent; color: #c86d1f; font: 600 12.5px/1.2 var(--font-sans, inherit); cursor: pointer; }
html[data-atmosphere="dusk"] .island-ov-link, html[data-atmosphere="night"] .island-ov-link { color: #ffc98a; }
.island-ov-link:hover { text-decoration: underline; }

.island-settings-body { display: grid; gap: 12px; }
.island-set-row { display: grid; gap: 6px; }
.island-set-label { font: 600 12px/1.2 var(--font-sans, inherit); opacity: .78; }
.island-seg { display: flex; gap: 4px; padding: 3px; border-radius: 12px; background: rgba(128, 128, 128, .14); }
.island-seg button { flex: 1; height: 30px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: 600 12px/1 var(--font-sans, inherit); cursor: pointer; transition: background .2s; }
.island-seg button.is-on { background: #1d1b17; color: #fff8ee; }
html[data-atmosphere="dusk"] .island-seg button.is-on, html[data-atmosphere="night"] .island-seg button.is-on { background: #f4efe6; color: #15171b; }
.island-toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 13px/1.3 var(--font-sans, inherit); padding: 4px 0; cursor: pointer; }
.island-toggle-row input { width: 17px; height: 17px; accent-color: #d98a2b; cursor: pointer; }

.island-tour.is-cinema .island-drawer { opacity: 0; pointer-events: none; }

/* WebGL yoksa ya da bağlam düştüyse: kontroller gizlenir, gökyüzü ve kuşlar kalır */
.island-tour.is-failed .island-toolbar, .island-tour.is-failed .island-pins, .island-tour.is-failed .island-canvas { display: none; }

.home-pure-island .island-stage { touch-action: none; }
.home-pure-island .mbn { display: none !important; }

@media (max-width: 760px) {
  .home-page .mmw-stage { min-height: 460px; }
  .island-copy { left: 16px; right: 16px; bottom: 104px; max-width: none; }
  .island-eyebrow { font-size: 10px; }
  .island-title { font-size: 32px; margin-top: 6px; }
  .island-lead { display: none; }
  .island-toolbar {
    bottom: max(14px, env(safe-area-inset-bottom));
    top: auto;
    left: 10px;
    right: 10px;
    transform: none;
    max-width: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  .island-jumps {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 2px;
    padding: 3px;
  }
  .island-jumps::-webkit-scrollbar { display: none; }
  .island-jumps button { height: 30px; padding: 0 11px; font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }
  .island-utils button { height: 28px; padding: 0 11px; font-size: 11.5px; }
  .island-zoom { display: none; } /* mobilde iki parmakla yakınlaştırma (pinch-to-zoom) aktif */
  .island-reset { height: 28px; font-size: 11.5px; padding: 0 12px; }
  /* Mobilde odak kartı en üstte kompakt bir şerit olarak açılır: 3B nesnelerin önünü ASLA kapatmaz */
  .island-card { left: 10px; right: 10px; width: auto; top: 10px; bottom: auto; padding: 10px 13px; border-radius: 16px; }
  .island-card-head { padding-bottom: 6px; }
  .island-card h3 { margin-top: 6px; font-size: 16px; }
  .island-card p { margin-top: 4px; font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .island-go { margin-top: 8px; padding: 7px 13px; font-size: 12px; }
  .island-drawer { left: 12px; right: 12px; width: auto; bottom: 104px; max-height: calc(100% - 126px); padding: 15px 16px; }
  .island-pin { width: 32px; height: 32px; }
  .island-pin svg { width: 13px; height: 13px; }
  .island-pin-label { display: block; left: calc(100% + 5px); font-size: 10.5px; padding: 3px 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .island-pin-ring, .island-card { animation: none; }
  .island-canvas, .island-copy { transition: none; }
}
