/* ============================================================
   MINISTRIES CONVENTION DIGITAL SIGNAGE — OFFLINE CSS v2
   Fully self-contained: Gotham fonts local, no CDN/Webflow.
   Fixed: footer positioning, detail-mode, layout correctness.
   ============================================================ */

/* ── Local Fonts ─────────────────────────────────────────── */
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Thin.otf')         format('opentype'); font-weight:100; font-style:normal;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-ThinItalic.otf')   format('opentype'); font-weight:100; font-style:italic;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-XLight.otf')       format('opentype'); font-weight:200; font-style:normal;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-XLightItalic.otf') format('opentype'); font-weight:200; font-style:italic;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Light.otf')        format('opentype'); font-weight:300; font-style:normal;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-LightItalic.otf')  format('opentype'); font-weight:300; font-style:italic;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Book.otf')         format('opentype'); font-weight:400; font-style:normal;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-BookItalic.otf')   format('opentype'); font-weight:400; font-style:italic;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Medium.otf')       format('opentype'); font-weight:500; font-style:normal;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-MediumItalic.otf') format('opentype'); font-weight:500; font-style:italic;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Bold.otf')         format('opentype'); font-weight:700; font-style:normal;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-BoldItalic.otf')   format('opentype'); font-weight:700; font-style:italic;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Black.otf')        format('opentype'); font-weight:800; font-style:normal;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-BlackItalic.otf')  format('opentype'); font-weight:800; font-style:italic;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-Ultra.otf')        format('opentype'); font-weight:900; font-style:normal;  }
@font-face { font-family:'Gotham'; src:url('../fonts/Gotham-UltraItalic.otf')  format('opentype'); font-weight:900; font-style:italic;  }

/* ── Variables ───────────────────────────────────────────── */
:root {
  --blue-dark:    #0f1d3a;
  --blue-mid:     #0e306b;
  --blue-light:   #1b75b7;
  --blue-accent:  #009ed4;
  --yellow:       #ffbb12;
  --white:        #ffffff;
  --grey-text:    #cccecf;
  --grey-sub:     #a1bfe4;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Root: fixed 1920×1080 canvas ───────────────────────── */
html, body {
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--blue-dark);
  font-family: 'Gotham', sans-serif;
}
#screen {
  position: absolute;   /* allows left/top centering by the viewport scaler */
  width: 1920px;
  height: 1080px;
  overflow: hidden;
  background: var(--blue-dark);
}

/* Hard guard: normal-deco MUST be invisible during workshop mode —
   prevents any animation-timing race from showing it over workshop content */
#screen.ws-mode #normal-deco {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ── Background watermark number ─────────────────────────── */
#bg-number {
  position: absolute;
  top: 50%; left: 44%;
  transform: translate(-50%, -50%);
  font-size: 820px;
  font-weight: 900;
  color: rgba(255,255,255,0.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  /* transition controlled by engine.js */
}

/* ══════════════════════════════════════════════════════════
   RIGHT SIDE — NORMAL MODE  (.container-right.normal)
   Container: 1120×1080, absolute, top:0, right:-15px
   ══════════════════════════════════════════════════════════ */
#normal-deco {
  position: absolute;
  top: 0; right: -15px;
  width: 1120px;
  height: 1080px;
  pointer-events: none;
  z-index: 5;
}

/* part-4 = Asset-3.svg — wide arc, anchored bottom-right */
#deco-part4 {
  width: 795px;
  position: absolute;
  bottom: 0; right: 23px;
}

/* part-1 = yellow-outer.svg — full-height yellow ring, left-anchored */
#deco-part1 {
  height: 1080px;
  position: absolute;
  left: 139px;
}

/* part-2 = Asset-1.svg — upper decorative element, left-anchored */
#deco-part2 {
  height: 530px;
  position: absolute;
  left: 88px;
}

/* outer-circle — dark blue circle mask behind the white ring */
#outer-circle {
  z-index: 0;
  width: 935px; height: 935px;
  background: var(--blue-dark);
  border-radius: 50%;
  position: absolute;
  top: 74px; right: 8px;
}

/* circle-perimeter — white ring border */
#circle-perimeter {
  z-index: 1;
  width: 875px; height: 875px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 103px; right: 40px;
}

