/* ═══════════════════════════════════════════════════
   DIVS D DEMOS — divs-d-demos.css
   Selector prefix: dm-dvd-
   Scope: .demo-dvd-fullbleed | .demo-dvd-zstack
═══════════════════════════════════════════════════ */

/* ── SHARED ── */
.dm-dvd-meta-label {
  font-family: 'Montserrat', sans-serif;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
}

/* ══════════════════════════════════════
   1. FULL BLEED SECTION
══════════════════════════════════════ */
.demo-dvd-fullbleed {
  background: #080d18;
  min-height: 100%;
  /* IMPORTANT: keep modal body as the layout reference */
  position: relative;
  overflow-x: hidden;
}
.dm-dvd-fb-wrap {
  width: 100%;
  padding: 0 0 1rem;
  font-family: 'Inter', sans-serif;
}

.dm-dvd-fb-header {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1.5rem;
}
.dm-dvd-fb-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  margin: 0 0 .75rem;
}
.dm-dvd-fb-header p {
  font-size: .92rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin: 0 0 .9rem;
}
.dm-dvd-fb-header p code,
.dm-dvd-fb-note code {
  font-family: 'Menlo', monospace;
  font-size: .82em;
  background: rgba(37,99,235,.14);
  color: #93c5fd;
  padding: 1px 6px;
  border-radius: 4px;
}
.dm-dvd-fb-note {
  font-size: .82rem !important;
  color: rgba(255,255,255,.5) !important;
  background: rgba(37,99,235,.06);
  border-left: 2px solid var(--blue);
  padding: .7rem 1rem;
  border-radius: 0 6px 6px 0;
}
.dm-dvd-fb-note strong { color: #93c5fd; }

/* Container section: max-width 720px, centered */
.dm-dvd-fb-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  position: relative;
}
.dm-dvd-fb-container h3.dm-dvd-fb-art-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 .75rem;
  letter-spacing: .02em;
}
.dm-dvd-fb-lede {
  font-size: 1.05rem !important;
  color: rgba(255,255,255,.85) !important;
  line-height: 1.65 !important;
  margin: 0 0 1rem !important;
}
.dm-dvd-fb-container p {
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  color: rgba(255,255,255,.7);
  line-height: 1.75;
  margin: 0 0 1rem;
}
.dm-dvd-fb-container p:last-child { margin-bottom: 0; }
.dm-dvd-fb-outro {
  font-size: .82rem !important;
  color: rgba(255,255,255,.45) !important;
  font-style: italic;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.25rem !important;
}

/* Full bleed: full modal-body width */
.dm-dvd-fb-bleed {
  width: 100%;
  margin: 1rem 0;
  position: relative;
}

/* Marker outlines & tags */
.dm-dvd-fb-marked {
  outline: 1px dashed rgba(37,99,235,.35);
  outline-offset: -1px;
}
.dm-dvd-fb-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 5;
  font-family: 'Menlo', monospace;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  text-transform: uppercase;
}
.dm-dvd-fb-tag-container {
  background: rgba(37,99,235,.85);
  color: #fff;
}
.dm-dvd-fb-tag-bleed {
  background: rgba(16,185,129,.85);
  color: #052e1e;
}

/* Hero image bleed */
.dm-dvd-fb-bleed-hero {
  margin: 1.5rem 0 .5rem;
}
.dm-dvd-fb-hero-img {
  width: 100%;
  height: clamp(220px, 38vh, 400px);
  background-size: cover;
  background-position: center;
}
.dm-dvd-fb-caption {
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  color: rgba(255,255,255,.45);
  letter-spacing: .04em;
  padding: .6rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.05);
}

/* Quote bleed */
.dm-dvd-fb-quote {
  background: linear-gradient(180deg, #0a1424 0%, #050810 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
  border-top: 1px solid rgba(37,99,235,.15);
  border-bottom: 1px solid rgba(37,99,235,.15);
}
.dm-dvd-fb-quote-text {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.35;
  letter-spacing: .01em;
  max-width: 800px;
  margin: 0 auto .8rem;
  text-transform: none;
  font-style: italic;
}
.dm-dvd-fb-quote-cite {
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--green);
  font-style: normal;
}

/* Code note (Pattern from grids-b for consistency) */
.demo-dvd-fullbleed .dm-la-code-note,
.demo-dvd-zstack .dm-la-code-note {
  text-align: center;
  padding: 2rem 1rem 3rem;
  font-family: 'Montserrat', sans-serif;
}
.demo-dvd-fullbleed .dm-la-code-note code,
.demo-dvd-zstack .dm-la-code-note code {
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: .72rem;
  background: rgba(37,99,235,.14);
  color: #93c5fd;
  padding: 6px 16px;
  border-radius: 6px;
  display: inline-block;
  max-width: 95%;
  word-break: break-word;
}

@media (max-width: 480px) {
  .dm-dvd-fb-tag { font-size: .5rem; padding: 2px 6px; }
  .dm-dvd-fb-quote { padding: 2rem 1rem; }
}

