/* ============================================================
   Full Moon Festival Lineup App — 2026
   ============================================================ */

:root {
  --bg:            #000000;
  --surface:       #0d0d0d;
  --card:          #141414;
  --card-hover:    #1d1d1d;
  --text:          #ffffff;
  --text-muted:    rgba(255,255,255,0.52);
  --text-dim:      rgba(255,255,255,0.28);
  --accent:        #2AFF00;
  --accent-light:  rgba(42,255,0,0.12);
  --accent-glow:   rgba(42,255,0,0.45);
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.13);
  --border-green:  rgba(42,255,0,0.22);
  --shadow:        0 1px 4px rgba(0,0,0,0.7);
  --shadow-lg:     0 4px 24px rgba(0,0,0,0.85);
  --radius:        10px;
  --radius-sm:     6px;
  --radius-pill:   999px;

  /* Stage colours — vibrant on dark */
  --c-outdoor:   #2AFF00;
  --c-bunka:     #FF3D6B;
  --c-g2f:       #FF7A00;
  --c-revival:   #AA55FF;
  --c-hotwax:    #FFD100;
  --c-volume:    #20A5FF;
  --c-roomtour:  #FF4488;
  --c-pub:       #6EF9F5;
  --c-default:   #888888;
  --site-nav-h:  46px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle zigzag texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('../Assets/Untitled-1_0001_abstract_background_02-copy-12.png') repeat;
  background-size: 280px auto;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}

.site-header, .site-nav, .day-nav, #app { position: relative; z-index: 1; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  display: block;
  line-height: 0;
  border-bottom: 1px solid var(--border-green);
}

.header-banner {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================================
   SITE NAV (persistent across all pages)
   ============================================================ */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-green);
  height: var(--site-nav-h);
}

.site-nav__link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-muted);
  border-right: 1px solid var(--border);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.site-nav__link:last-child { border-right: none; }

.site-nav__link:hover { color: var(--text); background: rgba(255,255,255,0.04); }

.site-nav__link.active {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* ============================================================
   DAY NAV + VIEW TOGGLE
   ============================================================ */

.day-nav {
  position: sticky;
  top: var(--site-nav-h);
  z-index: 90;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-green);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.day-nav-days {
  display: flex;
  gap: 8px;
}

.day-btn {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s;
}

.day-btn:hover:not(.active) {
  border-color: var(--border-green);
  color: var(--text);
}

.day-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 14px var(--accent-glow);
}

/* ── View Toggle ── */

.view-toggle {
  display: flex;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-weight: 600;
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.01em;
}

.view-btn:hover:not(.active) {
  background: var(--card-hover);
  color: var(--text);
}

.view-btn.active {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

.view-btn svg { flex-shrink: 0; }

/* ============================================================
   MAIN / VIEWS
   ============================================================ */

#app {
  padding: 20px 16px 60px;
}

.view {
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.view.active  { display: block; }
.view.visible { opacity: 1; transform: translateY(0); }

.empty-day {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-dim);
  font-weight: 500;
  font-size: 15px;
}

/* ============================================================
   LINEUP VIEW
   ============================================================ */

.lineup-inner {
  max-width: 860px;
  margin: 0 auto;
}

.lineup-header {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 0 4px;
}

/* ── Stage Section ── */

.stage-section {
  margin-bottom: 6px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stage-section:hover {
  border-color: rgba(255,255,255,0.1);
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  user-select: none;
  gap: 10px;
  transition: background 0.15s;
}

.stage-header:hover { background: var(--card-hover); }

.stage-header-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.stage-pip {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stage-color, var(--c-default));
  flex-shrink: 0;
  box-shadow: 0 0 6px var(--stage-color, var(--c-default));
}

