/* ============================================================
   WEDDING-17 | layouts.css
   "NEON NIGHT" — glow cards, diagonal cuts, LED countdown
   ============================================================ */

body {
  background:
    radial-gradient(circle at 15% 10%, rgba(123, 47, 247, 0.25), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 47, 176, 0.2), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(0, 229, 255, 0.15), transparent 50%),
    var(--void);
  background-attachment: fixed;
}

/* ── TOP NAV — neon underline tabs ── */
#topnav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  background: rgba(10, 0, 20, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.topnav-brand {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-100);
  flex-shrink: 0;
  margin-right: var(--space-8);
  text-shadow: 0 0 10px rgba(255, 47, 176, 0.6);
}
.topnav-links {
  display: flex;
  gap: var(--space-6);
}
.topnav-links a {
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-45);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all var(--duration);
}
.topnav-links a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

/* ── HERO — synthwave grid floor ── */
.hero-night {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-block: var(--space-16);
}
.grid-floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 45%;
  background-image:
    linear-gradient(rgba(255, 47, 176, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.35) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(300px) rotateX(60deg);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, black, transparent);
  -webkit-mask-image: linear-gradient(to top, black, transparent);
  pointer-events: none;
}
.hero-guest {
  font-size: var(--text-sm);
  color: var(--text-45);
  position: relative;
  z-index: 1;
}
.hero-guest span {
  color: var(--cyan);
}
.hero-title {
  font-size: clamp(2.6rem, 10vw, var(--text-5xl));
  margin-top: var(--space-6);
  position: relative;
  z-index: 1;
  text-shadow:
    0 0 20px rgba(255, 47, 176, 0.7),
    0 0 40px rgba(123, 47, 247, 0.5);
}
.hero-title .plus {
  color: var(--yellow);
  text-shadow: 0 0 20px rgba(249, 248, 113, 0.8);
}
.hero-tagline {
  font-size: var(--text-lg);
  color: var(--text-70);
  margin-top: var(--space-4);
  position: relative;
  z-index: 1;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-8);
  padding: 10px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--text-sm);
  color: var(--text-70);
  position: relative;
  z-index: 1;
}
.hero-meta .sep {
  color: var(--magenta);
}
.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: var(--space-10);
  position: relative;
  z-index: 1;
}

/* ── Diagonal section divider ── */
.diagonal-cut {
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
  background: linear-gradient(180deg, rgba(123, 47, 247, 0.12), transparent);
}

/* ── COUPLE — glow cards ── */
.couple-glow-grid {
  display: flex;
  gap: var(--space-10);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-10);
}
.glow-card {
  width: 260px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: var(--space-8);
  text-align: center;
  background: rgba(245, 240, 255, 0.03);
  transition: box-shadow var(--duration), transform var(--duration);
}
.glow-card.magenta {
  box-shadow: 0 0 30px rgba(255, 47, 176, 0.18);
}
.glow-card.cyan {
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.18);
}
.glow-card:hover {
  transform: translateY(-4px);
}
.glow-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin-inline: auto;
  margin-bottom: var(--space-5);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--text-100);
}
.glow-card.magenta .glow-ring {
  border: 2px solid var(--magenta);
  box-shadow: 0 0 24px rgba(255, 47, 176, 0.6);
}
.glow-card.cyan .glow-ring {
  border: 2px solid var(--cyan);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.6);
}
.glow-role {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-45);
  margin-bottom: var(--space-2);
}
.glow-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  text-transform: none;
  color: var(--text-100);
}
.glow-parents {
  font-size: var(--text-xs);
  color: var(--text-45);
  margin-top: var(--space-3);
  line-height: 1.7;
}

/* ── STORY — glow timeline ── */
.story-night {
  margin-top: var(--space-10);
}
.story-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: var(--space-6);
  padding-block: var(--space-6);
  border-top: 1px solid var(--line);
  align-items: start;
}
.story-row:last-child {
  border-bottom: 1px solid var(--line);
}
.story-year {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--magenta);
  text-shadow: 0 0 12px rgba(255, 47, 176, 0.5);
}
.story-title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-lg);
  text-transform: none;
  color: var(--text-100);
  margin-bottom: var(--space-2);
}
.story-desc {
  font-size: var(--text-sm);
  color: var(--text-45);
  max-width: 460px;
}

/* ── SCHEDULE — LED countdown + set times ── */
.led-countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-10);
}
.led-unit {
  width: 90px;
  padding-block: var(--space-6);
  text-align: center;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(245, 240, 255, 0.03);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}
.led-num {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(0, 229, 255, 0.7);
  display: block;
}
.led-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-45);
  margin-top: var(--space-2);
  display: block;
}

