/* ==========================================================================
   Demo siteler – ortak parçalar
   - Üstteki "Bu bir örnek sitedir" şeridi (Nokta Dijital renkleri)
   - "Demo sitede bu buton devre dışı" bildirimi
   Yazı tipi, bulunduğu demo sitenin yazı tipini kullanır.
   ========================================================================== */

.demo-vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.demo-bar {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 48px 6px 16px;
  background: #0F1430;
  color: #C9CEE0;
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
}
.demo-bar-closed .demo-bar { display: none; }

.demo-bar__text { margin: 0; }

.demo-bar a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  color: #FF5A36;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.demo-bar a:hover { color: #FFFFFF; }
.demo-bar a svg { width: 14px; height: 14px; flex: none; }

.demo-bar__close {
  position: absolute;
  top: 50%;
  right: 6px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #C9CEE0;
  cursor: pointer;
}
.demo-bar__close:hover { background: rgb(255 255 255 / 0.1); color: #FFFFFF; }
.demo-bar__close svg { width: 18px; height: 18px; }

.demo-bar a:focus-visible,
.demo-bar__close:focus-visible {
  outline: 2px solid #FF5A36;
  outline-offset: 2px;
}

/* Devre dışı demo butonlarına basınca çıkan kısa bildirim */
.demo-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 999px;
  background: #0F1430;
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 12px 32px -12px rgb(0 0 0 / 0.5);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.demo-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
/* Mobilde sabit alt çubuk varsa bildirimi onun üstünde göster */
.has-bottom-bar .demo-toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

@media (prefers-reduced-motion: reduce) {
  .demo-toast { transition: none; }
}
