/* ============================================================
   Virtuals Podium — Custom interactive styles
   (augments the exported Tailwind CSS)
   ============================================================ */

/* ── Mobile nav overlay ─────────────────────────────────── */
#mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  justify-content: flex-end;
  transition: opacity 0.25s ease;
  opacity: 0;
}
#mobile-nav.hidden { display: none; }

#mobile-nav.mobile-nav-open {
  opacity: 1;
}

#mobile-nav-panel {
  width: min(320px, 85vw);
  height: 100%;
  background: hsl(var(--background));
  border-left: 1px solid hsl(var(--border));
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}
#mobile-nav.mobile-nav-open #mobile-nav-panel {
  transform: translateX(0);
}

#mobile-nav-panel a {
  display: block;
  padding: 0.625rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  border-bottom: 1px solid hsl(var(--border));
  text-decoration: none;
  transition: color 0.15s;
}
#mobile-nav-panel a:last-of-type { border-bottom: none; }
#mobile-nav-panel a:hover { color: #2563eb; }

#mobile-nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
}
#mobile-nav-close svg { display: block; }

.mobile-nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ── Dark-mode theme toggle: show/hide sun & moon ───────── */
/* In light mode: show sun, hide moon */
.dark-only { display: none; }
.light-only { display: block; }

.dark .dark-only { display: block; }
.dark .light-only { display: none; }

/* Inline-svg variants (used in buttons) */
.theme-sun  { display: block; }
.theme-moon { display: none;  }
.dark .theme-sun  { display: none;  }
.dark .theme-moon { display: block; }
