/* ============================================================
   timetable.css — page-specific styles for timetable.html
   ============================================================ */

/* PAGE */
.page { padding: calc(var(--ticker-h) + 80px) 0 96px; max-width: 100%; }
.page-inner { padding: 0 64px; }
.page-label { font-family: var(--font-mono); font-size: 11px; color: var(--purple); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.page-label::before { content: ''; display: block; width: 28px; height: 2px; background: var(--lime); }
.page-title { font-family: var(--font-display); font-size: clamp(40px, 6vw, 80px); font-weight: 700; line-height: .92; letter-spacing: -.02em; margin-bottom: 48px; white-space: nowrap; }
.page-title .hl { color: var(--lime-dark); }

/* SECTION HEADER — title left, legend right */
.tt-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.tt-header-left { flex: 1; min-width: 0; }
.tt-legend-inline {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 32px 0;
  padding: 0;
  flex-shrink: 0;
}

/* DAY TABS */
.tt-day-tabs { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.tt-day-btn { font-family: var(--font-display); font-size: 14px; font-weight: 800; color: var(--text-dim); background: transparent; border: 2px solid var(--border); border-radius: 100px; padding: 9px 24px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.tt-day-btn.active { background: var(--lime); color: var(--text); border-color: var(--lime); }
.tt-day-btn:not(.active):hover { border-color: var(--lime-dark); }

/* TIMELINE WRAPPER */
.tt-view { display: none; }
.tt-view.active { display: block; }

.tt-scroll-outer {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.tt-scroll-outer::-webkit-scrollbar { height: 5px; }
.tt-scroll-outer::-webkit-scrollbar-track { background: var(--surface2); }
.tt-scroll-outer::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 4px; }

.tt-layout { display: flex; position: relative; }

/* Sticky left stage labels column */
.tt-stages-col {
  flex-shrink: 0;
  width: 110px;
  position: sticky;
  left: 0;
  z-index: 20;
  background: var(--bg);
  border-right: 2px solid var(--border);
}
.tt-stage-spacer {
  height: 44px;
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
}
.tt-stage-label {
  height: 96px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.tt-stage-label.s-twierdza { color: var(--pink); border-left: 3px solid var(--pink); }
.tt-stage-label.s-raj       { color: #9A6C10; border-left: 3px solid var(--yellow); }
.tt-stage-label.s-szaniec   { color: var(--purple); border-left: 3px solid var(--purple); }
.tt-stage-label.s-bastion   { color: #2E7A16; border-left: 3px solid var(--green); }

/* Timeline body */
.tt-body { flex: 1; position: relative; }

/* Time header row */
.tt-time-header {
  height: 44px;
  position: relative;
  border-bottom: 2px solid var(--border);
  background: var(--surface2);
}
.tt-time-tick {
  position: absolute;
  top: 0; height: 100%;
  display: flex; align-items: center;
  padding-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--text-dim);
  border-left: 1px solid var(--border);
  white-space: nowrap;
}
.tt-time-tick.major { font-weight: 500; color: var(--text); }

/* Stage rows */
.tt-row {
  height: 96px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.tt-vline {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
  pointer-events: none;
}
.tt-vline.major { background: rgba(26,22,40,.12); }

/* Artist slot */
.tt-slot {
  position: absolute;
  top: 7px; bottom: 7px;
  border-radius: 10px;
  padding: 8px 12px;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  cursor: default;
  transition: filter .15s, box-shadow .15s;
}
.tt-slot:hover { filter: brightness(1.07); }
.tt-slot.s-twierdza { background: rgba(238,80,238,.12); border: 1.5px solid rgba(238,80,238,.35); }
.tt-slot.s-raj       { background: rgba(252,200,95,.18); border: 1.5px solid rgba(252,200,95,.5); }
.tt-slot.s-szaniec   { background: rgba(91,43,204,.11);  border: 1.5px solid rgba(91,43,204,.3);  }
.tt-slot.s-bastion   { background: rgba(127,212,106,.14);border: 1.5px solid rgba(127,212,106,.38); }
.tt-slot.headliner { box-shadow: inset 0 0 0 1px currentColor; }
.tt-slot.headliner.s-twierdza { background: rgba(238,80,238,.2); border-color: rgba(238,80,238,.6); }
.tt-slot.headliner.s-szaniec  { background: rgba(91,43,204,.18); border-color: rgba(91,43,204,.55); }
.tt-slot-name {
  font-family: var(--font-display); font-size: 13px; font-weight: 800;
  color: var(--text); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tt-slot.headliner .tt-slot-name { color: var(--purple); font-size: 14px; }
.tt-slot-time { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); margin-top: 4px; white-space: nowrap; }
.tt-slot.placeholder { background: rgba(255,255,255,.03); border-style: dashed; border-color: rgba(255,255,255,.12); }
.tt-slot.placeholder .tt-slot-name { color: var(--text-muted); font-size: 10px; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; }
.tt-slot.placeholder .tt-slot-time { opacity: .5; }
.tt-slot.placeholder:hover { filter: none; cursor: default; }

/* Now indicator */
.tt-now-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: var(--lime-dark);
  z-index: 15;
  pointer-events: none;
  overflow: visible;
}
.tt-now-pip {
  position: absolute;
  top: 44px; left: -4px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--lime-dark);
}
.tt-now-tooltip {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime-dark);
  color: var(--text);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  z-index: 20;
}
.tt-now-tooltip::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--lime-dark);
}

/* Legend */
.tt-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; padding: 0 64px; }
.tt-legend-item { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: .08em; }
.tt-legend-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

/* footer margin-top — only on timetable standalone page */
.page ~ footer { margin-top: 80px; }

/* Coming soon placeholder */
.tt-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 96px 24px;
  text-align: center;
}
.tt-soon-icon {
  font-size: 48px;
  line-height: 1;
  color: var(--lime-dark);
  font-family: var(--font-display);
}
.tt-soon-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0;
}
.tt-soon-sub {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: .06em;
  margin: 0;
  max-width: 400px;
}

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .page-inner { padding: 0 24px; }
  .tt-legend { padding: 0 24px; }
  .page-title { white-space: normal; word-break: break-word; }
}