/* circle-picture — logo/photo inside the ring */
#circle-picture {
  width: 825px; height: 825px;
  border-radius: 50%;
  margin-top: 25px;
  margin-left: 25px;
  background: center / contain no-repeat url('../images/amc2026-full-logo.png');
  transition: background-image 0.4s;
}

/* part-3 = Asset-2.svg — overlay frame, anchored bottom-left, z:0 */
#deco-part3 {
  z-index: 0;
  height: 755px;
  position: absolute;
  bottom: 0; left: 71px;
}



/* ══════════════════════════════════════════════════════════
   RIGHT SIDE — WORKSHOP MODE  (.container-right.workshops)
   ══════════════════════════════════════════════════════════ */
#workshop-deco {
  position: absolute;
  top: 0; right: -15px;
  width: 1120px;
  height: 1080px;
  pointer-events: none;
  opacity: 0;   /* shown/hidden via JS inline styles */
  z-index: 5;
}

/* part-1-filler — narrow accent strip pinned to far right */
#ws-filler {
  width: 100px; height: 1080px;
  background: #1b75b7;  /* matches Asset-4.svg fill colour */
  position: absolute;
  top: 0; right: 0;
}

/* part-1.workshops = Asset-4.svg — position: static (flows in from top-left) */
#ws-part1 {
  height: 1080px;
  display: block;
  position: static;
}

/* part-2.workshops = Asset-5.svg — left: -48px */
#ws-part2 {
  height: 530px;
  position: absolute;
  left: -48px;
}

/* part-3.workshops = Asset-2.svg — bottom: 0, left: -65px */
#ws-part3 {
  height: 755px;
  position: absolute;
  bottom: 0; left: -65px;
  z-index: 0;
}

/* ── Left panel ──────────────────────────────────────────── */
#panel-left {
  position: absolute;
  top: 0; left: 0;
  width: 820px;
  height: 830px;   /* stops above the footer */
  z-index: 10;
  overflow: hidden;
}

/* Header */
#header {
  display: flex;
  align-items: center;
  margin-top: 55px;
  padding-left: 70px;
  gap: 0;
}
#logo-adv  { height: 108px; width: auto; }
/* #logo-sub removed — text now embedded in oc-logo.png */
#logo-divider {
  width: 2px; height: 80px;
  background: rgba(255,255,255,0.2);
  margin: 0 26px;
  align-self: center;
}
#logo-125  { height: 102px; width: auto; max-width: 666px; object-fit: contain; }

/* Title block */
#title-block {
  margin-top: 95px;
}
#title-top-bar {
  height: 40px;
  background: var(--blue-mid);
  display: flex;
  align-items: center;
  padding-left: 70px;
  gap: 0;
}
#label-happening {
  color: var(--grey-text);
  letter-spacing: 4px;
  font-size: 21px;
  font-weight: 600;
}
#label-time {
  color: var(--white);
  font-size: 21px;
  font-weight: 300;
  margin-left: 14px;
}
#heading {
  margin-top: 20px;
  padding-left: 70px;
}
#heading-top {
  color: var(--white);
  font-size: 70px;
  font-weight: 300;
  line-height: 72px;
}
#heading-bottom {
  display: flex;
  align-items: baseline;
  gap: 18px;
  line-height: 90px;
}
#heading-bottom-text {
  color: var(--yellow);
  font-size: 108px;
  font-weight: 800;
  line-height: 90px;
}
#heading-number {
  color: rgba(255,255,255,0.85);
  font-size: 108px;
  font-weight: 800;
  line-height: 90px;
}
#title-bottom-bar {
  height: 40px;
  background: transparent;
  display: flex;
  align-items: center;
  padding-left: 70px;
  margin-top: 6px;
}
#title-alt-text {
  color: var(--white);
  font-size: 21px;
  font-weight: 300;
}

/* Info section (coming up) */
#info-section {
  transition: opacity 0.4s;
}
#info-inner {
  display: flex;
  align-items: flex-start;
  margin-top: 52px;
  padding-left: 70px;
  gap: 22px;
}
#info-label {
  color: var(--yellow);
  font-size: 22px;
  font-weight: 400;
  line-height: 26px;
  white-space: nowrap;
  padding-top: 4px;
}
#info-list {
  border-left: 2px solid var(--yellow);
  padding-left: 16px;
}
.info-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.info-dot { width: 12px; margin-top: 7px; flex-shrink: 0; }
.info-item-title {
  color: var(--white);
  font-size: 24px;
  font-weight: 200;
  line-height: 26px;
}
.info-item-time {
  color: var(--blue-accent);
  font-size: 17px;
  font-weight: 500;
}

