/* Variables */
:root {
  --bg: #050505;
  --text: #ffffff;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --pntd-glass-bg: rgba(10, 10, 10, 0.5);
  --pntd-glass-border: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
  position: relative;
}

.pntd-noise {
  position: fixed;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
}

/* Background */
.pntd-prism {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  will-change: transform;
}
.pntd-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.15;
  will-change: transform;
}
/* GPU Accelerated Transforms */
.pntd-orb.red {
  width: 45vmax;
  height: 45vmax;
  background: #ff0055;
  top: 50%;
  left: 50%;
  margin: -22.5vmax 0 0 -22.5vmax;
}
.pntd-orb.cyan {
  width: 40vmax;
  height: 40vmax;
  background: #00ccff;
  top: 50%;
  left: 50%;
  margin: -20vmax 0 0 -20vmax;
}
.pntd-orb.purple {
  width: 35vmax;
  height: 35vmax;
  background: #8800ff;
  top: 50%;
  left: 50%;
  margin: -17.5vmax 0 0 -17.5vmax;
}

/* 3. UI ELEMENTS */
.event-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  pointer-events: none;
}

.header-left { flex: 1; pointer-events: auto; }
.header-right { flex: 1; display: flex; justify-content: flex-end; align-items: center; pointer-events: auto; }

.meta-status {
  font-family: monospace;
  font-size: 0.7rem;
  color: #fff;
  background: var(--pntd-glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--pntd-glass-border);
  padding: 8px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.live-dot {
  width: 6px;
  height: 6px;
  background: #00ff00;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff00;
}

/* Main */
main {
  position: relative;
  z-index: 5;
  flex: 1;
  width: 100vw;
  display: flex;
  align-items: center;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 0 20px;
  cursor: grab;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
main::-webkit-scrollbar {
  display: none;
}
main.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
main.is-dragging .enter-btn,
main.is-dragging .social-link {
  pointer-events: none;
}
.spacer {
  min-width: 50vw;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .spacer { min-width: 10vw; }
}

/* 5. FULL ART CARD */
.portal {
  scroll-snap-align: center;
  flex-shrink: 0;
  width: 85vw;
  max-width: 400px;
  height: 65vh;
  max-height: 600px;
  margin: 0 20px;
  perspective: 1500px;
  position: relative;
  cursor: default;
  transition: transform 0.4s var(--ease);
}

.portal:hover {
  transform: translateY(-5px);
}

.pntd-glass {
  width: 100%;
  height: 100%;
  background-color: var(--pntd-glass-bg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--pntd-glass-border);
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px; 
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8), inset 0 0 0 1px rgba(255,255,255,0.05);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

/* Subtle global scrim for atmosphere */
.pntd-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.8) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* 6. INFO SLABS */
.info-slab {
  background: rgba(5, 5, 5, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--pntd-glass-border);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  z-index: 5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.portal:hover .info-slab {
  transform: scale(1.02);
}

h2 {
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 0 0 12px 0;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.details {
  font-family: monospace;
  font-size: 0.75rem;
  color: #ddd;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: 0.5px;
}
.details i {
  width: 25px;
  text-align: center;
  margin-right: 5px;
  color: var(--tint);
  filter: drop-shadow(0 0 5px var(--tint));
}

.top-content {
  margin-top: 0;
}
.bottom-content {
  margin-bottom: 25px;
}

/* 7. SWIPE REACTOR */
.swipe-reactor {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 150px;
  height: 80px;
  background: radial-gradient(
    circle at 50% 0%,
    var(--tint) 0%,
    transparent 70%
  );
  border-radius: 50% 50% 0 0;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  transition: opacity 0.3s;
  filter: blur(20px);
}

/* Animation for Active/Upcoming */
.portal[data-status="active"] .swipe-reactor,
.portal[data-status="upcoming"] .swipe-reactor {
  opacity: 0.5;
  bottom: -40px;
  animation: reactorPulse 4s infinite ease-in-out;
}

@keyframes reactorPulse {
  0%, 100% { opacity: 0.3; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.6; transform: translateX(-50%) scale(1.2); }
}

/* 8. BUTTONS */
.satellite-row {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  justify-content: center;
}
.social-link {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.social-link:hover {
  color: var(--tint);
  transform: scale(1.2);
  text-shadow: 0 0 10px var(--tint);
}

.enter-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-family: monospace;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 0.8rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}
.enter-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--tint);
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}
.enter-btn:active {
  transform: scale(0.98);
}

/* 9. STATUS VARIANTS */

/* ACTIVE */
.portal[data-status="active"] .glass {
  border-color: rgba(255, 255, 255, 0.3);
}

/* UPCOMING (Hype) */
.portal[data-status="upcoming"] .glass {
  border: 1px solid var(--tint);
  animation: glassPulse 4s infinite ease-in-out;
}
.portal[data-status="upcoming"] .enter-btn {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--tint);
  color: var(--tint);
}
.portal[data-status="upcoming"] .enter-btn:hover {
  background: var(--tint);
  color: #000;
  box-shadow: 0 0 20px var(--tint);
}

/* PLANNED (Locked) */
.portal[data-status="planned"] {
  opacity: 0.8;
}
.portal[data-status="planned"] .glass {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  filter: grayscale(0.8);
}
.portal[data-status="planned"] .enter-btn {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
  border-style: dashed;
}

/* ARCHIVED */
.portal[data-status="archived"] {
  opacity: 0.6;
  filter: grayscale(0.9);
}
.portal[data-status="archived"]:hover {
  opacity: 0.9;
  filter: grayscale(0.4);
}

@keyframes glassPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5), inset 0 0 0px var(--tint);
    border-color: rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), inset 0 0 10px var(--tint);
    border-color: var(--tint);
  }
}

/* 10. UTILS */
.loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.5);
  letter-spacing: 4px;
  font-family: monospace;
  font-size: 0.8rem;
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

/* SWIPE HINT */
.swipe-hint {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  opacity: 0.6;
  animation: fadeOutHint 5s forwards;
  animation-delay: 4s;
}

.swipe-icon {
  display: flex;
  gap: 10px;
  font-size: 1.2rem;
  color: #fff;
  animation: swipeAnim 2s infinite;
}

.swipe-hint span {
  font-family: monospace;
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: #aaa;
}

@keyframes swipeAnim {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(10px); }
}
@keyframes fadeOutHint {
  to { opacity: 0; visibility: hidden; }
}
