/* Portfolio demo layer for Noctiso. Based on ../nikas-nails/demo.css, mapped to Noctiso's tokens. */
:root {
  /* Lift the app's bottom UI (frame rail, drawers) above the demo bar */
  --safe-bottom: calc(env(safe-area-inset-bottom, 0px) + 76px);
}
.demo-bar, .demo-drawer {
  --plum: var(--ink);
  --plum-soft: #2c2540;
  --cream: var(--bg-cream-alt);
  --gold: var(--c3-dawn);
  --rose: var(--c2-peach);
  --rose-deep: #b84c78;
  --blush-soft: #f6eef3;
  --line: var(--rule);
  --body: var(--font-mono);
  --display: var(--font-display);
  --ease: var(--ease-out);
  --shadow-sm: 0 2px 8px rgba(26, 23, 38, 0.12);
  --shadow: 0 10px 30px rgba(26, 23, 38, 0.28);
  --shadow-lg: 0 24px 60px rgba(26, 23, 38, 0.35);
}
.demo-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 9000; /* above the site's own layers */
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 32px);
  padding: 10px 12px 10px 16px;
  translate: -50% 0;
  background: var(--plum);
  color: var(--cream);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.demo-bar__dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.demo-bar__link {
  flex: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--plum);
  text-decoration: none;
  font-weight: 500;
}

.demo-bar__link:hover {
  background: #fff;
}

.demo-bar__short {
  display: none;
}

@media (max-width: 560px) {
  .demo-bar__text {
    display: none;
  }

  .demo-bar__short {
    display: inline;
    white-space: nowrap;
  }
}

/* Drawer */
.demo-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000; /* above the site's booking dialog */
  pointer-events: none;
}

.demo-drawer.open {
  pointer-events: auto;
}

.demo-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(69, 49, 58, 0.35);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

.demo-drawer.open .demo-drawer__backdrop {
  opacity: 1;
}

.demo-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100%);
  overflow-y: auto;
  padding: 48px 36px 96px;
  background: var(--cream);
  color: var(--plum);
  box-shadow: var(--shadow-lg);
  font-family: var(--body);
  line-height: 1.65;
  translate: 100% 0;
  transition: translate 0.45s var(--ease);
}

.demo-drawer.open .demo-drawer__panel {
  translate: 0 0;
}

.demo-drawer__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--plum);
  font-size: 22px;
  cursor: pointer;
}

.demo-drawer__eyebrow {
  margin: 0 0 10px;
  color: var(--rose-deep);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.demo-drawer__title {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
}

.demo-drawer__body h4 {
  margin: 28px 0 8px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
}

.demo-drawer__body p {
  margin: 0 0 12px;
  color: var(--plum-soft);
  font-size: 15px;
}

.demo-drawer__body code {
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--blush-soft);
  font-size: 13px;
}

.demo-steps {
  list-style: decimal;
  margin: 0;
  padding-left: 20px;
  color: var(--plum-soft);
  font-size: 15px;
}

.demo-steps li {
  margin-bottom: 8px;
}

.demo-steps li::marker {
  color: var(--rose);
}

.demo-steps strong {
  color: var(--plum);
  font-weight: 500;
}

.demo-note {
  margin-top: 20px !important;
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  background: rgba(196, 160, 106, 0.1);
  font-size: 13px !important;
}

/* WhatsApp preview */
.demo-chat {
  overflow: hidden;
  border-radius: 16px;
  background: #ece5dd;
  box-shadow: var(--shadow-sm);
}

.demo-chat__head {
  padding: 12px 16px;
  background: #075e54;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.demo-chat__bubble {
  max-width: 85%;
  margin: 16px 16px 16px auto;
  padding: 10px 12px;
  border-radius: 10px 10px 2px 10px;
  background: #dcf8c6;
  color: #222;
  font-size: 14px;
  line-height: 1.5;
}

.demo-chat__empty {
  padding: 20px 16px;
  color: #555;
  font-size: 14px;
}

/* Backend options */
.demo-options {
  display: grid;
  gap: 12px;
}

.demo-option {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.demo-option strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
}

.demo-option p {
  margin: 0 !important;
  font-size: 14px !important;
}

.demo-option__tag {
  color: var(--rose-deep);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Entry point inside the booking confirmation dialog */
.demo-explain {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px dashed var(--gold);
  border-radius: 10px;
  background: rgba(196, 160, 106, 0.08);
  color: var(--plum);
  font-family: var(--body);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.demo-explain:hover {
  background: rgba(196, 160, 106, 0.18);
}

/* Noctiso additions */
.demo-bar__btn {
  font: inherit;
  color: var(--cream);
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.demo-bar__btn:hover { background: rgba(255, 255, 255, 0.2); }
.demo-bar__btn[hidden] { display: none; }

.demo-score { display: grid; gap: 8px; margin: 12px 0 20px; }
.demo-score__row { display: grid; grid-template-columns: 7rem 1fr 4rem; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 12px; }
.demo-score__track { height: 6px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.demo-score__fill { display: block; height: 100%; background: var(--grad-sunset); }
.demo-score__total { font-weight: 500; border-top: 1px solid var(--rule); padding-top: 8px; }
.demo-vec { font-family: var(--font-mono); font-size: 12px; line-height: 1.7; }
.demo-sql { font-family: var(--font-mono); font-size: 11px; line-height: 1.5; background: #1a1726; color: #f2eee8; padding: 14px; border-radius: 10px; overflow-x: auto; white-space: pre; }

.demo-bar__mini { display: none; }
@media (max-width: 560px) {
  /* Four items share a phone-width bar: the dot stands in for the "Demo" label */
  .demo-bar { left: 16px; right: 16px; max-width: none; translate: none; justify-content: space-between; gap: 6px; padding-left: 12px; }
  .demo-bar__short { display: none; }
  .demo-bar__full { display: none; }
  .demo-bar__mini { display: inline; }
}