/* ── RIGHT PANEL: workshop listings (= .right-content) ──── */
/* Matches original: right: -15px (inside container-right at right:-15px),
   width: 850px, padding-right: 30px, z-index: 1 above workshop deco SVGs */
#panel-right {
  position: absolute;
  top: 0; bottom: 0; right: -15px;
  width: 850px;
  padding-right: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  overflow: hidden;
  box-sizing: border-box;
}
#panel-right.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Detail TVs (upstairs/downstairs) use same panel layout as grandyork/central */

/* Workshop sections */
.ws-section { margin-bottom: 12px; }

.ws-section-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 10px;
  margin-top: 10px;
  background: rgba(0, 158, 212, 0.55);
  border-left: 4px solid var(--yellow);
  padding: 10px 18px 10px 18px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(27,117,183,0.35);
}
.ws-section-heading { flex: 1; }
.ws-section-label {
  color: var(--grey-text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 3px;
  line-height: 16px;
}
.ws-section-title {
  color: var(--yellow);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 38px;
}
.ws-arrow { width: 70px; height: auto; flex-shrink: 0; }
.ws-direction {
  width: 270px;
  color: rgba(255,255,255,0.75);
  font-size: 21px;
  font-weight: 300;
  line-height: 26px;
  font-style: italic;
}

.ws-divider {
  border: none;
  border-top: 3px solid var(--yellow);
  margin: 8px 0 0 0;
  opacity: 0.5;
}

.ws-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 18px;
}
.ws-grid.two-col { grid-template-columns: repeat(2, 1fr); }

.ws-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.ws-item-dot   { width: 9px; margin-top: 6px; flex-shrink: 0; }
.ws-item-body  { flex: 1; min-width: 0; }
.ws-item-name  {
  color: var(--white);
  font-size: 21px;
  font-weight: 400;
  line-height: 23px;
  letter-spacing: -0.3px;
}
.ws-item-presenter {
  color: var(--grey-sub);
  font-size: 14px;
  font-weight: 300;
  line-height: 18px;
  margin-top: 1px;
}
.ws-item-room-wrap {
  display: inline-block;
  background: var(--blue-mid);
  margin-top: 3px;
  margin-left: -4px;
  padding: 1px 8px 1px 4px;
}
.ws-item-room {
  color: var(--yellow);
  font-size: 13px;
  font-weight: 500;
}
.ws-item-ministry-wrap {
  display: inline-block;
  background: var(--yellow);
  margin-top: 2px;
  margin-left: -4px;
  padding: 1px 8px 1px 4px;
}
.ws-item-ministry {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
}
.ws-translation {
  display: inline-block;
  background: var(--blue-accent);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 2px;
  margin-left: 4px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ── Footer: always at the bottom of the screen ─────────── */
/* NOTE: footer is a direct child of #screen, NOT #panel-left */
#footer {
  position: absolute;
  bottom: 0; left: 0;
  width: 1920px;
  height: 250px;
  /* white gradient fade from transparent at top to solid white at bottom */
  background: linear-gradient(
    to bottom,
    rgba(15,29,58,0)    0%,
    rgba(15,29,58,0.05) 6%,
    rgba(255,255,255,0.15) 12%,
    rgba(255,255,255,0.55) 22%,
    rgba(255,255,255,1) 38%
  );
  display: flex;
  align-items: center;
  padding: 70px 0 30px 70px;
  gap: 0;
  z-index: 2;
}
#footer-qr {
  display: flex;
  align-items: center;
  gap: 0;
}
#footer-qr-label {
  color: #333;
  text-align: right;
  font-size: 19px;
  font-weight: 200;
  line-height: 24px;
  margin-right: 22px;
}
#footer-qr-img { width: 120px; }

