/* Arakot Render Lab · v14 · UST · üst çubuk: cooldock'un çubuğu

   Measured on cooldock.app at 1440 × 900 (render-lab-v13/v13-referans/kareler/
   cooldock/00-ust.jpg, pixel rows; lab/v14-ust.mjs compares the two):
     the capsule floats 20 px from the top, 52 px tall, corner 16, padding 10,
     white at about 82 % over a blur (over the dark widget wall, 15.jpg and
     16.jpg, it stays a light grey with a bright top line: it never turns dark);
     left a 30 px icon tile (corner 9) and the name, 16 px / 600, 12 px apart;
     40 px of air; the links, 14 px, grey, 20 px apart; 40 px; the black
     button, 32 px tall, corner 8, 13 px / 600, an icon, 16 px sides, a soft
     shadow about 30 px wide that falls under the capsule's edge.
   Our own content in that frame: the grey Lab triangle (logo-gri.png) in a
   grey tile, Turkish words, a drawn bag icon.

   States:
     .is-koyu     (topbar.js) the peak and the reader's full screen: the band
                  behind the capsule takes the plugin's dark (--q-bg), as
                  app.js opens them under the band. The capsule stays white.
     body.is-manual  (app.js) "Elle kontrol" and #resume take the links'
                  place; the middle moves between two measured widths.
     .is-menu     (topbar.js, phone) the links open as a panel under the capsule.
   Rules kept: the band is one height per screen class (app.js reads
   #site.offsetHeight as HB and opens the peak under it): 72 desktop (20 + 52),
   56 on a phone and on a short landscape screen. Prices stay one click away.
   No green, no petrol: ink, greys and white only (lab/v14-ust.mjs scans).     */

.site {
  --tb-h: 72px;              /* the band app.js reads (HB) */
  --tb-top: 20px;
  --tb-kh: 52px;             /* the capsule */
  --tb-pad: 10px;
  --tb-r: 16px;
  --tb-gap: 30px;            /* + the links' own 10 px = cooldock's 40 px of air (left 3 px less: the name's last letter has its own side) */
  --tb-ink: #0b0b0c;
  --tb-ink-2: #4f4f52;       /* cooldock's link grey (#505050) */
  --tb-hair: rgba(11, 11, 12, 0.07);
  position: fixed; left: 0; right: 0; top: 0; z-index: 100;
  height: var(--tb-h); box-sizing: border-box; margin: 0; padding: 0;
  pointer-events: none;
  color: var(--tb-ink);
  font-family: var(--sc-font-text);
}
:where(.site) a { text-decoration: none; color: inherit; }
.site :is(a, button):focus-visible { outline: 2px solid var(--tb-ink); outline-offset: 2px; }

/* the band: clear over the scene (the capsule floats, as on cooldock); the
   plugin's dark when the peak or the reader's full screen opens under it */
.site::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: var(--q-bg, #1d1d1d); opacity: 0;
  transition: opacity 320ms var(--sc-ease-out);
}
.site.is-koyu::before { opacity: 1; }

/* ================================================================ capsule */
.tb-kapsul {
  position: absolute; z-index: 2; left: 50%; top: var(--tb-top);
  height: var(--tb-kh); box-sizing: border-box;
  display: flex; align-items: center;
  padding: 0 var(--tb-pad);
  transform: translateX(-50%);
  border-radius: var(--tb-r);
  pointer-events: auto;
}
/* white glass: 86 → 80 % white over a blur, a bright top line, a hairline
   and a shadow so soft that the capsule reads as floating, not as a card */
.tb-cam {
  position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.8));
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  backdrop-filter: blur(20px) saturate(1.8);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 1px rgba(11, 11, 12, 0.035),
    0 1px 2px rgba(11, 11, 12, 0.04),
    0 10px 32px -12px rgba(11, 11, 12, 0.14);
}
.tb-kapsul > :not(.tb-cam) { position: relative; z-index: 1; }

