/* VuBerber — ortak kabuk: yüzen oval alt bar + çekmece menü + hamburger.
   Hem pazarlama sayfaları (seo.css) hem uygulama sayfaları (components.css) kullanır. */

:root { --dock-h: 66px; }

.dock {
  position: fixed; z-index: var(--z-dock);
  left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom));
  width: calc(100% - 28px); max-width: 430px;
  display: flex; align-items: stretch; gap: 2px;
  padding: 6px;
  background: rgba(22, 22, 22, .82);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-pill);
  box-shadow: 0 12px 40px -8px rgba(0, 0, 0, .85);
}
.dock__item {
  flex: 1; min-width: 0; min-height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border-radius: var(--r-pill); text-decoration: none;
  color: var(--text-muted); -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out-soft);
}
.dock__item svg { width: 19px; height: 19px; flex-shrink: 0; }
.dock__item span {
  font-size: 10.5px; font-weight: var(--fw-medium); letter-spacing: .2px;
  line-height: 1; white-space: nowrap;
}
.dock__item:active { transform: scale(.94); }
.dock__item:focus-visible { outline: 2px solid var(--text); outline-offset: -2px; }
.dock__item--accent { background: var(--cta-bg); color: var(--cta-fg); }
.dock__item--accent:hover { background: var(--cta-bg-hover); }
@media (hover: hover) { .dock__item:hover { color: var(--text); background: rgba(255,255,255,.07); } .dock__item--accent:hover { color: var(--cta-fg); } }

/* Uygulama sayfalarında eski sabit alt navigasyonun payını sıfırla */
body.has-dock { padding-bottom: calc(var(--dock-h) + 26px + env(safe-area-inset-bottom)); }

/* Hamburger — sağda */
.menu-btn {
  width: 46px; height: 46px; flex-shrink: 0;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: 0; cursor: pointer; padding: 0;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}
.menu-btn span {
  display: block; width: 21px; height: 1.5px; background: var(--text); border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out-soft), opacity var(--dur-fast) ease;
}
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* ══ Çekmece menü ═════════════════════════════════════ */
.drawer {
  position: fixed; inset: 0; z-index: 90;
  visibility: hidden; pointer-events: none;
}
.drawer[data-open] { visibility: visible; pointer-events: auto; }

.drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, .66);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 240ms ease;
}
.drawer[data-open] .drawer__scrim { opacity: 1; }

.drawer__panel {
  position: absolute; inset: 0 0 0 auto;
  width: min(86vw, 340px);
  background: #0c0c0c;
  border-left: 1px solid var(--border);
  padding: 26px 26px calc(26px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(.16, 1, .3, 1);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer[data-open] .drawer__panel { transform: translateX(0); }

/* flex kolonda stretch logoyu yayıyordu — kendi oranında dursun */
.drawer__logo {
  height: 34px; width: auto; align-self: flex-start; flex-shrink: 0;
  display: block; margin-bottom: 30px; opacity: .95;
}

.drawer__grup { display: flex; flex-direction: column; }
.drawer__grup--ikincil {
  margin-top: 18px; padding-top: 18px;
  border-top: 1px solid var(--border);
}

.drawer__link {
  display: block;
  padding: 11px 0;
  font-family: var(--font-sans);
  font-size: 16px; font-weight: 500; letter-spacing: -.1px; line-height: 1.3;
  color: var(--text); text-decoration: none;
  transition: color 140ms ease, transform 220ms cubic-bezier(.16,1,.3,1);
}
.drawer__link:hover { color: var(--text-muted); transform: translateX(3px); }
.drawer__link:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 3px; }
.drawer__link--sm { font-size: 14px; font-weight: 400; color: var(--text-muted); padding: 8px 0; }
.drawer__link--sm:hover { color: var(--text); }

.drawer__meta {
  margin-top: auto; padding-top: 32px;
  display: flex; flex-direction: column;
}
.drawer__etiket {
  font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--text-subtle); margin-bottom: 5px;
}
.drawer__etiket + p { margin: 0 0 18px; }
.drawer__meta p {
  font-size: 13.5px; line-height: 1.5; color: var(--text-muted);
}
.drawer__meta a { color: var(--text); text-decoration: none; }
.drawer__meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* .drawer__meta a (0,2,0) rengi eziyordu — aynı özgüllükte geri al */
.drawer__meta a.drawer__cta {
  margin-top: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--touch-min); padding: 0 20px;
  background: var(--cta-bg); color: var(--cta-fg);
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600; letter-spacing: -.1px;
  text-decoration: none;
  transition: background 140ms ease, transform 140ms ease;
}
.drawer__meta a.drawer__cta:hover { background: var(--cta-bg-hover); text-decoration: none; }
.drawer__cta:active { transform: scale(.98); }
.drawer__cta:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .drawer__panel, .drawer__scrim, .drawer__link { transition: none !important; }
}