#footer-clock {
  display: flex;
  align-items: center;
  margin-left: 100px;
  gap: 0;
}
#clock-label {
  color: #333;
  text-align: right;
  font-size: 19px;
  font-weight: 200;
  line-height: 24px;
  margin-right: 22px;
}
#clock-row {
  display: flex;
  align-items: baseline;
}
/* Blinking colon */
#clock-colon {
  font-size: 64px;
  font-weight: 800;
  color: #9a9898;
  line-height: 60px;
  animation: blink-colon 1s step-start infinite;
}
@keyframes blink-colon {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Split digits/mins now separate */
#clock-digits,
#clock-mins {
  font-size: 64px;
  font-weight: 800;
  color: #9a9898;
  line-height: 60px;
}
#clock-ampm {
  font-size: 26px;
  font-weight: 700;
  color: #9a9898;
  margin-left: 6px;
  margin-bottom: 4px;
}
#clock-date {
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-accent);
  background: var(--blue-mid);
  text-align: center;
  padding: 3px 10px;
  margin-top: 3px;
}

/* ── Transition helpers ───────────────────────────────────── */
.fade-target {
  transition: opacity 0.5s ease;
}

/* Arrow variants */
.ws-arrow-ne  { transform: rotate(-45deg); }
.ws-arrow-2nd { margin-left: -28px; opacity: 0.6; }

/* Additional arrow direction helpers */
.ws-arrow-downleft { transform: rotate(45deg); }

/* ══════════════════════════════════════════════════════════
   CENTRAL TV — scale down workshop panel to prevent overflow
   (4 sections × up to 17 items needs tighter sizing)
   ══════════════════════════════════════════════════════════ */
[data-tv="central"] #panel-right {
  padding-right: 20px;
  justify-content: flex-start;
  padding-top: 30px;
}
[data-tv="central"] .ws-section         { margin-bottom: 6px; }
[data-tv="central"] .ws-section-header  { margin-top: 4px; margin-bottom: 4px; gap: 10px; }
[data-tv="central"] .ws-section-label   { font-size: 12px; letter-spacing: 2px; }
[data-tv="central"] .ws-section-title   { font-size: 27px; line-height: 27px; }
[data-tv="central"] .ws-direction       { font-size: 15px; line-height: 19px; width: 205px; }
[data-tv="central"] .ws-arrow           { width: 50px; }
[data-tv="central"] .ws-grid            { gap: 4px 12px; }
[data-tv="central"] .ws-item-name       { font-size: 17px; line-height: 19px; }
[data-tv="central"] .ws-item-presenter  { font-size: 12px; line-height: 14px; }
[data-tv="central"] .ws-item-room-wrap  { margin-top: 1px; }
[data-tv="central"] .ws-item-room       { font-size: 11px; }
[data-tv="central"] .ws-item-ministry   { font-size: 11px; }
[data-tv="central"] .ws-item-dot        { width: 7px; margin-top: 5px; }
[data-tv="central"] .ws-divider         { margin: 4px 0 0; }

/* ══════════════════════════════════════════════════════════
   GRANDYORK + CENTRAL TV — 3 sections, up to 17 items
   Modest bump over base, central already has its own overrides
   ══════════════════════════════════════════════════════════ */
[data-tv="grandyork"] #panel-right {
  justify-content: flex-start;
  padding-top: 40px;
}
[data-tv="grandyork"] .ws-section-title  { font-size: 34px; line-height: 34px; }
[data-tv="grandyork"] .ws-direction      { font-size: 19px; line-height: 23px; }
[data-tv="grandyork"] .ws-item-name      { font-size: 19px; line-height: 21px; }
[data-tv="grandyork"] .ws-item-presenter { font-size: 13px; line-height: 16px; }

/* ══════════════════════════════════════════════════════════
   DOWNSTAIRS TV — 3 sections, up to 10 items — moderate scale-up
   ══════════════════════════════════════════════════════════ */
[data-tv="downstairs"] #panel-right {
  justify-content: flex-start;
  padding-top: 50px;
}
[data-tv="downstairs"] .ws-section         { margin-bottom: 18px; }
[data-tv="downstairs"] .ws-section-header  { gap: 22px; margin-bottom: 14px; margin-top: 14px; }
[data-tv="downstairs"] .ws-section-label   { font-size: 16px; letter-spacing: 3px; }
[data-tv="downstairs"] .ws-section-title   { font-size: 42px; line-height: 42px; }
[data-tv="downstairs"] .ws-direction       { font-size: 21px; line-height: 26px; width: 280px; }
[data-tv="downstairs"] .ws-arrow           { width: 80px; }
[data-tv="downstairs"] .ws-grid            { gap: 12px 20px; }
[data-tv="downstairs"] .ws-item-name       { font-size: 22px; line-height: 25px; }
[data-tv="downstairs"] .ws-item-presenter  { font-size: 14px; line-height: 17px; }
[data-tv="downstairs"] .ws-item-room       { font-size: 13px; }
[data-tv="downstairs"] .ws-item-ministry   { font-size: 13px; }
[data-tv="downstairs"] .ws-item-dot        { width: 11px; margin-top: 7px; }

