/* bleedblend demo overlay — the demo-only layer that sits ON TOP of liquidframe.css.
   liquidframe.css provides the phone frame (.phone-frame / .chrome-* / status bar /
   Safari chrome / titanium). Everything here is bleedblend's own demo surface that
   liquidframe deliberately does not ship: the fake page content inside the screen,
   the top/bottom banner modes (none/buggy/bleedblend), the inner-blur demo box, and
   the control-panel titanium swatch. Load AFTER liquidframe.css. */

/* ── Phone viewport backdrop ──────────────────────────────────────────────
   liquidframe paints a flat var(--screen-bg); the bleedblend demo uses a teal
   gradient backdrop driven by --demo-grad-top/--demo-grad-bot (set from JS). */
.phone-viewport {
  background-image: linear-gradient(
    180deg,
    var(--demo-grad-top, #aceace) 10%,
    var(--demo-grad-bot, #0a8c8e) 70%
  );
  background-color: var(--demo-grad-top, #aceace);
}

/* ── Control-panel titanium swatch (active state) ─────────────────────────
   Base swatch styling is inline in index.html; this is just the selected ring. */
.titanium-color-btn.active {
  border-color: #ffffff !important;
  transform: scale(1.15);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* ── Fake page content inside .phone-screen ───────────────────────────────
   Mirrors cver.net's shape (hero / intro / belt / footer) so the simulator
   behaves like the production page. Gradient backdrop lives on .phone-viewport. */
.demo-page {
  position: relative;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: #fff;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
}

.demo-hero {
  position: relative;
  z-index: 1;
  min-height: 100cqh;
  padding: 80px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.demo-logo {
  width: min(180px, 60%);
  height: auto;
  display: block;
  margin: 0 auto 1.4rem;
  user-select: none;
}
.demo-title {
  font-family: 'Comfortaa', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Intro paragraph (transparent — gradient continues behind it). */
.demo-intro {
  position: relative;
  z-index: 1;
  padding: 60px 28px 80px;
  text-align: center;
}
.demo-intro p {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 400;
}

.demo-belt {
  position: relative;
  z-index: 1;
  background-color: var(--demo-belt, #084a4c);
  padding: 56px 22px 64px;
  color: #fff;
}
.demo-belt-tag {
  font-size: 0.62rem;
  letter-spacing: 0.25em;
  color: var(--demo-grad-top, #aceace);
  margin: 0 0 1.6rem;
  font-weight: 600;
}
.demo-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin-bottom: 12px;
}
.demo-card:last-child { margin-bottom: 0; }
.demo-card h4 {
  font-family: 'Comfortaa', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: #fff;
}
.demo-card-tag {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.3;
}
.demo-card p {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.78);
  margin: 0 0 12px;
  line-height: 1.45;
  font-weight: 300;
}
.demo-card-cta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--demo-grad-top, #aceace);
  text-align: right;
}

.demo-footer {
  position: relative;
  z-index: 1;
  background-color: var(--demo-footer, #0a8c8e);
  padding: 56px 22px calc(56px + var(--sim-safe-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}
.demo-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}
.demo-footer-links.secondary {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
}
.demo-footer-sep {
  opacity: 0.3;
  font-weight: normal;
}
.demo-footer-logo {
  display: inline-block;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}
.demo-footer-logo:hover {
  opacity: 1;
}
.demo-footer-logo img {
  display: block;
  width: 44px;
  height: 44px;
}

/* ── Simulated banners (bleedblend's tinting targets) ─────────────────────
   The sticky header/footer the demo paints. Modes: none / buggy / bleedblend. */
.sim-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  color: white;
  font-size: 0.85rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sim-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  color: white;
  font-size: 0.85rem;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* HEADER MODES */
/* Mode: Buggy — backdrop-filter blur on the outer wrapper hits iOS Safari's
   safe-area clip bug. clip-path simulates the chopped-off blur region: the
   status-bar slice goes back to the page bg, leaving a sharp line. */
.header-buggy {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: var(--sim-safe-top);
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  background: rgba(239, 68, 68, 0.55); /* translucent crimson — the actual banner color */
  color: #fff;
  clip-path: inset(var(--sim-safe-top) 0 0 0);
}

/* Mode: Bleedblend Fix — opaque outer wrapper bleeds into safe-area cleanly.
   The blur lives on an inner element instead (.bleedblend-inner-blur-demo). */
.header-bleedblend {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: calc(8px + var(--sim-safe-top));
  background: #b91c1c; /* solid crimson */
  color: #fff;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.header-none { display: none; }

/* FOOTER MODES — symmetric, but emerald CTA color */
.footer-buggy {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-bottom: var(--sim-safe-bottom);
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
  background: rgba(5, 150, 105, 0.55); /* translucent emerald */
  color: #fff;
  clip-path: inset(0 0 var(--sim-safe-bottom) 0);
}

.footer-bleedblend {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding-bottom: calc(8px + var(--sim-safe-bottom));
  background: #047857; /* solid emerald */
  color: #fff;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.footer-none { display: none; }

/* Inner blur element for the bleedblend "Fix" demo. */
.bleedblend-inner-blur-demo {
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin: 8px;
  padding: 8px;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header/Footer internal padding. */
.nav-content {
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

/* Generic dummy screen content (alternate to .demo-* page). */
.dummy-content {
  padding: calc(80px + var(--sim-safe-top)) 1.5rem calc(80px + var(--sim-safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dummy-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 1.25rem;
}

.dummy-card h4 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dummy-card h4 svg {
  color: var(--dd-accent);
}

.dummy-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.5;
}
