/* Kurucu 10 Eylül: gerçek eliptik halka ve katmanlı çalışma pencereleri.
   Referans görseller bu yüzeye yapıştırılmaz; bütün öğeler gerçek DOM'dur. */
.mekan { --mekan-edge: #7796c6; --mekan-gold: var(--gold-light); color: var(--ink);
  /* Odak/scrollIntoView sahnenin tamamını kaydırmasın; içerik kendi gövdesinde kayar. */
  position: relative; height: 100dvh; min-height: 650px; overflow: hidden; overflow: clip;
  background: radial-gradient(ellipse at 50% 76%, #1b3f70 0%, #0b1b32 32%, #050c18 75%);
  isolation: isolate; }
.mekan::before { content: ''; position: absolute; inset: 45% -25% -45%; z-index: -1;
  background: repeating-linear-gradient(90deg, #85b5ff16 0 1px, transparent 1px 80px),
    repeating-linear-gradient(0deg, #85b5ff16 0 1px, transparent 1px 80px);
  transform: perspective(520px) rotateX(55deg); pointer-events: none; }
.mekan-header { height: 86px; display: flex; align-items: center; gap: 24px; padding: 12px 36px; }
.mekan-brand { display: flex; align-items: center; gap: 10px; color: #e2edff; font-size: 34px;
  font-weight: 750; text-decoration: none; flex-shrink: 0; }
.mekan-brand img { object-fit: contain; }
.mekan-button { cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; min-width: 44px; min-height: 44px; border: 1px solid #7796c646;
  border-radius: 14px; color: var(--ink); background: linear-gradient(140deg, #20334cdd, #0c1729ee);
  padding: 10px 16px; font: inherit; font-size: 14px; }
.mekan-button svg { flex-shrink: 0; }
.mekan-button:hover { border-color: var(--mekan-gold); }
.mekan-button:focus-visible, .mekan-dots button:focus-visible { outline: 3px solid var(--mekan-gold); outline-offset: 3px; }
.mekan-search { width: min(430px, 40%); justify-content: flex-start; margin: 0 auto;
  border-radius: 28px; color: var(--ink-2); }
.mekan-header-actions { display: flex; gap: 12px; }
.mekan-gold { background: linear-gradient(140deg, #665437, #2f2a24); border-color: var(--mekan-gold); }
.mekan-demo { position: absolute; top: 83px; left: 0; right: 0; text-align: center;
  color: #b5c6df; font-size: 11px; letter-spacing: .03em; }
.mekan-stage { position: absolute; left: 0; right: 0; top: 110px; bottom: 258px;
  perspective: 1400px; touch-action: pan-y; }
.mekan-window { position: absolute; top: 0; left: 50%; height: 100%; width: min(770px, 62%);
  border: 1px solid #b3cceb; border-radius: 22px; background: linear-gradient(140deg, #1d304aea, #071326fc 70%);
  box-shadow: 0 0 0 2px #eff4ff18, 0 0 26px #72aaf04d, 0 24px 48px #000b, inset 0 1px 2px #e8f0ff55;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 380ms ease, opacity 380ms ease, box-shadow 380ms ease; transform-origin: center; }
.mekan-window[hidden] { display: none; }
.mekan-window[data-layer="active"] { transform: translateX(-50%); z-index: 4; opacity: 1;
  border-bottom-color: var(--mekan-gold); box-shadow: 0 0 0 1px #e9d49d66, 0 0 24px #5d9ceb55, 0 20px 60px #000b; }
.mekan-window[data-layer="active"].mekan-full { width: calc(100% - 48px); }
.mekan:has(.mekan-full[data-layer="active"]) .mekan-stage { bottom: 75px; z-index: 130; }
.mekan-window[data-layer="1"] { transform: translateX(-95%) scale(.64) rotateY(15deg); z-index: 2; opacity: .48; }
.mekan-window[data-layer="2"] { transform: translateX(-5%) scale(.62) rotateY(-15deg); z-index: 1; opacity: .34; }
.mekan-window-tools { display: flex; align-items: center; gap: 8px; padding: 12px 14px;
  border-bottom: 1px solid #90b2da26; }
.mekan-window-tools > span { flex: 1; color: #bcd0e9; font-size: 13px; }
.mekan-window-tools .mekan-button { padding: 8px; border-radius: 50%; }
.mekan-window-tools .mekan-button > span { display: none; }
.mekan-window-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; touch-action: pan-y; padding: 22px; }
.mekan-window-body > .page { max-width: none; padding: 0; }
/* Kayıt bilgileri gerektiğinde açılır; anlatım ilk görünümde yer bulur. */
:is(.mekan-company-actions, .mekan-contact-details) { flex: 0 0 100%; min-width: 0; border: 1px solid #90b2da40;
  border-radius: 12px; background: #09162ab8; }
:is(.mekan-company-actions, .mekan-contact-details) > summary { min-height: 44px; padding: 12px 14px;
  cursor: pointer; color: var(--ink); font-weight: 600; }
:is(.mekan-company-actions, .mekan-contact-details) > summary:focus-visible { outline: 2px solid var(--mekan-gold); outline-offset: -2px; }
:is(.mekan-company-actions, .mekan-contact-details)[open] > summary { border-bottom: 1px solid #90b2da26; }
.mekan-company-actions > .col { padding: 12px 14px; }
.mekan-window-body .page__head:has(> .mekan-company-actions) { gap: 8px; margin-bottom: 8px; }
.mekan-contact-details { margin: 16px 0; }
.mekan-contact-details > :not(summary) { margin: 12px 0 0; }
.mekan-window-cover { position: absolute; inset: 0; border-radius: inherit; background: transparent;
  align-items: flex-start; justify-content: center; padding-top: 16px; color: #d5e4f9; }
.mekan-window-cover[hidden] { display: none; }
.mekan-ring { position: absolute; height: 212px; bottom: 55px; left: 0; right: 0;
  touch-action: pan-y; user-select: none; }
.mekan-orbit { position: absolute; top: 50%; left: 7%; right: 7%; height: 140px;
  transform: translateY(-50%); border: 2px solid #dfbd7a99; border-radius: 50%;
  box-shadow: 0 0 14px #eccb7655, inset 0 0 14px #72acff55; pointer-events: none; }
.mekan-orbit::before, .mekan-orbit::after { content: ''; position: absolute; border: 1px solid #7bafffc4;
  border-radius: 50%; inset: 18px 18%; box-shadow: 0 0 15px #6aa8fa66; }
.mekan-orbit::after { inset: 35px 32%; }
.mekan-ring-item { position: absolute; top: 44%; left: 50%; width: 158px; height: 108px;
  flex-direction: column; font-size: 17px; font-weight: 600; border-radius: 12px;
  border-color: #95b4e7aa; background: linear-gradient(150deg, #2d4262fa, #09162afc 70%);
  box-shadow: inset 0 1px 2px #fff4, 0 6px 16px #0007; padding: 5px; gap: 5px; }
.mekan-ring-item svg { width: min(32px, 28%); height: auto; }
.mekan-ring-item.is-selected { border: 2px solid #ffe0a0; color: #fff3da;
  background: linear-gradient(135deg, #6b593c, #252b33 70%);
  box-shadow: 0 0 20px #ffc55780, inset 0 0 20px #e9ca7155; }
/* Eğim ve saydamlık camda; etiketler kendi gerçek piksel boyutunda. */
.mekan-ring-item::before { content: ''; position: absolute; inset: 0; z-index: -1;
  border: 1px solid #95b4e7aa; border-radius: inherit;
  background: linear-gradient(150deg, #2d4262fa, #09162afc 70%);
  box-shadow: inset 0 1px 2px #fff4, 0 6px 16px #0007;
  transform: perspective(700px) rotateY(var(--mekan-card-tilt, 0deg));
  opacity: var(--mekan-card-opacity, 1); pointer-events: none; }
.mekan-ring-item.is-selected::before { border: 2px solid #ffe0a0;
  background: linear-gradient(135deg, #6b593c, #252b33 70%);
  box-shadow: 0 0 20px #ffc55780, inset 0 0 20px #e9ca7155; }
.mekan-ring-item, .mekan-ring-item.is-selected { background: transparent; border-color: transparent; box-shadow: none; }
.mekan-ring-arrow { position: absolute; z-index: 110; top: 42%; border: none;
  background: transparent; color: #f2cc7b; font-size: 36px; width: 48px; }
.mekan-ring-arrow > span { display: none; }
.mekan-ring-arrow--left { left: 1%; }
/* Sabit C@T asistanı sağ alttadır; halka yön düğmesi onun altında kalmaz. */
.mekan-ring-arrow--right { right: max(1%, 96px); }
.mekan-footer { position: absolute; bottom: 0; left: 0; right: 0; height: 62px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
  border-top: 1px solid #89a9db30; background: #091326d9; }
.mekan-footer .mekan-button { border: 0; background: none; }
.mekan-mobile-anlat, .mekan-mobile-profile, .mekan-dots, .mekan-neighbor { display: none; }
.mekan-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mekan-demo-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.mekan-demo-heading > svg { width: 58px; height: 58px; color: #d4e6ff; }
.mekan-demo-heading h1 { margin: 0; font-size: clamp(25px, 3vw, 34px); }
.mekan-demo-heading p { margin: 6px 0 0; color: #bcd0e9; }
.mekan-demo-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.mekan-demo-card { padding: 20px; min-height: 116px; border: 1px solid #5776a566; border-radius: 14px;
  background: linear-gradient(130deg, #213958, #14263b); color: #eaf2ff; text-align: left; }
button.mekan-demo-card { cursor: pointer; }
.mekan-demo-card:hover { border-color: #ecc879; }
.mekan-demo-card p { color: #a8bfdc; margin: 6px 0; font-size: 14px; }
.mekan-demo-tabs { display: flex; gap: 4px; margin: 18px 0; border-bottom: 1px solid #8da9cb45; }
.mekan-demo-tabs button { flex: 1; background: none; border: none; border-radius: 0; font-size: 14px; padding: 12px 4px; }
.mekan-demo-tabs button[aria-selected="true"] { color: #f2d78f; border-bottom: 2px solid #f2d78f; }
.mekan-demo-primary { display: block; width: 100%; margin-top: 20px; color: #141820;
  background: linear-gradient(125deg, #ffe19a, #cd9740); border-color: #ffdc94; font-weight: 700; }
.mekan-ref { max-width: 100%; width: 100%; height: auto; object-fit: contain; }
@media (max-width: 1000px) and (min-width: 701px) {
  .mekan-ring-item { width: 104px; font-size: 15px; }
  .mekan-window { width: 68%; }
}
@media (max-width: 700px) {
  .mekan { min-height: 540px; }
  .mekan-header { height: 88px; padding: 14px 18px; justify-content: space-between; }
  .mekan-brand { font-size: 30px; }
  .mekan-header-actions .mekan-gold, .mekan-search { display: none; }
  .mekan-header-actions .mekan-button > span { display: none; }
  .mekan-stage { top: 126px; bottom: 160px; }
  .mekan-window { width: calc(100% - 60px); border-radius: 18px; }
  .mekan-window[data-layer="active"] { animation: mekan-arrive 300ms ease-out; }
  .mekan-window[data-layer="1"], .mekan-window[data-layer="2"] { visibility: hidden; }
  .mekan-window-body { padding: 16px; }
  .mekan-window-tools { padding: 8px; gap: 4px; }
  .mekan-window-tools > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mekan-ring { display: none; }
  .mekan-neighbor { display: flex; position: absolute; width: 90px; top: 8%; height: 84%;
    flex-direction: column; padding: 5px; border-radius: 15px; opacity: .65;
    box-shadow: 0 0 16px #82b9ff22; font-size: 12px; z-index: 0; }
  .mekan-neighbor--left { left: -65px; transform: perspective(500px) rotateY(18deg); }
  .mekan-neighbor--right { right: -65px; transform: perspective(500px) rotateY(-18deg); }
  .mekan-neighbor > span { writing-mode: vertical-rl; }
  .mekan-neighbor svg { width: 20px; }
  .mekan-dots { display: flex; position: absolute; bottom: 100px; left: 10px; right: 10px; justify-content: flex-start;
    overflow-x: auto; scrollbar-width: none; gap: 0; }
  .mekan-dots button { width: 44px; flex: 0 0 44px; height: 44px; padding: 0; background: none; border: none; cursor: pointer; }
  .mekan-dots button::after { content: ''; display: block; margin: auto; width: 8px; height: 8px;
    border-radius: 50%; background: #64738b; }
  .mekan-dots button[aria-current="page"]::after { background: #ffe096; box-shadow: 0 0 8px #f9ca68aa; }
  .mekan-footer { height: 86px; padding: 0 20px max(4px,env(safe-area-inset-bottom)); justify-content: space-around; }
  .mekan-footer .mekan-button { flex-direction: column; gap: 5px; font-size: 12px; }
  .mekan-mobile-anlat, .mekan-mobile-profile { display: flex; }
  .mekan-more, .mekan-settings { display: none; }
  .mekan-footer .mekan-gold { color: #ffe196; }
  .mekan-demo-heading { gap: 10px; margin-bottom: 18px; }
  .mekan-demo-heading h1 { font-size: 26px; }
  .mekan-demo-heading > svg { width: 38px; height: 38px; }
  .mekan-demo-cards { grid-template-columns: 1fr; }
  .mekan-demo-tabs { flex-wrap: wrap; }
  .mekan-demo-tabs button { min-width: 44%; }
  .mekan-demo-card { padding: 16px; }
}
@keyframes mekan-arrive { from {opacity: .6; transform: translateX(-45%) scale(.94);} to {opacity: 1; transform: translateX(-50%);} }
.masa-secim { display:flex; align-items:center; gap:6px; padding:6px 0; border-bottom:1px solid #8aa5ce22; }
.masa-secim > span { flex:1; min-width:0; font-size:14px; }
.masa-secim button { min-width:44px; min-height:44px; flex-shrink:0; }
.mekan [hidden] { display:none !important; }
@media (prefers-reduced-motion: reduce) {
  .mekan *, .mekan *::before, .mekan *::after { animation: none !important; transition: none !important; }
}
