/* ================================================================
   TRE – Seasonal Schedule (Calendar Design)
   File: assets/css/tre-schedule.css
   ================================================================ */

.tre-cal {
    font-family: Arial, Helvetica, sans-serif;
    max-width: 900px;
    margin: 0 0 28px;
}

/* ── Header ── */
.tre-cal__head {
    text-align: center;
    margin-bottom: 28px;
}
.tre-cal__season-badge {
    display: inline-block;
    background: linear-gradient(135deg, #f0a500, #ffb300);
    color: #0f1f4a;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 18px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.tre-cal__title {
    font-size: 24px;
    font-weight: 900;
    color: #0f1f4a;
    margin-bottom: 6px;
}
.tre-cal__subtitle {
    font-size: 13px;
    color: #777;
}

/* ── Day tabs ── */
.tre-cal__tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.tre-cal__tab {
    flex: 1;
    min-width: 100px;
    background: #ffffff;
    border: 2px solid #e8eef8;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    font-family: Arial, Helvetica, sans-serif;
}
.tre-cal__tab:hover {
    border-color: #2053a5;
    background: #f0f7ff;
}
.tre-cal__tab.active {
    background: #0f1f4a;
    border-color: #0f1f4a;
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(15,31,74,.2);
}
.tre-cal__tab-day {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #888;
    margin-bottom: 4px;
}
.tre-cal__tab.active .tre-cal__tab-day {
    color: #f0a500;
}
.tre-cal__tab-name {
    font-size: 13px;
    font-weight: 800;
    color: #0f1f4a;
}
.tre-cal__tab.active .tre-cal__tab-name {
    color: #ffffff;
}

/* ── Day grid ── */
.tre-cal__grid {
    display: none;
    grid-template-columns: 80px 1fr;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8eef8;
    box-shadow: 0 8px 32px rgba(15,31,74,.08);
}
.tre-cal__grid.active {
    display: grid;
}

/* ── Time column ── */
.tre-cal__time-col {
    background: #f7f9fc;
    border-right: 2px solid #e8eef8;
}
.tre-cal__time-label {
    min-height: 68px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 14px;
    font-size: 11px;
    font-weight: 700;
    color: #2053a5;
    border-bottom: 1px dashed #e8eef8;
    position: relative;
}
.tre-cal__time-label::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 14px;
    width: 6px;
    height: 2px;
    background: #2053a5;
    opacity: .5;
}

/* ── Shows column ── */
.tre-cal__shows-col {
    position: relative;
}

/* ── Individual show block ── */
.tre-cal__show {
    display: flex;
    align-items: stretch;
    min-height: 68px;
    border-bottom: 1px solid #f0f4ff;
    transition: background .15s;
}
.tre-cal__show:last-child {
    border-bottom: none;
}
.tre-cal__show:hover {
    background: #f9fcff;
}

/* Accent bar */
.tre-cal__show-accent {
    width: 4px;
    flex-shrink: 0;
}

/* Content */
.tre-cal__show-content {
    flex: 1;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.tre-cal__show-time {
    font-size: 11px;
    font-weight: 700;
    color: #2053a5;
    margin-bottom: 3px;
    letter-spacing: .3px;
}
.tre-cal__show-title {
    font-size: 14px;
    font-weight: 800;
    color: #0f1f4a;
    margin-bottom: 3px;
}
.tre-cal__show-presenter {
    font-size: 12px;
    color: #888;
}

/* Badge */
.tre-cal__show-badge {
    align-self: center;
    margin: 0 16px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ── Accent colours ── */
.accent-blue   { background: #2053a5; }
.accent-navy   { background: #0f1f4a; }
.accent-amber  { background: #f0a500; }
.accent-teal   { background: #0e7c7b; }
.accent-purple { background: #5c3d99; }
.accent-red    { background: #c0392b; }
.accent-green  { background: #1e8c3a; }
.accent-slate  { background: #607d8b; }

/* ── Badge colours ── */
.badge-live   { background: #e8f8f0; color: #1e8c3a; border: 1px solid #a8dfc0; }
.badge-bbc    { background: #e8eef8; color: #2053a5; border: 1px solid #bccfe8; }
.badge-music  { background: #fef8e8; color: #b8860b; border: 1px solid #f0d080; }
.badge-talk   { background: #f0e8ff; color: #5c3d99; border: 1px solid #c8a0f0; }
.badge-news   { background: #fff0e8; color: #c0392b; border: 1px solid #f0b090; }
.badge-sport  { background: #e8fff0; color: #1e8c3a; border: 1px solid #90e0b0; }
.badge-repeat { background: #f5f5f5; color: #888;    border: 1px solid #ddd;    }

/* ── Responsive ── */
@media (max-width: 700px) {
    .tre-cal__tabs { gap: 5px; }
    .tre-cal__tab  { min-width: 76px; padding: 10px 5px; }
    .tre-cal__tab-name { font-size: 11px; }
    .tre-cal__show-badge { display: none; }
    .tre-cal__grid { grid-template-columns: 60px 1fr; }
    .tre-cal__time-label { font-size: 10px; padding-top: 16px; }
    .tre-cal__show-title { font-size: 13px; }
}
@media (max-width: 420px) {
    .tre-cal__tab-name { display: none; }
    .tre-cal__tab-day  { font-size: 11px; letter-spacing: 0; }
    .tre-cal__grid { grid-template-columns: 50px 1fr; }
}
