/* ============================================
   LOBBY VIEW
   Entry hall — artist name + room doorways
   ============================================ */

.lobby {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: var(--space-lg) var(--space-md);
  opacity: 0;
  animation: lobbyFadeIn var(--duration-dramatic) var(--ease-out-expo) forwards;
}

@keyframes lobbyFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Artist Header --- */
.lobby__header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.lobby__name {
  font-size: var(--font-size-hero);
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text-primary);
  opacity: 0;
  animation: nameReveal 1.5s var(--ease-out-expo) 0.3s forwards;
}

@keyframes nameReveal {
  from {
    opacity: 0;
    letter-spacing: 0.8em;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    letter-spacing: var(--letter-spacing-wide);
    filter: blur(0);
  }
}

.lobby__tagline {
  font-family: var(--font-body);
  font-size: var(--font-size-body);
  font-weight: 300;
  letter-spacing: var(--letter-spacing-normal);
  color: var(--color-text-muted);
  margin-top: var(--space-sm);
  opacity: 0;
  animation: fadeUp 1s var(--ease-out-expo) 1s forwards;
}

/* --- Room Doorways --- */
.lobby__rooms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-md);
  width: 100%;
  max-width: 1100px;
}

.doorway {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--color-frame);
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px);

  /* Stagger via inline --delay set in JS */
  animation: doorwayReveal 0.8s var(--ease-out-expo) var(--delay, 1.2s) forwards;
  transition:
    border-color var(--duration-normal) var(--ease-gentle),
    transform var(--duration-normal) var(--ease-out-expo);
}

.doorway:hover {
  border-color: var(--color-text-muted);
  transform: translateY(-4px);
}

@keyframes doorwayReveal {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Doorway background image / color */
.doorway__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.3) contrast(1.1);
  transition: filter var(--duration-slow) var(--ease-gentle);
}

.doorway:hover .doorway__bg {
  filter: brightness(0.5) contrast(1.05);
}

/* Glow pulse behind doorway */
.doorway__glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    var(--room-glow, var(--color-glow-warm)) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-gentle);
  pointer-events: none;
  z-index: 0;
}

.doorway:hover .doorway__glow {
  opacity: 1;
  animation: glowPulse 4s var(--ease-gentle) infinite;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Doorway text content */
.doorway__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  z-index: 2;
  background: linear-gradient(to top, rgba(5, 5, 6, 0.9) 0%, transparent 100%);
}

.doorway__title {
  font-family: var(--font-display);
  font-size: var(--font-size-section-title);
  font-weight: 400;
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-text-primary);
  margin-bottom: 4px;
}

.doorway__subtitle {
  font-size: var(--font-size-small);
  color: var(--color-text-muted);
  letter-spacing: var(--letter-spacing-normal);
  font-weight: 300;
}

.doorway__count {
  display: inline-block;
  margin-top: var(--space-xs);
  font-size: var(--font-size-small);
  color: var(--color-text-accent);
  opacity: 0.7;
}

/* Doorway featured artwork preview strip */
.doorway__preview {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  height: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.doorway__preview-img {
  max-width: 80%;
  max-height: 100%;
  object-fit: contain;
  filter: brightness(0.6);
  transition: filter var(--duration-slow) var(--ease-gentle);
}

.doorway:hover .doorway__preview-img {
  filter: brightness(0.9);
}

/* --- Generic animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