.set-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-16);
}
.set-card {
  border-radius: 18px;
  padding: var(--space-8);
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, rgba(123, 47, 247, 0.12), rgba(245, 240, 255, 0.02));
}
.set-type {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magenta);
  margin-bottom: var(--space-3);
}
.set-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xl);
  text-transform: none;
  color: var(--text-100);
  margin-bottom: var(--space-5);
}
.set-row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--text-sm);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.set-row span:first-child {
  color: var(--text-45);
}
.set-row span:last-child {
  color: var(--text-100);
  text-align: right;
}
.set-card .btn-neon-outline {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  padding: 10px 20px;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 47, 176, 0.12);
  font-size: var(--text-xs);
  text-transform: uppercase;
  color: var(--magenta);
}
.live-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--magenta);
  box-shadow: 0 0 8px var(--magenta);
  animation: dotPulse 1.6s infinite;
}
@keyframes dotPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.map-night {
  margin-top: var(--space-16);
  height: 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  filter: invert(92%) hue-rotate(200deg) contrast(0.9) brightness(0.9);
}
.map-night iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── GALLERY — highlight reel ── */
.reel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.reel-item {
  cursor: pointer;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  transition: box-shadow var(--duration), transform var(--duration);
}
.reel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 26px rgba(255, 47, 176, 0.4);
}
.reel-item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(10, 0, 20, 0.95);
  align-items: center;
  justify-content: center;
}
#lightbox.open {
  display: flex;
}
.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
#lightbox-img {
  max-width: 88vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(255, 47, 176, 0.3);
}
.lightbox-btn,
.lightbox-close {
  position: absolute;
  color: var(--text-100);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  font-size: 1rem;
  transition: box-shadow var(--duration);
}
.lightbox-btn:hover,
.lightbox-close:hover {
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.6);
}
.lightbox-btn {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev {
  left: -50px;
}
.lightbox-next {
  right: -50px;
}
.lightbox-close {
  top: -48px;
  right: 0;
}

/* ── GIFT — party fund ── */
.fund-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-10);
}
.fund-card {
  border-radius: 18px;
  padding: var(--space-8);
  border: 1px solid var(--line-strong);
  background: rgba(245, 240, 255, 0.03);
}
.fund-label {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: var(--space-3);
}
.fund-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xl);
  text-transform: none;
  color: var(--text-100);
  margin-bottom: var(--space-4);
}
.fund-num {
  font-size: var(--text-base);
  color: var(--text-70);
  margin-bottom: var(--space-5);
}
.fund-copy {
  font-size: var(--text-xs);
  padding: 10px 20px;
}

/* ── RSVP — guest list ── */
.rsvp-night-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  margin-top: var(--space-10);
  align-items: start;
}
.list-count {
  font-size: var(--text-sm);
  color: var(--text-45);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.list-count strong {
  color: var(--magenta);
}
.guestlist {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  max-height: 380px;
  overflow-y: auto;
}
.guest-item {
  padding: var(--space-4);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(245, 240, 255, 0.02);
}
.guest-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--text-100);
}
.guest-attend {
  font-size: var(--text-xs);
  color: var(--cyan);
  margin-block: var(--space-1);
}
.guest-message {
  font-size: var(--text-sm);
  color: var(--text-45);
}
.guest-time {
  font-size: var(--text-xs);
  color: var(--text-25);
  margin-top: var(--space-2);
}

/* ── FOOTER ── */
#site-footer {
  padding-block: var(--space-16);
  text-align: center;
  border-top: 1px solid var(--line);
}
.footer-title {
  font-size: clamp(2rem, 6vw, var(--text-4xl));
  text-shadow: 0 0 24px rgba(255, 47, 176, 0.5);
}
.footer-links {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--cyan);
  border-bottom: 1px solid var(--cyan);
}
.footer-fine {
  margin-top: var(--space-10);
  font-size: var(--text-xs);
  color: var(--text-25);
}

/* ── Floating audio ── */
#audio-toggle {
  position: fixed;
  right: var(--space-6);
  bottom: var(--space-6);
  z-index: 150;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(10, 0, 20, 0.7);
  border: 1px solid var(--magenta);
  box-shadow: 0 0 20px rgba(255, 47, 176, 0.4);
  display: grid;
  place-items: center;
  color: var(--text-100);
  backdrop-filter: blur(10px);
  transition: box-shadow var(--duration);
}
#audio-toggle:hover {
  box-shadow: 0 0 28px rgba(255, 47, 176, 0.7);
}
#audio-toggle svg {
  width: 18px;
  height: 18px;
}

#toast {
  position: fixed;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  z-index: 250;
  padding: 12px 24px;
  background: rgba(10, 0, 20, 0.92);
  border: 1px solid var(--cyan);
  border-radius: 999px;
  color: var(--text-100);
  font-size: var(--text-sm);
  display: none;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.35);
}
#toast.show {
  display: block;
  animation: toastIn 0.35s var(--ease-out) forwards;
}
#toast.hide {
  animation: toastOut 0.25s ease forwards;
}
@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes toastOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 760px) {
  .set-grid,
  .fund-grid,
  .rsvp-night-grid {
    grid-template-columns: 1fr;
  }
  .reel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lightbox-prev {
    left: -6px;
  }
  .lightbox-next {
    right: -6px;
  }
  .led-unit {
    width: 70px;
    padding-block: var(--space-4);
  }
}