.stage-name {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.stage-count {
  display: none;
}

.stage-chevron {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.stage-section.collapsed .stage-chevron {
  transform: rotate(-90deg);
}

/* ── Acts list ── */

.acts-list {
  overflow: hidden;
  max-height: 4000px;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.stage-section.collapsed .acts-list { max-height: 0; }

.act-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid var(--border);
  transition: background 0.12s;
  cursor: default;
}

.act-row:hover { background: var(--card-hover); }

.act-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--stage-color, var(--c-default));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #000;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.act-info { flex: 1; min-width: 0; }

.act-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.act-time {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.act-type {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stage-color, var(--c-default));
  flex-shrink: 0;
}

.act-row--past {
  opacity: 0.38;
}

/* ── Bell button (list) ── */

.bell-btn {
  background: none;
  border: none;
  padding: 6px;
  margin-left: 2px;
  cursor: pointer;
  color: var(--text-dim);
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.bell-btn:hover {
  color: var(--accent);
  background: var(--accent-light);
}

.bell-btn.set {
  color: var(--accent);
}

.bell-btn.set svg path:first-child {
  fill: var(--accent);
  stroke: var(--accent);
}

/* Bell inside timeline blocks */
.bell-btn--block {
  position: absolute;
  top: 4px;
  right: 4px;
  padding: 3px;
  margin-left: 0;
  color: rgba(0,0,0,0.4);
  border-radius: 4px;
}

.bell-btn--block:hover {
  color: rgba(0,0,0,0.8);
  background: rgba(0,0,0,0.15);
}

.bell-btn--block.set {
  color: rgba(0,0,0,0.85);
}

.bell-btn--block.set svg path:first-child {
  fill: rgba(0,0,0,0.85);
  stroke: rgba(0,0,0,0.85);
}

/* ============================================================
   TIMELINE / BLOCKS VIEW
   ============================================================ */

.timeline-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border-green);
  background: var(--surface);
}

.timeline-inner {
  min-width: 800px;
  position: relative;
}

/* ── Ruler ── */

.timeline-ruler {
  display: flex;
  border-bottom: 1px solid var(--border-strong);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 10;
}

.time-tick {
  flex: 1;
  padding: 9px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}

.time-tick:last-child { border-right: none; }

/* ── Stage groups ── */

.timeline-stages { position: relative; }

.timeline-stage {
  border-bottom: 1px solid var(--border);
}

.timeline-stage:last-child { border-bottom: none; }

.timeline-stage-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.timeline-stage-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 4;
}

.timeline-stage-pip {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--stage-color, var(--c-default));
  flex-shrink: 0;
  box-shadow: 0 0 5px var(--stage-color, var(--c-default));
}

.timeline-stage-name {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Track ── */

.timeline-track {
  position: relative;
  min-height: 72px;
  overflow: visible;
  background: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(var(--tick-pct, 12.5%) - 1px),
    rgba(255,255,255,0.04) calc(var(--tick-pct, 12.5%) - 1px),
    rgba(255,255,255,0.04) var(--tick-pct, 12.5%)
  );
}

/* ── Act block ── */

.tl-block {
  position: absolute;
  top: 8px;
  bottom: 8px;
  border-radius: 7px;
  background: var(--stage-color, var(--c-default));
  display: flex;
  align-items: center;
  padding: 0 10px;
  overflow: hidden;
  cursor: default;
  transition: filter 0.15s, transform 0.15s;
  min-width: 6px;
  box-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.tl-block:hover {
  filter: brightness(1.12);
  transform: scaleY(1.06);
  z-index: 20;
}

.tl-block--past {
  opacity: 0.35;
  filter: saturate(0.4);
}

.tl-block--past:hover {
  opacity: 0.65;
  filter: saturate(0.6) brightness(1.1);
}

.tl-block-inner {
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
  pointer-events: none;
  padding-right: 18px;
}

.tl-block-name {
  font-size: 12px;
  font-weight: 800;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.tl-block-time {
  font-size: 10px;
  font-weight: 600;
  color: rgba(0,0,0,0.6);
  white-space: nowrap;
}

/* ── Tooltip ── */

.tl-block::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: #000;
  color: var(--accent);
  border: 1px solid var(--border-green);
  font-family: inherit;
  font-weight: 700;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
}

.tl-block:hover::after { opacity: 1; }

/* ── Current time line ── */

.now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow), 0 0 3px var(--accent);
  z-index: 8;
  pointer-events: none;
}

.now-label {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px var(--accent-glow);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 480px) {
  .day-nav { padding: 8px 12px; }
  #app { padding: 14px 10px 60px; }
  .day-btn { padding: 6px 14px; font-size: 12px; }
  .view-btn { padding: 5px 9px; font-size: 11px; }
  .act-avatar { width: 34px; height: 34px; font-size: 11px; }
  .act-name { font-size: 14px; }
}

/* On desktop, don't collapse stages */
@media (min-width: 768px) {
  .stage-section .acts-list { max-height: 4000px !important; }
  .stage-chevron { display: none; }
  .stage-header { cursor: default; }
  .stage-header:hover { background: transparent; }
}
