/* SevinHub Device Demo: live product demos inside a phone or a laptop (includes/device-demo.php). */
.shdd {
  --shdd-ink: #0b0b12;
  --shdd-rim: #2a2a38;
  --shdd-alu: linear-gradient(180deg, #d9dae3 0%, #b9bbc8 55%, #9c9eac 100%);
  --shdd-glow: rgba(124, 58, 237, .28);
  --shdd-bar-bg: var(--bg-card, #111120);
  --shdd-line: var(--border, rgba(255,255,255,.07));
  --shdd-text: var(--text-primary, #f0f0f8);
  --shdd-muted: var(--text-secondary, #9999bb);
  --shdd-accent: var(--purple, #7c3aed);
  position: relative;
  margin: 0 auto;
  max-width: 1180px;
}
[data-theme="light"] .shdd { --shdd-glow: rgba(124, 58, 237, .16); }

/* ── toolbar ─────────────────────────────────────────────────────────── */
.shdd-bar {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin: 0 auto .9rem; max-width: 560px;
}
.shdd-switch {
  display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px;
  background: var(--shdd-bar-bg); border: 1px solid var(--shdd-line);
}
.shdd-seg {
  display: inline-flex; align-items: center; gap: .45rem;
  min-height: 40px; padding: 0 1.05rem; border: 0; border-radius: 999px;
  background: transparent; color: var(--shdd-muted);
  font: 600 .9rem/1 var(--font, Inter, system-ui, sans-serif);
  cursor: pointer; transition: background .2s, color .2s;
}
.shdd-seg:hover { color: var(--shdd-text); }
.shdd-seg[aria-pressed="true"] { background: var(--shdd-accent); color: #fff; box-shadow: 0 6px 18px var(--shdd-glow); }
.shdd-seg:focus-visible, .shdd-tool:focus-visible, .shdd-start:focus-visible { outline: 2px solid var(--shdd-accent); outline-offset: 2px; }
.shdd-tools { display: inline-flex; gap: .4rem; }
.shdd-tool {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-width: 40px; height: 40px; padding: 0 .7rem; border-radius: 999px;
  background: var(--shdd-bar-bg); border: 1px solid var(--shdd-line); color: var(--shdd-text);
  font: 600 .85rem/1 var(--font, Inter, system-ui, sans-serif); cursor: pointer; text-decoration: none;
}
.shdd-tool:hover { border-color: var(--shdd-accent); color: var(--shdd-text); }

/* ── stage: the device keeps real CSS pixel dimensions, .shdd-fit scales it ── */
.shdd-stage { position: relative; display: flex; justify-content: center; overflow: hidden; }
.shdd-fit { transform-origin: top left; flex: none; }
.shdd-device { position: relative; }
.shdd-lid { position: relative; background: var(--shdd-ink); }
.shdd-screen { position: relative; overflow: hidden; background: #fff; }
.shdd-screen iframe { display: block; border: 0; width: 100%; height: 100%; background: #fff; }
.shdd-cam {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3b4a6b 0 25%, #10131c 45%);
  box-shadow: 0 0 0 2px #15151e;
}

/* phone: camera lives in the top bezel, never over the page */
.shdd[data-device="phone"] .shdd-device { width: 414px; }
.shdd[data-device="phone"] .shdd-lid {
  padding: 34px 12px 22px; border-radius: 56px;
  box-shadow: inset 0 0 0 2px var(--shdd-rim), 0 0 0 1px rgba(255,255,255,.06), 0 30px 70px rgba(0,0,0,.45), 0 0 90px var(--shdd-glow);
}
.shdd[data-device="phone"] .shdd-lid::before,
.shdd[data-device="phone"] .shdd-lid::after {
  content: ''; position: absolute; right: -3px; width: 3px; border-radius: 0 3px 3px 0; background: var(--shdd-rim);
}
.shdd[data-device="phone"] .shdd-lid::before { top: 150px; height: 64px; }
.shdd[data-device="phone"] .shdd-lid::after { top: 232px; height: 38px; }
.shdd[data-device="phone"] .shdd-cam { top: 12px; }
.shdd[data-device="phone"] .shdd-screen { width: 390px; height: 844px; border-radius: 40px 40px 42px 42px; }
.shdd[data-device="phone"] .shdd-base { display: none; }

/* laptop: 1440x900 screen, thin bezel, aluminium deck */
.shdd[data-device="laptop"] .shdd-device { width: 1504px; }
.shdd[data-device="laptop"] .shdd-lid {
  margin: 0 auto; width: 1476px; padding: 26px 18px 22px; border-radius: 26px 26px 6px 6px;
  box-shadow: inset 0 0 0 2px var(--shdd-rim), 0 30px 80px rgba(0,0,0,.4), 0 0 120px var(--shdd-glow);
}
.shdd[data-device="laptop"] .shdd-cam { top: 8px; width: 8px; height: 8px; }
.shdd[data-device="laptop"] .shdd-screen { width: 1440px; height: 900px; border-radius: 4px; }
.shdd[data-device="laptop"] .shdd-base {
  position: relative; display: block; height: 30px; margin-top: -1px;
  background: var(--shdd-alu); border-radius: 2px 2px 26px 26px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35), inset 0 2px 0 rgba(255,255,255,.55);
}
.shdd[data-device="laptop"] .shdd-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 230px; height: 11px; border-radius: 0 0 12px 12px; background: rgba(0,0,0,.18);
}

/* ── start cover and loading ──────────────────────────────────────────── */
.shdd-cover {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(124,58,237,.55), transparent 60%),
    radial-gradient(90% 60% at 50% 100%, rgba(6,182,212,.35), transparent 60%),
    #0b0b16;
}
.shdd-start {
  display: flex; flex-direction: column; align-items: center; gap: .9rem;
  padding: 2rem; border: 0; background: none; color: #fff; cursor: pointer; text-align: center;
  font-family: var(--font, Inter, system-ui, sans-serif);
}
.shdd-play {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: #fff; color: #5b21b6; font-size: 3rem;
  box-shadow: 0 0 0 10px rgba(255,255,255,.12), 0 16px 40px rgba(0,0,0,.4);
  transition: transform .2s;
}
.shdd-start:hover .shdd-play { transform: scale(1.06); }
.shdd-start-t { font: 700 1.6rem/1.2 var(--sh7-head, Sora, Inter, sans-serif); }
.shdd-start-s { font-size: 1.05rem; opacity: .8; max-width: 300px; }
.shdd[data-device="laptop"] .shdd-play { width: 130px; height: 130px; font-size: 4.4rem; }
.shdd[data-device="laptop"] .shdd-start-t { font-size: 2.6rem; }
.shdd[data-device="laptop"] .shdd-start-s { font-size: 1.5rem; max-width: 560px; }
.shdd-loading {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  background: #0b0b16; color: #c9c9e0; font: 500 1.1rem/1 var(--font, Inter, system-ui, sans-serif);
}
.shdd-loading[hidden], .shdd-cover[hidden], .shdd-tool[hidden] { display: none; }
.shdd-spin {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid rgba(255,255,255,.15); border-top-color: #a78bfa;
  animation: shdd-spin .8s linear infinite;
}
@keyframes shdd-spin { to { transform: rotate(360deg); } }

.shdd-note { margin: .9rem auto 0; text-align: center; color: var(--shdd-muted); font-size: .85rem; max-width: 560px; }
.shdd-note a { color: var(--purple-light, #9f6bff); }

/* ── fullscreen overlay (own implementation: iPhone Safari has no element fullscreen) ── */
.shdd.is-full {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 10050;
  max-width: none; margin: 0; padding: 12px 12px 16px;
  display: flex; flex-direction: column;
  background: rgba(6, 6, 12, .96);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.shdd.is-full .shdd-bar { flex: none; width: 100%; max-width: 760px; }
.shdd.is-full .shdd-stage { flex: 1 1 auto; min-height: 0; align-items: center; }
.shdd.is-full .shdd-note { display: none; }
.shdd.is-full .shdd-creds { flex: none; width: 100%; margin-top: .6rem; }
.shdd-close { background: var(--shdd-accent); border-color: var(--shdd-accent); color: #fff; }
.shdd-close:hover { color: #fff; }
/* An ancestor with a transform, filter or containment would pin the fixed overlay inside it (the site's page-enter
   animation leaves one on <main>); the script marks such ancestors only while fullscreen is open. */
.shdd-unpin { animation: none !important; transform: none !important; filter: none !important; perspective: none !important;
  contain: none !important; will-change: auto !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  content-visibility: visible !important; }
.shdd.is-full [data-shdd-full] { display: none; }
html.shdd-lock, html.shdd-lock body { overflow: hidden; }

@media (max-width: 575.98px) {
  .shdd-seg { padding: 0 .85rem; }
  .shdd-close span { display: none; }
  .shdd-bar { gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .shdd-seg, .shdd-play { transition: none; }
  .shdd-spin { animation-duration: 2.4s; }
}

/* demo login, published per product in sh_products.demo_credentials */
.shdd-creds {
  margin: .9rem auto 0; max-width: 560px; border-radius: 14px;
  background: var(--shdd-bar-bg); border: 1px solid var(--shdd-line); color: var(--shdd-text);
}
.shdd-creds summary {
  cursor: pointer; padding: .7rem 1rem; font-weight: 600; font-size: .9rem; list-style: none;
}
.shdd-creds summary::-webkit-details-marker { display: none; }
.shdd-creds summary::after { content: '+'; float: right; color: var(--shdd-muted); }
.shdd-creds[open] summary::after { content: '\2212'; }
.shdd-creds .sh-html-content { padding: 0 1rem .9rem; font-size: .88rem; }

.shdd-rotate { display: none; margin: .6rem auto 0; text-align: center; color: var(--shdd-muted); font-size: .88rem; }
@media (orientation: portrait) and (max-width: 767.98px) {
  .shdd.is-full[data-device="laptop"] .shdd-rotate { display: block; flex: none; }
}
