@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

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

:root {
  --bg-deep:    #050510;
  --bg-mid:     #0d0d2b;
  --glass-bg:   rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.12);
  --accent:     #a78bfa;
  --accent-glow: rgba(167,139,250,0.35);
  --text:       #e8e8f0;
  --text-muted: #9090b0;
  --fog1:       rgba(100,80,200,0.08);
  --fog2:       rgba(60,40,160,0.06);
}

html, body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  background: radial-gradient(ellipse at 20% 30%, #1a1040 0%, var(--bg-deep) 60%);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Atmospheric layers ── */
.fog-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(80px);
  animation: fogDrift 18s ease-in-out infinite alternate;
}
.fog1 {
  background: var(--fog1);
  width: 60vw; height: 60vh;
  top: -10vh; left: -10vw;
  animation-duration: 22s;
}
.fog2 {
  background: var(--fog2);
  width: 50vw; height: 50vh;
  bottom: -5vh; right: -5vw;
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}
@keyframes fogDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(4vw, 3vh) scale(1.08); }
  100% { transform: translate(-2vw, 5vh) scale(0.95); }
}

canvas.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

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

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: 1.5rem;
  padding: 2.5rem;
  max-width: 560px;
  width: 100%;
  box-shadow:
    0 8px 32px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 0 60px var(--accent-glow);
  animation: cardFloat 6s ease-in-out infinite alternate;
}
@keyframes cardFloat {
  0%   { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  gap: .4rem;
  align-items: center;
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { opacity: .5; }

/* ── Card header ── */
.date-badge {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(167,139,250,0.12);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 2rem;
  padding: .25rem .85rem;
  margin-bottom: 1rem;
}

.card-title {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: .8rem;
  text-shadow: 0 0 40px var(--accent-glow);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.5rem;
}
.location {
  font-size: .83rem;
  color: var(--text-muted);
}
.labels { display: flex; gap: .4rem; flex-wrap: wrap; }
.label-tag {
  font-size: .72rem;
  font-weight: 500;
  padding: .2rem .65rem;
  border-radius: 2rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-muted);
  text-decoration: none;
  transition: all .2s;
}
.label-tag:hover {
  background: rgba(167,139,250,0.15);
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Hero image ── */
.event-hero {
  margin-bottom: 1.8rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.event-hero img {
  width: 100%;
  display: block;
  filter: saturate(0.8) brightness(0.9);
  transition: filter .4s;
}
.event-hero:hover img { filter: saturate(1) brightness(1); }

/* ── Body content ── */
.event-body {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}
.event-body h1 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .8rem;
}
.event-body p { margin-bottom: 1rem; }
.event-body img {
  max-width: 100%;
  border-radius: .75rem;
  margin-top: .5rem;
  display: none; /* duplicate of hero, hide inline */
}
.event-body a { color: var(--accent); text-decoration: none; }
.event-body a:hover { text-decoration: underline; }

/* ── Footer ── */
.card-footer {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--glass-border);
}
.back-link {
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .glass-card { padding: 1.8rem 1.4rem; }
  .card-title { font-size: 1.8rem; }
}
@media (max-width: 480px) {
  .glass-card { padding: 1.4rem 1rem; border-radius: 1rem; }
  .card-title { font-size: 1.5rem; }
  .meta-row { flex-direction: column; align-items: flex-start; }
}

/* ── 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}
