/* ═══════════════════════════════════════════════════
   DIVS C DEMOS — divs-c-demos.css
   Selector prefix: dm-dvc-
   Scope: .demo-dvc-grid3 | .demo-dvc-overlay
═══════════════════════════════════════════════════ */

/* ── SHARED ── */
.demo-dvc-grid3,
.demo-dvc-overlay {
  background: #080d18;
  min-height: 100%;
}
.dm-dvc-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 3rem;
}
.dm-dvc-head {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.dm-dvc-meta {
  font-family: 'Montserrat', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green, #10b981);
  margin-bottom: .55rem;
}
.dm-dvc-head 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 .55rem;
}
.dm-dvc-lead {
  font-family: 'Inter', sans-serif;
  font-size: .92rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  max-width: 680px;
  margin: 0;
}
.dm-dvc-lead code {
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: .82em;
  background: rgba(37,99,235,.14);
  color: #93c5fd;
  padding: 1px 6px;
  border-radius: 4px;
}
.dm-dvc-section {
  padding: 1rem 0 .5rem;
}

/* ══════════════════════════════════════════════
   1. GRID 3-SPALTEN  (.demo-dvc-grid3)
══════════════════════════════════════════════ */
.dm-dvc-grid-stage {
  position: relative;
  padding: 2rem 0 1rem;
}
.dm-dvc-axis-top {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.dm-dvc-axis-pill {
  font-family: 'Menlo', 'Courier New', monospace;
  font-size: .68rem;
  background: rgba(37,99,235,.18);
  color: #93c5fd;
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid rgba(37,99,235,.3);
  white-space: nowrap;
}

/* Grid hint (dashed columns + gap labels) */
.dm-dvc-grid-hint {
  position: absolute;
  inset: 56px 0 0 0;
  display: grid;
  grid-template-columns: 1fr 2rem 1fr 2rem 1fr;
  pointer-events: none;
  z-index: 0;
}
.dm-dvc-hint-col {
  border-left: 1px dashed rgba(96,165,250,.35);
  border-right: 1px dashed rgba(96,165,250,.35);
  background: rgba(96,165,250,.025);
  position: relative;
}
.dm-dvc-hint-gap {
  background: rgba(251,191,36,.05);
  border-left: 1px dashed rgba(251,191,36,.25);
  border-right: 1px dashed rgba(251,191,36,.25);
  position: relative;
}
.dm-dvc-hint-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Menlo', monospace;
  font-size: .56rem;
  letter-spacing: .04em;
  color: #93c5fd;
  background: #080d18;
  padding: 1px 6px;
  border-radius: 3px;
  white-space: nowrap;
}
.dm-dvc-hint-label-gap { color: #fbbf24; }

/* Actual feature grid */
.dm-dvc-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.dm-dvc-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: 1.6rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  transition: transform .25s ease, border-color .2s, background .2s;
}
.dm-dvc-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96,165,250,.4);
  background: rgba(255,255,255,.06);
}
.dm-dvc-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dm-dvc-icon svg {
  width: 26px;
  height: 26px;
}
.dm-dvc-card-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  margin: 0;
}
.dm-dvc-card-body {
  font-family: 'Inter', sans-serif;
  font-size: .82rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.dm-dvc-card-link {
  font-family: 'Montserrat', sans-serif;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  margin-top: .3rem;
  align-self: flex-start;
  transition: transform .15s ease;
}
.dm-dvc-card-link:hover { transform: translateX(3px); }

/* Responsive */
@media (max-width: 780px) {
  .dm-dvc-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .dm-dvc-grid-hint { display: none; }
}
@media (max-width: 520px) {
  .dm-dvc-grid { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════
   2. OVERLAY DIV  (.demo-dvc-overlay)
══════════════════════════════════════════════ */
.dm-dvc-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: .5rem;
}
.dm-dvc-img-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #0f1422;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dm-dvc-img-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,.4);
}
.dm-dvc-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .5s ease;
}
.dm-dvc-img-card:hover .dm-dvc-img-bg {
  transform: scale(1.05);
}

/* Overlay div — the star of the demo */
.dm-dvc-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,0) 80%);
  opacity: 0;
  transition: opacity .3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.1rem 1.1rem;
  z-index: 2;
}
.dm-dvc-img-card:hover .dm-dvc-overlay {
  opacity: 1;
}
/* Pinned card: overlay always visible */
.dm-dvc-img-card-pinned .dm-dvc-overlay {
  opacity: 1;
}

/* Outline highlight box on the first card */
.dm-dvc-outline-box {
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(96,165,250,.85);
  border-radius: 12px;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 0 1px rgba(8,13,24,.6) inset;
}
.dm-dvc-outline-tag {
  position: absolute;
  top: -11px;
  left: 14px;
  font-family: 'Menlo', monospace;
  font-size: .58rem;
  background: #080d18;
  color: #93c5fd;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(96,165,250,.5);
  white-space: nowrap;
  letter-spacing: .02em;
}

/* Overlay content */
.dm-dvc-pill {
  align-self: flex-start;
  font-family: 'Montserrat', sans-serif;
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(37,99,235,.85);
  padding: 3px 10px;
  border-radius: 9999px;
  backdrop-filter: blur(4px);
}
.dm-dvc-overlay-bottom {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.dm-dvc-img-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}
.dm-dvc-img-desc {
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dm-dvc-img-btn {
  align-self: flex-start;
  margin-top: .4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background .18s, border-color .18s;
}
.dm-dvc-img-btn:hover {
  background: rgba(255,255,255,.24);
  border-color: rgba(255,255,255,.5);
}

/* Hint note */
.dm-dvc-hint-note {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 1.4rem 0 0;
  font-family: 'Inter', sans-serif;
  font-size: .76rem;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}
.dm-dvc-hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #93c5fd;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(147,197,253,.18);
}

/* Responsive */
@media (max-width: 780px) {
  .dm-dvc-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .dm-dvc-gallery { grid-template-columns: 1fr; }
  .dm-dvc-img-card { aspect-ratio: 16 / 10; }
}