/* ══════════════════════════════════════════════════════════
   UPSTAIRS TV — 2 sections, only 5 items — large scale-up
   ══════════════════════════════════════════════════════════ */
[data-tv="upstairs"] #panel-right {
  justify-content: flex-start;
  padding-top: 60px;
}
[data-tv="upstairs"] .ws-section         { margin-bottom: 32px; }
[data-tv="upstairs"] .ws-section-header  { gap: 26px; margin-bottom: 18px; margin-top: 18px; }
[data-tv="upstairs"] .ws-section-label   { font-size: 20px; letter-spacing: 5px; }
[data-tv="upstairs"] .ws-section-title   { font-size: 56px; line-height: 56px; }
[data-tv="upstairs"] .ws-direction       { font-size: 28px; line-height: 34px; width: 320px; }
[data-tv="upstairs"] .ws-arrow           { width: 95px; }
[data-tv="upstairs"] .ws-grid            { gap: 16px 24px; }
[data-tv="upstairs"] .ws-item-name       { font-size: 30px; line-height: 34px; }
[data-tv="upstairs"] .ws-item-presenter  { font-size: 19px; line-height: 23px; }
[data-tv="upstairs"] .ws-item-room-wrap  { margin-top: 4px; }
[data-tv="upstairs"] .ws-item-room       { font-size: 17px; }
[data-tv="upstairs"] .ws-item-ministry   { font-size: 17px; }
[data-tv="upstairs"] .ws-item-dot        { width: 13px; margin-top: 9px; }
[data-tv="upstairs"] .ws-divider         { margin: 12px 0 0; }

/* ══════════════════════════════════════════════════════════
   FLOOR MAP — shown in workshop mode replacing coming-up
   ══════════════════════════════════════════════════════════ */
#map-container {
  padding: 0 0 0 70px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 30px;
}

.map-floor {
  position: relative;
  width: 740px;
  flex-shrink: 0;
}

.map-svg-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.55;
  filter: brightness(1.2);
}

/* Pulsing room dot overlays — all in sync (no delay) */
.map-room-dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--dot-color, white);
  box-shadow: 0 0 14px 4px color-mix(in srgb, var(--dot-color, white) 60%, transparent);
  transform: translate(-50%, -50%);
  animation: room-pulse 4s ease-in-out infinite;
  pointer-events: none;
}

.map-stair-dot {
  width: 26px;
  height: 26px;
  opacity: 0.75;
}

@keyframes room-pulse {
  0%,100% { transform: translate(-50%,-50%) scale(1);   opacity: 0.9; }
  50%      { transform: translate(-50%,-50%) scale(1.55); opacity: 0.45; }
}

/* Room label below each dot */
/* Callout label — offset from dot, no animation */
.map-callout-label {
  position: absolute;
  pointer-events: none;
  transform: translate(0, -50%);   /* vertically center on offset point */
}
.map-callout-label span {
  font-weight: 700;
  color: white;
  font-size: inherit;
  text-shadow: 0 0 5px rgba(0,0,0,1), 0 1px 4px rgba(0,0,0,0.9);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

/* Leader line SVG connecting dot to label */
.map-leader {
  position: absolute;
  pointer-events: none;
  overflow: visible;
}

/* Section header breathe — synced at 3s to look calm */
.ws-section-header {
  animation: header-breathe 6s ease-in-out infinite;
}
@keyframes header-breathe {
  0%,100% { filter: brightness(1);   }
  50%      { filter: brightness(1.35); }
}

/* You Are Here marker */
.map-yah {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  animation: yah-bounce 3.6s ease-in-out infinite;
}
.map-yah-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #ffffff;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 3px;
  padding: 2px 6px;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(0,0,0,0.9);
  margin-bottom: 2px;
}
.map-yah-arrow {
  font-size: 20px;
  color: #e53935;
  line-height: 1;
  filter: drop-shadow(0 0 5px rgba(229,57,53,0.8));
}
@keyframes yah-bounce {
  0%,100% { transform: translate(-50%, -100%); }
  50%      { transform: translate(-50%, calc(-100% - 6px)); }
}
