/*
 * Surface-level polish introduced after the July 2026 frontend review.
 * New cross-surface work belongs here while the legacy monolith is split by route.
 */

/* Standardised 16:9 projector canvas */
.wall-page {
  width: 100vw;
  min-height: 100svh;
  height: 100svh;
  display: grid;
  place-items: center;
  container-type: size;
  isolation: isolate;
  overflow: hidden;
  background: #02040a !important;
}

.wall-page::before,
.wall-page::after {
  display: none !important;
  content: none !important;
}

.wall-canvas {
  position: relative;
  width: min(100vw, calc(100svh * 16 / 9));
  height: min(100svh, calc(100vw * 9 / 16));
  aspect-ratio: 16 / 9;
  flex: 0 0 auto;
  container-type: size;
  overflow: hidden;
  color: var(--theme-text, #fffaf3);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 34px 110px rgba(0, 0, 0, 0.72);
}

.wall-canvas::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 8;
  border: var(--frame-width, 1px) solid var(--frame-line, rgba(255, 255, 255, 0.34));
  background:
    radial-gradient(circle at 14% 8%, rgba(16, 215, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 88% 12%, rgba(255, 63, 125, 0.12), transparent 24rem);
  box-shadow: var(--frame-shadow, none);
  pointer-events: none;
}

.wall-canvas::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 500;
  display: block;
  background: var(--frame-image, none) center / 100% 100% no-repeat;
  pointer-events: none;
}

.wall-canvas :is(
  .wall-live-brand,
  .wall-title h1,
  .wall-title p,
  .wall-meta,
  .wall-qr,
  .wall-qr-social,
  .wall-new-upload-toast,
  .wall-attract,
  .wall-spotlight
) {
  position: absolute;
}

.wall-page:not(.is-fullscreen) .wall-canvas {
  border-radius: clamp(0px, 0.45vw, 10px);
}

.wall-page.is-fullscreen .wall-canvas,
.wall-page:fullscreen .wall-canvas,
.wall-page:-webkit-full-screen .wall-canvas {
  border-radius: 0;
}

/* Shared focus treatment */
.btn:focus-visible,
.sidebar-nav a:focus-visible,
.landing-page a:focus-visible,
.landing-page button:focus-visible,
.studio-step:focus-visible,
.action-menu summary:focus-visible,
.action-menu-popover :is(a, button):focus-visible,
.advanced-controls > summary:focus-visible {
  outline: 2px solid #73eaff;
  outline-offset: 3px;
}

/* Event actions */
.action-menu {
  position: relative;
  z-index: 12;
}

.action-menu > summary {
  list-style: none;
  user-select: none;
}

.action-menu > summary::-webkit-details-marker {
  display: none;
}

.action-menu-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 40;
  min-width: 190px;
  display: grid;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(8, 10, 16, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

.action-menu-popover :is(a, button) {
  min-height: 40px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  color: var(--ig-text);
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.action-menu-popover :is(a, button):hover {
  background: rgba(255, 255, 255, 0.08);
}

.action-menu-popover .danger {
  color: #ff9aa0;
}

.event-card-actions {
  align-items: center;
}

.event-card {
  overflow: visible;
}

.event-mini-art {
  border-radius: 8px 8px 0 0;
}

.event-card-actions > .btn:first-child {
  flex: 1 1 150px;
}

.event-card-menu {
  margin-left: auto;
}

.event-access-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 217, 90, 0.2);
  border-radius: 8px;
  color: rgba(248, 251, 255, 0.66);
  background: rgba(255, 217, 90, 0.055);
  font-size: 0.8rem;
  line-height: 1.4;
}

.event-access-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #ffd95a;
}

.event-access-note span,
.event-access-note strong {
  display: block;
}

.event-access-note strong {
  margin-bottom: 2px;
  color: #fff2c7;
}

/* Simpler event builder */
.studio-layout .setup-title h2 {
  margin: 10px 0 0;
  max-width: 760px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.98;
}

.field-intro {
  margin: -2px 0 12px;
  color: var(--ig-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.advanced-controls {
  overflow: hidden;
  margin-top: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.026);
}

.advanced-controls > summary {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 15px;
  cursor: pointer;
  list-style: none;
}

.advanced-controls > summary::-webkit-details-marker {
  display: none;
}

.advanced-controls > summary span:first-child,
.advanced-controls > summary strong,
.advanced-controls > summary small {
  display: block;
}

.advanced-controls > summary small {
  margin-top: 3px;
  color: var(--ig-muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.advanced-controls-body,
.advanced-controls .motion-settings-body {
  padding: 0 15px 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.motion-settings-panel > summary h2,
.motion-settings-panel > summary .eyebrow {
  display: none;
}

.setup-completion-card {
  margin-top: 22px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid rgba(16, 215, 255, 0.24);
  border-radius: 10px;
  background:
    radial-gradient(circle at 86% 10%, rgba(16, 215, 255, 0.13), transparent 11rem),
    rgba(16, 215, 255, 0.045);
}

.setup-completion-card h3 {
  margin: 8px 0 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.setup-completion-card ul {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.setup-completion-card li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(248, 251, 255, 0.78);
}

.setup-completion-card li svg {
  width: 18px;
  height: 18px;
  color: #73eaff;
}

.preview-wall.is-preview-focused {
  animation: previewReviewPulse 780ms ease both;
}

@keyframes previewReviewPulse {
  0%, 100% { box-shadow: var(--soft-shadow); }
  40% { box-shadow: 0 0 0 3px rgba(16, 215, 255, 0.62), 0 28px 90px rgba(0, 119, 255, 0.28); }
}

/* Landing page: fewer sections, one job per section */
.landing-hero-copy {
  max-width: 760px;
}

.landing-proof-list {
  display: grid;
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.landing-proof-list > span {
  display: grid;
  grid-template-columns: 36px minmax(140px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.landing-proof-list svg {
  width: 24px;
  height: 24px;
  color: #73eaff;
}

.landing-proof-list strong,
.landing-proof-list small {
  display: block;
}

.landing-proof-list small {
  color: var(--landing-muted, rgba(248, 251, 255, 0.68));
  font-size: 0.92rem;
  line-height: 1.45;
}

.landing-flow article p {
  max-width: 580px;
}

/* Honest analytics empty states */
.compact-empty {
  min-height: 190px;
  align-content: center;
}

.compact-empty svg {
  width: 30px;
  height: 30px;
}

/* Guest upload action remains reachable on small screens */
@media (max-width: 760px) {
  .guest-step-submit .btn-wide {
    position: sticky;
    bottom: 10px;
    z-index: 12;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.48);
  }

  .landing-proof-list > span {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .landing-proof-list small {
    grid-column: 2;
  }

  .event-card-actions > .btn:first-child,
  .event-card-actions > .btn:nth-child(2) {
    flex: 1 1 100%;
  }

  .action-menu-popover {
    right: auto;
    left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-wall.is-preview-focused {
    animation: none;
    box-shadow: 0 0 0 3px rgba(16, 215, 255, 0.62), var(--soft-shadow);
  }
}
