/* =====================================================================
   CGC Back Office - The Lobby                  assets/css/lobby.css
   Used by front-page.php. Each setting is written once.
   =====================================================================

   INDEX
   1. Settings ........... colors used on this page
   2. Page ............... no margins, no scrolling
   3. Lobby picture ...... fills the screen, keeps its shape
   4. Lobby Spots ........ glowing dots and their name tags
   5. Button row ......... Full Screen + Sign out (the club button style)
   6. Screen-reader text
   7. Reduced motion
   ===================================================================== */


/* ---------------------------------------------------------------------
   1. Settings
   --------------------------------------------------------------------- */
:root {
  --cgc-vh: 100vh;               /* window height (less the admin bar, below) */
  --cgc-ratio: 1.7778;           /* picture shape; lobby.js sets the real one */
  --cgc-tag-bg: #f6efe2;         /* Lobby Spot name tag */
  --cgc-tag-text: #2b1d14;
}
body.admin-bar { --cgc-vh: calc(100vh - 32px); }
@media (max-width: 782px) {
  body.admin-bar { --cgc-vh: calc(100vh - 46px); }
}


/* ---------------------------------------------------------------------
   2. Page
   --------------------------------------------------------------------- */
html, body           { margin: 0; padding: 0; }
body.cgc-lobby-home  { background: #1d140e; overflow: hidden; }


/* ---------------------------------------------------------------------
   3. Lobby picture
   The stage keeps the picture's shape so spots and planks stay put.
   It sits on the bottom edge, so any trimming comes off the ceiling,
   never the floor, and never inside the middle 16:9 area.
   A blurred copy of the picture fills any space left over.
   --------------------------------------------------------------------- */
.cgc-lobby {
  position: relative;
  width: 100vw;
  height: var(--cgc-vh);
  overflow: hidden;
  background: #1d140e;
}
.cgc-lobby:fullscreen { --cgc-vh: 100vh; height: 100vh; }

.cgc-lobby::before {                         /* blurred fill */
  content: "";
  position: absolute;
  inset: -40px;
  background: var(--cgc-bg, none) center / cover no-repeat;
  filter: blur(28px) brightness(.5);
}
.cgc-lobby__stage {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(100vw, min(calc(var(--cgc-vh) * var(--cgc-ratio)), calc(100vw * var(--cgc-ratio) / 1.7778)));
  aspect-ratio: var(--cgc-ratio);
  transform: translateX(-50%);
  box-shadow: 0 0 40px rgba(0, 0, 0, .55);
}
.cgc-lobby__bg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}


/* ---------------------------------------------------------------------
   4. Lobby Spots
   Placed in percent of the picture (wp-admin > Lobby Spots).
   --------------------------------------------------------------------- */
.cgc-lobby__spots { position: absolute; inset: 0; }

.spot {
  position: absolute;
  width: 30px;
  height: 30px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  text-decoration: none;
  outline: none;
}
.spot__glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 143, 98, .95) 0%, rgba(111, 143, 98, .55) 45%, rgba(111, 143, 98, 0) 70%);
  animation: cgc-pulse 2.8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
@keyframes cgc-pulse {
  0%, 100% { transform: scale(.7);  opacity: .55; }
  50%      { transform: scale(1.15); opacity: 1; }
}
.spot__name {
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  transform: translateX(-50%);                /* lobby.js shifts it to stay on screen */
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--cgc-tag-bg);
  color: var(--cgc-tag-text);
  font: 600 15px/1.2 Georgia, serif;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.spot:hover .spot__name,
.spot:focus-visible .spot__name  { opacity: 1; }
.spot:hover .spot__glow,
.spot:focus-visible .spot__glow  { animation-play-state: paused; transform: scale(1.2); opacity: 1; }


/* ---------------------------------------------------------------------
   5. Button row
   One centered row at the bottom of the lobby (stays in full screen).
   .cgc-lobby__btn is the club button style; every lobby button uses it.
   --------------------------------------------------------------------- */
.cgc-lobby__buttons {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 24px;
  transform: translateX(-50%);
}
.cgc-lobby__buttons form { margin: 0; }

.cgc-lobby__btn {
  padding: 3px 20px;
  border: 1.5px solid #266141;
  border-radius: 999px;
  background: #e4ebdd;
  color: #266141;
  font: 500 15px/1.2 "EB Garamond", Garamond, Georgia, serif;
  white-space: nowrap;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .35);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.cgc-lobby__btn:hover,
.cgc-lobby__btn:focus-visible {
  background: #266141;
  color: #f1f1e4;
  outline: none;
}


/* ---------------------------------------------------------------------
   6. Screen-reader text (hidden on screen, read aloud)
   --------------------------------------------------------------------- */
.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}


/* ---------------------------------------------------------------------
   7. Reduced motion (for people who turn animations off)
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .spot__glow { animation: none; opacity: .9; }
}
