/* ==========================================================
   SCHEDULE PAGE — clean, light theme with brand accents
   ========================================================== */

.page-schedule { background: #FAF6EE; min-height: 100vh; }

/* Page header */
.sch-header {
  background: linear-gradient(180deg, #1a1200 0%, #2a1f0a 100%);
  border-bottom: 3px solid #F7C948;
  padding: 36px 24px 28px;
  position: relative;
}
.sch-header::after {
  content: '';
  position: absolute; left:0; right:0; bottom: -3px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #F7C948 30%, #E63030 50%, #F7C948 70%, transparent 100%);
}
.sch-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.sch-eyebrow {
  font-size: 10px; letter-spacing: 5px; text-transform: uppercase;
  color: #F7C948; font-weight: 700; margin-bottom: 8px;
}
.sch-title {
  font-family: 'Black Han Sans', sans-serif;
  font-size: clamp(36px, 6vw, 56px);
  color: #fff; line-height: 1; letter-spacing: 1px; margin-bottom: 8px;
}
.sch-title .gold { color: #F7C948; }
.sch-subtitle {
  font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 22px;
  font-weight: 500;
}
.sch-subtitle strong { color: #F7C948; font-weight: 900; }

/* Layout toggle */
.sch-layout-toggle {
  display: inline-flex; gap: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(247,201,72,0.3);
  border-radius: 8px;
  padding: 4px;
}
.sch-toggle-btn {
  background: transparent; color: rgba(255,255,255,0.65);
  border: none; cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 5px;
  transition: background 0.15s, color 0.15s;
}
.sch-toggle-btn:hover { color: #fff; background: rgba(255,255,255,0.05); }
.sch-toggle-btn.is-active {
  background: #F7C948; color: #1a1200;
}
@media (max-width: 480px) {
  .sch-toggle-btn { padding: 7px 10px; font-size: 10px; letter-spacing: 1px; }
  .sch-header { padding: 28px 16px 22px; }
}

/* Container */
.sch-container {
  max-width: 1280px; margin: 0 auto;
  padding: 28px 24px 60px;
}
@media (max-width: 480px) { .sch-container { padding: 20px 14px 40px; } }

/* Hide layouts that aren't active */
.sch-layout { display: none; }
.sch-layout.is-active { display: block; }

/* ==========================================================
   SHARED — show card (used in tabs + timeline)
   ========================================================== */
.sch-list { display: flex; flex-direction: column; gap: 8px; }
.sch-card {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 10px;
  padding: 14px 18px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.sch-card:hover {
  border-color: rgba(247,201,72,0.5);
  box-shadow: 0 2px 14px rgba(0,0,0,0.05);
}

.sch-card-avatar {
  flex-shrink: 0; width: 52px; height: 52px;
  border-radius: 50%; overflow: hidden;
  background: #1a1200;
  border: 2px solid rgba(247,201,72,0.25);
}
.sch-card-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sch-avatar-default {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 22px; color: #F7C948;
}

.sch-card-text { flex: 1; min-width: 0; }
.sch-card-show {
  font-size: 16px; font-weight: 900;
  color: #1a1200; margin-bottom: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sch-card-host {
  font-size: 11px; color: rgba(0,0,0,0.5);
  font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sch-card-desc {
  font-size: 12px; color: rgba(0,0,0,0.6);
  margin-top: 6px; line-height: 1.5;
}

.sch-card-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  flex-shrink: 0;
}
.sch-card-time {
  font-size: 13px; font-weight: 800;
  color: #1a1200;
  background: #F5F0E8;
  padding: 5px 11px; border-radius: 14px;
  white-space: nowrap;
}
.sch-card-onair {
  display: inline-flex; align-items: center; gap: 5px;
  background: #E63030; color: #fff;
  font-size: 9px; font-weight: 900; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px;
}
.sch-card-onair-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  animation: sch-pulse 1s infinite;
}
@keyframes sch-pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* CRITICAL: Make HTML [hidden] attribute actually hide the badge.
   Without this, the explicit display:inline-flex above wins and the badge
   stays visible even when JS sets the hidden attribute. */
.sch-card-onair[hidden],
.sch-grid-onair[hidden] {
  display: none !important;
}

/* Live state — gold glow */
.sch-card.is-live {
  background: linear-gradient(90deg, rgba(247,201,72,0.15), #fff);
  border-color: #F7C948;
  box-shadow: 0 0 0 1px #F7C948, 0 4px 18px rgba(247,201,72,0.18);
  animation: sch-glow 2s ease-in-out infinite;
}
@keyframes sch-glow {
  0%,100% { box-shadow: 0 0 0 1px #F7C948, 0 4px 14px rgba(247,201,72,0.18); }
  50%     { box-shadow: 0 0 0 1px #F7C948, 0 4px 22px rgba(247,201,72,0.4); }
}
.sch-card.is-live .sch-card-avatar {
  border-color: #F7C948; border-width: 3px;
}

.sch-empty {
  text-align: center; padding: 60px 20px;
  color: rgba(0,0,0,0.4);
  font-weight: 700; letter-spacing: 0.5px;
  background: #fff; border-radius: 10px;
  border: 1px dashed rgba(0,0,0,0.1);
}

/* Mobile: stacked card */
@media (max-width: 600px) {
  .sch-card { flex-wrap: wrap; padding: 12px 14px; gap: 10px; }
  .sch-card-text { flex: 1 1 calc(100% - 66px); }
  .sch-card-meta { flex: 1 1 100%; flex-direction: row; justify-content: space-between; align-items: center; margin-top: 4px; }
  .sch-card-show { font-size: 15px; }
  .sch-card-avatar { width: 44px; height: 44px; }
}

/* ==========================================================
   LAYOUT A — TABS
   ========================================================== */
.sch-tabs {
  display: flex; gap: 4px;
  background: #fff; border-radius: 10px;
  padding: 6px;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.06);
  overflow-x: auto;
}
.sch-tab {
  flex: 1 1 0;
  background: transparent;
  border: none; cursor: pointer;
  font-family: inherit;
  font-size: 13px; font-weight: 800;
  color: rgba(0,0,0,0.55); letter-spacing: 0.5px; text-transform: uppercase;
  padding: 12px 8px;
  border-radius: 7px;
  transition: background 0.15s, color 0.15s;
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  min-width: 60px;
}
.sch-tab:hover { background: rgba(0,0,0,0.03); color: #1a1200; }
.sch-tab.is-active {
  background: #1a1200; color: #fff;
}
.sch-tab.is-active .sch-tab-pill {
  background: #F7C948; color: #1a1200;
}
.sch-tab.is-today:not(.is-active) { color: #E63030; }
.sch-tab-day { line-height: 1; }
.sch-tab-pill {
  background: #F7C948; color: #1a1200;
  font-size: 8px; letter-spacing: 1px;
  padding: 2px 6px; border-radius: 8px;
}

.sch-tab-panel { display: none; }
.sch-tab-panel.is-active { display: block; animation: sch-fade 0.25s ease-out; }
@keyframes sch-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .sch-tab { font-size: 11px; padding: 10px 6px; min-width: 52px; }
  .sch-tabs { padding: 4px; gap: 2px; }
}

/* ==========================================================
   LAYOUT B — WEEK GRID
   ========================================================== */
.sch-grid-wrapper {
  background: #fff; border-radius: 10px; overflow: auto;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.sch-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 760px;
}
.sch-grid th, .sch-grid td {
  border: 1px solid rgba(0,0,0,0.07);
  vertical-align: top;
  text-align: left;
}
.sch-grid-corner {
  width: 70px;
  background: #F5F0E8;
}
.sch-grid-dayhead {
  background: #1a1200; color: #fff;
  padding: 12px 8px;
  font-family: 'Black Han Sans', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
  position: sticky; top: 0;
  z-index: 2;
}
.sch-grid-dayhead.is-today {
  background: linear-gradient(180deg, #F7C948 0%, #e0b22f 100%);
  color: #1a1200;
}
.sch-grid-day-name { display: block; }
.sch-grid-today-pill {
  display: inline-block; margin-top: 3px;
  background: #1a1200; color: #F7C948;
  font-family: 'Raleway', sans-serif;
  font-size: 8px; font-weight: 900; letter-spacing: 1px;
  padding: 2px 7px; border-radius: 8px;
}
.sch-grid-hour {
  width: 70px;
  padding: 8px 10px;
  background: #F5F0E8;
  font-family: 'Black Han Sans', sans-serif;
  color: #1a1200;
  font-size: 14px;
  border-right: 2px solid rgba(0,0,0,0.1) !important;
  text-align: center;
  position: sticky; left: 0;
  z-index: 1;
}
.sch-grid-hour span {
  display: block; font-size: 9px; color: rgba(0,0,0,0.5); letter-spacing: 1px; margin-top: 1px;
}
.sch-grid-cell {
  padding: 4px;
  height: 56px;
  background: #fff;
}
.sch-grid-cell.is-today-col {
  background: rgba(247,201,72,0.05);
}
.sch-grid-show {
  background: #1a1200; color: #fff;
  border-radius: 6px;
  padding: 6px 8px;
  margin-bottom: 4px;
  border-left: 3px solid #F7C948;
  position: relative;
  cursor: default;
}
.sch-grid-show:last-child { margin-bottom: 0; }
.sch-grid-show-name {
  font-size: 11px; font-weight: 900;
  color: #F7C948;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.sch-grid-show-host {
  font-size: 10px; color: rgba(255,255,255,0.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sch-grid-show-time {
  font-size: 13px; color: #350848;
  margin-top: 2px; letter-spacing: 0.3px; font-weight: 600;
}
.sch-grid-show.is-live {
  background: linear-gradient(135deg, #F7C948 0%, #e0b22f 100%);
  border-left-color: #1a1200;
  animation: sch-glow 2s ease-in-out infinite;
}
.sch-grid-show.is-live .sch-grid-show-name { color: #1a1200; }
.sch-grid-show.is-live .sch-grid-show-host { color: rgba(26,18,0,0.75); }
.sch-grid-show.is-live .sch-grid-show-time { color: rgba(26, 18, 0, 0.9); }
.sch-grid-onair {
  position: absolute; top: 4px; right: 4px;
  background: #E63030; color: #fff;
  font-size: 8px; font-weight: 900; letter-spacing: 0.5px;
  padding: 2px 5px; border-radius: 3px;
}

@media (max-width: 760px) {
  .sch-grid-wrapper { font-size: 11px; }
  .sch-grid-dayhead { font-size: 11px; padding: 8px 4px; }
  .sch-grid-hour { font-size: 12px; padding: 6px 5px; }
}

/* ==========================================================
   LAYOUT C — VERTICAL TIMELINE
   ========================================================== */
.sch-tl-day {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  margin-bottom: 18px;
  padding: 22px 24px;
}
.sch-tl-day.is-today {
  border: 2px solid #F7C948;
  box-shadow: 0 0 0 1px #F7C948, 0 4px 18px rgba(247,201,72,0.15);
  scroll-margin-top: 100px;
}
.sch-tl-day-header {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 14px; margin-bottom: 14px;
  border-bottom: 2px solid rgba(247,201,72,0.3);
}
.sch-tl-day-name {
  font-family: 'Black Han Sans', sans-serif;
  font-size: 22px; color: #1a1200;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.sch-tl-today-pill {
  background: #F7C948; color: #1a1200;
  font-size: 10px; font-weight: 900; letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px; border-radius: 12px;
}
.sch-tl-empty { background: transparent; border: none; padding: 24px 16px; text-align: left; }

@media (max-width: 480px) {
  .sch-tl-day { padding: 18px 16px; margin-bottom: 14px; }
  .sch-tl-day-name { font-size: 18px; }
}