/* --------------------------------------------------------------- brand */
.site__brand {
  flex: 0 0 auto; display: flex; align-items: center; gap: 11px;
  height: 32px; margin: 0; padding: 0 2px 0 0; border-radius: 9px;
  white-space: nowrap; color: var(--tb-ink);
}
/* the icon tile: grey, like an app icon, with the grey triangle */
.tb-logo {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(180deg, #f4f4f4, #dedede);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(11, 11, 12, 0.07), 0 1px 2px rgba(11, 11, 12, 0.14), 0 2px 6px -2px rgba(11, 11, 12, 0.12);
}
.tb-logo img { display: block; width: 20px; height: 20px; margin-top: -1px; }
.site__n { font: 600 16.5px/1 var(--sc-font-display); letter-spacing: -0.014em; color: var(--tb-ink); }

/* -------------------------------------------------------------- links */
/* the middle is as wide as the links (or, in manual mode, as the strip):
   topbar.js measures both so the width can move; without it, the links' own */
.tb-orta {
  position: relative; flex: 0 0 auto; display: flex; justify-content: center;
  margin: 0 var(--tb-gap) 0 calc(var(--tb-gap) - 3px); width: var(--tb-w-nav, auto); height: 32px;
  transition: width 420ms var(--sc-ease-out);
}
body.is-manual .tb-orta { width: var(--tb-w-man, auto); }
.site__nav {
  flex: 0 0 auto; display: flex; align-items: center; height: 32px; margin: 0;
  transition: opacity 200ms var(--sc-ease-out), visibility 0s;
}
.site__nav a {
  position: relative; display: flex; align-items: center; height: 32px; padding: 0 10px;
  border-radius: 8px; white-space: nowrap;
  font: 450 14px/1 var(--sc-font-text); letter-spacing: -0.003em; color: var(--tb-ink-2);
  transition: color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
/* v16 · DEMO2: the demo tab. A button, not a link (it opens the plugin, the page
   does not jump); the links' type and grey, and a small arrow in the invitation's
   amber (dugme.css .btn--davet) that says it opens something                     */
.site__nav .tb-demo {
  position: relative; display: flex; align-items: center; gap: 6px; height: 32px; margin: 0; padding: 0 10px;
  border: 0; border-radius: 8px; background: transparent; white-space: nowrap; cursor: pointer;
  font: 450 14px/1 var(--sc-font-text); letter-spacing: -0.003em; color: var(--tb-ink-2);
  transition: color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.site__nav .tb-demo .tb-ic { flex: 0 0 auto; width: 13px; height: 13px; color: #a8691a; }
@media (hover: hover) and (pointer: fine) {
  .site__nav .tb-demo:hover { color: var(--tb-ink); }
}
/* v19 · FIYAT3 (Sadullah: "Nasıl çalışır" and "Demoyu deneyin" are the same thing): one item
   left, the demo. Three links in the middle, then two actions side by side: the demo as the
   capsule's quiet button (the light grey of "Sayfaya dönün"), then the black "Satın alın".
   The middle's right air shrinks to the actions' own gap, so the two read as one pair. */
.tb-orta { margin-right: 8px; }
.site__nav .tb-demo {
  margin-left: 14px; padding: 0 13px 0 11px; gap: 7px;
  background: rgba(11, 11, 12, 0.065); color: var(--tb-ink); font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(11, 11, 12, 0.04);
}
@media (hover: hover) and (pointer: fine) {
  .site__nav .tb-demo:hover { background: rgba(11, 11, 12, 0.11); }
}
/* from 821 px: the air and the sides a little tighter, the arrow left out */
@media (min-width: 821px) and (max-width: 980px) and (pointer: fine) {
  .site { --tb-gap: 16px; }
  .site__nav a { padding: 0 7px; }
  .site__nav .tb-demo { margin-left: 8px; padding: 0 10px; }
  .site__nav .tb-demo .tb-ic { display: none; }
}
/* /v16 · DEMO2 */
/* the section on screen (app.js sets aria-current): the ink, nothing louder */
.site__nav a[aria-current="true"] { color: var(--tb-ink); }
@media (hover: hover) and (pointer: fine) {
  .site__nav a:hover { color: var(--tb-ink); }
}

/* ----------------------------------------------------- "Elle kontrol" --
   app.js shows #manual (hidden = false) and sets body.is-manual together; the
   strip is kept in the layout (measured) and cross-fades with the links.   */
.site__manual, .site__manual[hidden] {
  display: flex; align-items: center; gap: 12px;
  position: absolute; left: 50%; top: 0; height: 32px; margin: 0; transform: translateX(-50%);
  white-space: nowrap; font: 500 14px/1 var(--sc-font-text); color: var(--tb-ink);
  visibility: hidden; opacity: 0;
  transition: opacity 160ms var(--sc-ease-out), visibility 0s linear 160ms;
}
body.is-manual .site__manual:not([hidden]) { visibility: visible; opacity: 1; transition: opacity 220ms var(--sc-ease-out) 120ms, visibility 0s; }
body.is-manual .site__nav { visibility: hidden; opacity: 0; transition: opacity 140ms var(--sc-ease-out), visibility 0s linear 140ms; }
.site__ml { display: flex; align-items: center; }
.site__ml::before {                          /* a real state: the reader has the controls */
  content: ""; flex: 0 0 auto; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%;
  background: var(--sc-warn-dot, #c98b1f); box-shadow: 0 0 0 3px rgba(201, 139, 31, 0.18);
}
.site__ml2 { color: var(--tb-ink-2); white-space: pre; }
/* "Rehbere dönün": the capsule's quiet second button (light grey, ink words) */
.site__manual .tb-geri {
  height: 32px; min-height: 32px; --sc-btn-pad: 14px; border-radius: 8px;
  background: rgba(11, 11, 12, 0.065); color: var(--tb-ink);
  box-shadow: inset 0 0 0 1px rgba(11, 11, 12, 0.04);
  font: 600 13px/1 var(--sc-font-display); letter-spacing: -0.004em;
}
@media (hover: hover) and (pointer: fine) {
  .site__manual .tb-geri:hover { background: rgba(11, 11, 12, 0.11); }
}

/* --------------------------------------------------- the black button */
.site__buy { flex: 0 0 auto; }
.site__buy .tb-ic { display: block; width: 14px; height: 14px; margin: -1px 0 0 -1px; }
/* the bar's own size, also on touch screens (dugme.css would make 44) */
.site__buy.btn { height: 32px; min-height: 32px; }

/* the phone's menu door: hidden on a desk */
.tb-menu { display: none; }
.tb-gizli { display: none !important; }     /* app.js still writes #siteWhere, #nfWhere, #siteProgI */

/* ============================================================ short screens */
@media (min-width: 821px) and (max-height: 520px) and (pointer: fine) {
  .site { --tb-h: 56px; --tb-top: 6px; --tb-kh: 46px; --tb-pad: 7px; --tb-r: 14px; }
}

/* ===================================================================== phone
   The same capsule across the screen: tile, name, the black button and a
   menu door. The four links open as a panel under the capsule. Targets: the
   door and the button 36 px, the panel's rows 48 px.                        */
@media (max-width: 820px), (max-height: 500px) and (pointer: coarse) {
  .site { --tb-h: 56px; --tb-top: 8px; --tb-kh: 48px; --tb-pad: 6px; --tb-r: 14px; }
  .tb-kapsul { left: 10px; right: 10px; transform: none; padding-left: 8px; }
  .site__brand { gap: 9px; height: 36px; margin-right: auto; min-width: 0; }
  .tb-logo { width: 28px; height: 28px; border-radius: 8px; }
  .tb-logo img { width: 19px; height: 19px; }
  .site__n { font-size: 15px; }
  /* the middle steps out of the row: the panel and the strip hang from the capsule */
  .tb-kapsul > .tb-orta { position: static; width: 0 !important; height: 0; margin: 0; }
  .site__buy.btn { height: 36px; min-height: 36px; --sc-btn-pad: 13px; }

  .tb-menu {
    display: grid; place-items: center; position: relative; flex: 0 0 auto;
    width: 36px; height: 36px; margin: 0 0 0 6px; padding: 0; border: 0; border-radius: 9px;
    background: rgba(11, 11, 12, 0.055); color: var(--tb-ink); cursor: pointer;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
  }
  .tb-menu i {
    position: absolute; left: 11px; right: 11px; height: 1.6px; border-radius: 1px; background: currentColor;
    transition: transform 260ms var(--sc-ease-out);
  }
  .tb-menu i:first-of-type { top: 14px; }
  .tb-menu i:last-of-type { top: 20.4px; }
  .site.is-menu .tb-menu i:first-of-type { transform: translateY(3.2px) rotate(45deg); }
  .site.is-menu .tb-menu i:last-of-type { transform: translateY(-3.2px) rotate(-45deg); }

  /* the panel: the same white glass, under the capsule, never over the button */
  .site__nav {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); transform: translateY(-6px);
    flex-direction: column; align-items: stretch; height: auto; padding: 6px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(20px) saturate(1.8); backdrop-filter: blur(20px) saturate(1.8);
    box-shadow: inset 0 1px 0 #fff, 0 0 0 1px rgba(11, 11, 12, 0.05), 0 18px 44px -14px rgba(11, 11, 12, 0.32);
    visibility: hidden; opacity: 0;
    transition: opacity 180ms var(--sc-ease-out), transform 260ms var(--sc-ease-out), visibility 0s linear 260ms;
  }
  .site.is-menu .site__nav { visibility: visible; opacity: 1; transform: none; transition: opacity 200ms var(--sc-ease-out), transform 300ms var(--sc-ease-out), visibility 0s; }
  .site__nav a { height: 48px; padding: 0 14px; border-radius: 10px; font-size: 16px; font-weight: 500; color: var(--tb-ink); }
  .site__nav a + a::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: var(--tb-hair); }
  .site__nav a:active { background: rgba(11, 11, 12, 0.05); }
  /* v16 · DEMO2: the demo tab is a row of the panel like the links */
  .site__nav .tb-demo { height: 48px; padding: 0 14px; gap: 9px; border-radius: 10px; font-size: 16px; font-weight: 500; color: var(--tb-ink); text-align: left; margin-left: 0; background: transparent; box-shadow: none; }   /* v19 · FIYAT3: a plain row here */
  .site__nav .tb-demo .tb-ic { width: 15px; height: 15px; }
  .site__nav a + .tb-demo::before, .site__nav .tb-demo + a::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 1px; background: var(--tb-hair); }
  .site__nav .tb-demo:active { background: rgba(11, 11, 12, 0.05); }

  /* manual mode: the strip takes the brand's place; the door steps aside */
  .site__manual, .site__manual[hidden] { left: 8px; top: 50%; height: 36px; transform: translateY(-50%); gap: 8px; }
  .site__ml2 { display: none; }
  .site__ml::before { width: 7px; height: 7px; margin-right: 7px; }
  .site__manual .tb-geri { height: 36px; min-height: 36px; --sc-btn-pad: 12px; }
  body.is-manual .site__brand { visibility: hidden; opacity: 0; }
  body.is-manual .tb-menu { display: none; }
  /* v16 · MOBIL: the 36 px door, button, name and "Küçültün" answer a thumb up to the capsule's
     edges (48 px tall), with no change to how they look */
  .site__brand, .site__manual .tb-geri { position: relative; }
  .site__buy.btn, .site__manual .tb-geri { overflow: visible; }   /* (dugme.css :where(.btn) clips; these two draw nothing outside) */
  .tb-menu::after, .site__buy.btn::after, .site__brand::after, .site__manual .tb-geri::after { content: ""; position: absolute; top: -6px; bottom: -6px; left: -3px; right: -3px; }
  .tb-menu::after { right: -6px; }
}
@media (max-width: 380px) {
  .site__n { font-size: 14.5px; }
  .site__buy.btn { --sc-btn-pad: 11px; }
  /* a narrow phone in manual mode: the button keeps its icon, not its words */
  body.is-manual .site__buy .btn__t { font-size: 0; gap: 0; }
  body.is-manual .site__buy.btn { width: 36px; --sc-btn-pad: 0; }
  body.is-manual .site__buy .tb-ic { margin: 0; }
}

/* ============================================================ less motion */
@media (prefers-reduced-motion: reduce) {
  .site::before, .tb-orta, .site__nav, .site__nav a, .site__manual, .site__manual[hidden],
  .site.is-menu .site__nav, body.is-manual .site__nav, body.is-manual .site__manual:not([hidden]), .tb-menu i { transition: none !important; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 820px), (prefers-reduced-motion: reduce) and (max-height: 500px) and (pointer: coarse) {
  .site__nav { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .tb-cam, .site__nav { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .tb-cam { border: 1px solid CanvasText; }
  .site__nav { border: 1px solid CanvasText; }
}