/* ══════════════════════════════════════
   2. Z-STACK / LAYERED
══════════════════════════════════════ */
.demo-dvd-zstack {
  background: #080d18;
  min-height: 100%;
  font-family: 'Inter', sans-serif;
}
.dm-dvd-zs-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}
.dm-dvd-zs-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.dm-dvd-zs-header h2 {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  margin: 0 0 .5rem;
}
.dm-dvd-zs-header p {
  font-size: .92rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  max-width: 720px;
  margin: 0;
}
.dm-dvd-zs-header p code,
.dm-dvd-zs-desc code {
  font-family: 'Menlo', monospace;
  font-size: .82em;
  background: rgba(37,99,235,.14);
  color: #93c5fd;
  padding: 1px 6px;
  border-radius: 4px;
}

.dm-dvd-zs-section {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dm-dvd-zs-section:last-of-type { border-bottom: none; }

.dm-dvd-zs-h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  margin: 0 0 .4rem;
}
.dm-dvd-zs-desc {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 600px;
}

/* ── 1. 3D Perspective Stage ── */
.dm-dvd-zs-stage {
  background: linear-gradient(180deg, #0c1422 0%, #060a14 100%);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  min-height: 320px;
  overflow: hidden;
}
.dm-dvd-zs-perspective {
  position: relative;
  width: 220px;
  height: 220px;
  transform-style: preserve-3d;
  transform: rotateY(-22deg) rotateX(15deg);
}
.dm-dvd-zs-layer {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
  font-family: 'Menlo', monospace;
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: -10px 12px 30px rgba(0,0,0,.45);
  transition: transform .3s;
}
.dm-dvd-zs-layer-label {
  font-size: .7rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .04em;
}
.dm-dvd-zs-layer-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 2px;
}
.dm-dvd-zs-layer-1 {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  z-index: 1;
  transform: translateZ(0);
}
.dm-dvd-zs-layer-2 {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  z-index: 2;
  transform: translateZ(28px);
}
.dm-dvd-zs-layer-3 {
  background: linear-gradient(135deg, #047857, #10b981);
  z-index: 3;
  transform: translateZ(56px);
}
.dm-dvd-zs-layer-4 {
  background: linear-gradient(135deg, #b45309, #f59e0b);
  z-index: 4;
  transform: translateZ(84px);
}

/* ── 2. Polaroid Stack ── */
.dm-dvd-zs-polaroids {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 280px;
  padding: 1.5rem 0;
  gap: 0;
}
.dm-dvd-zs-poly {
  width: 180px;
  background: #fafafa;
  padding: 10px 10px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,.45), 0 2px 4px rgba(0,0,0,.3);
  margin: 0 -28px;
  transition: transform .3s cubic-bezier(.22,.68,0,1.2), z-index 0s;
  cursor: pointer;
  font-family: 'Caveat', 'Comic Sans MS', cursive;
  position: relative;
}
.dm-dvd-zs-poly figcaption {
  margin-top: 8px;
  text-align: center;
  font-size: .85rem;
  color: #333;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: .04em;
  font-style: italic;
}
.dm-dvd-zs-poly-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}
.dm-dvd-zs-poly-1 { transform: rotate(-6deg); z-index: 1; }
.dm-dvd-zs-poly-2 { transform: rotate(0deg);  z-index: 2; }
.dm-dvd-zs-poly-3 { transform: rotate(6deg);  z-index: 3; }

.dm-dvd-zs-poly.dm-dvd-zs-poly-front {
  z-index: 10 !important;
  transform: translateY(-14px) rotate(0deg) scale(1.04);
  box-shadow: 0 18px 42px rgba(0,0,0,.55), 0 4px 8px rgba(0,0,0,.4);
}

/* ── 3. Avatar with Status Badge ── */
.dm-dvd-zs-avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  max-width: 420px;
}
.dm-dvd-zs-avatar {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
}
.dm-dvd-zs-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,.15);
  position: relative;
  z-index: 1;
}
.dm-dvd-zs-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid #080d18;
  z-index: 2;
}
.dm-dvd-zs-badge-online {
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16,185,129,.7);
  animation: dmDvdPulse 2s infinite;
}
@keyframes dmDvdPulse {
  0%   { box-shadow: 0 0 0 0 rgba(16,185,129,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.dm-dvd-zs-avatar-meta {
  flex: 1;
  min-width: 0;
}
.dm-dvd-zs-avatar-name {
  font-family: 'Montserrat', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  color: #fff;
}
.dm-dvd-zs-avatar-status {
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  color: rgba(255,255,255,.5);
  margin-top: 3px;
  letter-spacing: .02em;
}

/* Responsive */
@media (max-width: 560px) {
  .dm-dvd-zs-poly { width: 130px; margin: 0 -22px; padding: 8px 8px 22px; }
  .dm-dvd-zs-poly figcaption { font-size: .7rem; }
  .dm-dvd-zs-perspective { width: 170px; height: 170px; }
  .dm-dvd-zs-layer-2 { transform: translateZ(22px); }
  .dm-dvd-zs-layer-3 { transform: translateZ(44px); }
  .dm-dvd-zs-layer-4 { transform: translateZ(66px); }
}
