/* ── Aerial Template ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-deep:   #050510;
  --bg-mid:    #0a0a28;
  --accent:    #4fc3f7;
  --accent2:   #0288d1;
  --glass-bg:  rgba(10,15,40,0.55);
  --glass-bd:  rgba(79,195,247,0.2);
  --text:      #dce8f5;
  --text-dim:  #6a88aa;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Background ── */
.aerial-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 40%, #0a1a4a 0%, #050510 60%),
              radial-gradient(ellipse at 80% 70%, #001a3a 0%, transparent 60%);
  overflow: hidden;
  pointer-events: none;
}

.fog-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0;
  animation: fogPulse 8s ease-in-out infinite;
}
.fog-1 {
  width: 700px; height: 400px;
  background: rgba(79,195,247,0.07);
  top: 10%; left: -15%;
  animation-delay: 0s;
  opacity: 0.6;
}
.fog-2 {
  width: 500px; height: 300px;
  background: rgba(2,136,209,0.09);
  bottom: 5%; right: -10%;
  animation-delay: -4s;
  opacity: 0.5;
}
.fog-3 {
  width: 400px; height: 250px;
  background: rgba(79,195,247,0.05);
  top: 50%; left: 30%;
  animation-delay: -2s;
  opacity: 0.4;
}

@keyframes fogPulse {
  0%, 100% { transform: scale(1) translateY(0); opacity: 0.4; }
  50%       { transform: scale(1.1) translateY(-20px); opacity: 0.7; }
}

/* Floating orbs for parallax */
.float-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  will-change: transform;
  animation: orbDrift 20s ease-in-out infinite;
}
.orb-a {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(79,195,247,0.18), transparent 65%);
  top: 15%; left: 10%;
  animation-duration: 18s;
}
.orb-b {
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(2,136,209,0.2), transparent 65%);
  top: 60%; right: 15%;
  animation-duration: 24s;
  animation-delay: -8s;
}
.orb-c {
  width: 150px; height: 150px;
  background: radial-gradient(circle, rgba(79,195,247,0.12), transparent 65%);
  bottom: 20%; left: 20%;
  animation-duration: 15s;
  animation-delay: -4s;
}
.orb-d {
  width: 100px; height: 100px;
  background: radial-gradient(circle, rgba(144,202,249,0.15), transparent 65%);
  top: 35%; right: 30%;
  animation-duration: 22s;
  animation-delay: -12s;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  25%       { transform: translate(30px, -40px); }
  50%       { transform: translate(-20px, 20px); }
  75%       { transform: translate(15px, 35px); }
}

.aerial-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
}

@media (prefers-reduced-motion: reduce) {
  .fog-layer, .float-orb { animation: none; opacity: 0.4; }
}

/* ── Wrapper ── */
#wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

/* ── Glass card ── */
.glass-card {
  width: 100%;
  max-width: 34rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-bd);
  border-radius: 1.5rem;
  backdrop-filter: blur(32px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(32px) saturate(180%) brightness(1.1);
  box-shadow:
    0 0 0 1px rgba(79,195,247,0.06),
    0 20px 60px rgba(0,0,0,0.7),
    0 0 120px rgba(79,195,247,0.07),
    inset 0 1px 0 rgba(255,255,255,0.07);
  overflow: hidden;
}

/* Top bar */
.card-topbar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid rgba(79,195,247,0.1);
}
.topbar-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(79,195,247,0.25);
  border: 1px solid rgba(79,195,247,0.35);
}
.topbar-dot:first-child { background: rgba(255,100,100,0.3); border-color: rgba(255,100,100,0.4); }
.topbar-dot:nth-child(2) { background: rgba(255,200,50,0.3); border-color: rgba(255,200,50,0.4); }
.topbar-title {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-left: auto;
}

/* ── Card content ── */
.card-content {
  padding: 2rem 2rem 1.5rem;
}

/* ── Header ── */
.aerial-header { margin-bottom: 1.5rem; }
.aerial-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(79,195,247,0.1);
  border: 1px solid rgba(79,195,247,0.2);
  border-radius: 2rem;
  padding: 0.2rem 0.75rem;
  margin-bottom: 0.75rem;
  animation: badgePulse 3s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79,195,247,0); }
  50%       { box-shadow: 0 0 0 6px rgba(79,195,247,0.08); }
}
.aerial-title {
  font-size: 2.1rem;
  font-weight: 300;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
}
.aerial-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: var(--text-dim);
}
.aerial-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.aerial-meta-item svg { width: 13px; height: 13px; opacity: 0.7; }
.aerial-divider { opacity: 0.3; }

/* ── Decorative rule ── */
.aerial-rule {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.aerial-rule span:first-child,
.aerial-rule span:last-child {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(79,195,247,0.3), transparent);
}
.rule-icon {
  font-size: 0.7rem;
  color: var(--accent);
  opacity: 0.6;
  flex: none;
}

/* ── Event body ── */
.event-body p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1rem;
}
.event-body p:last-child { margin-bottom: 0; }
.event-body center { display: block; }
.event-body a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(79,195,247,0.25); }
.event-body a:hover { border-bottom-color: var(--accent); }
.event-body strong { color: #fff; }
.event-body em { color: rgba(255,255,255,0.6); }

/* ── Labels ── */
.aerial-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.label-tag {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(79,195,247,0.08);
  border: 1px solid rgba(79,195,247,0.22);
  border-radius: 2rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.label-tag:hover {
  background: rgba(79,195,247,0.18);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ── Footer ── */
.aerial-footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(79,195,247,0.08);
}
.aerial-back {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.aerial-back:hover { color: var(--accent); }

/* ── Lightbox ── */
#lightbox{display:none;position:fixed;inset:0;background:rgba(0,0,0,.9);
  z-index:9999;align-items:center;justify-content:center;
  flex-direction:column;gap:.5rem}
#lightbox img{max-width:90vw;max-height:80vh;object-fit:contain}
.lb-close{position:fixed;top:1rem;right:1.5rem;font-size:2.5rem;
  color:#fff;cursor:pointer;line-height:1;opacity:.8}
.lb-close:hover{opacity:1}
.lb-nav{position:fixed;top:50%;transform:translateY(-50%);font-size:3rem;
  color:#fff;cursor:pointer;padding:.5rem;user-select:none;opacity:.7}
.lb-nav:hover{opacity:1}
.lb-prev{left:1rem}.lb-next{right:1rem}
.lb-caption{color:#ccc;font-size:.9rem;text-align:center;max-width:80vw}

/* ── Collection links ── */
nav.event-collections{display:flex;flex-wrap:wrap;gap:.5rem 1rem;padding:1rem 1.5rem;border-top:1px solid rgba(128,128,128,.2);font-family:var(--font-head,sans-serif);font-size:.82rem}
nav.event-collections .ec-link{color:var(--accent);text-decoration:none;opacity:.8;transition:opacity .2s}
nav.event-collections .ec-link:hover{opacity:1}
