/* Weekly Schedule Widget */

.wjcc-schedule {
    font-family: inherit;
}

.wjcc-schedule-title {
    text-align: center;
    margin: 0 0 24px;
    font-size: 28px;
}

/* Tabs — full width background via fixed-position wrapper */
.wjcc-schedule-tabs-wrap {
    position: relative;
}

.wjcc-schedule-tabs-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -9999px;
    right: -9999px;
    z-index: 0;
}

.wjcc-schedule-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 12px 0;
    position: relative;
    z-index: 1;
}

.wjcc-schedule-tab {
    padding: 10px 28px;
    border: 2px solid transparent;
    border-radius: 50px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.25s ease;
    text-align: center;
    background: transparent;
    color: #ffffff;
    letter-spacing: 0.02em;
}

.wjcc-schedule-tab.active {
    background: #F50275;
    border-color: #F50275;
}

.wjcc-schedule-tab:hover {
    background: #F50275;
    border-color: #F50275;
}

/* Week container */
.wjcc-schedule-week {
    display: none;
}

.wjcc-schedule-week.active {
    display: block;
}

.wjcc-schedule-week-title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    margin: 32px 0 12px;
}

.wjcc-schedule-notes {
    text-align: center;
    font-size: 16px;
    font-style: italic;
    color: #666;
    margin: 0 0 28px;
    padding: 0 16px;
}

.wjcc-schedule-notes p {
    margin: 0;
}

/* Day grid */
.wjcc-schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Day column */
.wjcc-schedule-day {
    min-width: 0;
}

.wjcc-schedule-day-header {
    text-align: center;
    padding: 14px 8px;
    font-weight: 700;
    font-size: 16px;
    border-radius: 6px 6px 0 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wjcc-schedule-day-date {
    font-size: inherit;
}

.wjcc-schedule-day-name {
    font-size: inherit;
    font-weight: 400;
    opacity: 0.85;
}

/* Events */
.wjcc-schedule-day-events {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 8px;
}

.wjcc-schedule-event {
    padding: 14px 12px;
    border-radius: 6px;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    display: block;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a.wjcc-schedule-event {
    cursor: pointer;
}

a.wjcc-schedule-event:hover {
    opacity: 0.75;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.wjcc-schedule-event-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.wjcc-schedule-event-time {
    font-size: 14px;
    margin-bottom: 4px;
}

.wjcc-schedule-event-text {
    font-size: 14px;
    margin-top: 6px;
}

.wjcc-schedule-event-lanes {
    font-size: 13px;
    font-style: italic;
    margin-top: 6px;
    opacity: 0.8;
}

.wjcc-schedule-empty {
    min-height: 40px;
}

/* Responsive — tablet */
@media (max-width: 900px) {
    .wjcc-schedule-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Responsive — mobile: one day at a time */
@media (max-width: 600px) {
    .wjcc-schedule-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .wjcc-schedule-tabs {
        flex-direction: column;
    }

    .wjcc-schedule-tab {
        font-size: 15px;
        padding: 14px 16px;
    }

    .wjcc-schedule-week-title {
        font-size: 20px;
    }

    .wjcc-schedule-day-header {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
        align-items: baseline;
        border-radius: 6px;
    }
}
