/* ==========================================================================
   Latin Secrets - Lesrooster Schedule
   ========================================================================== */

.ls-schedule {
    --ls-accent: #93327A;
    --ls-accent-light: rgba(147, 50, 122, 0.10);
    --ls-bg: #FFF9F5;
    --ls-bg-cell: #FFFFFF;
    --ls-text: #2D2D2D;
    --ls-text-light: #555555;
    --ls-border: #E8DDD8;
    --ls-radius: 8px;

    font-family: 'Barlow Semi Condensed', 'Inter', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==========================================================================
   DESKTOP TABLE (visible >= 768px)
   ========================================================================== */

.ls-schedule__desktop {
    display: block;
}

.ls-schedule__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--ls-bg-cell);
    border-radius: var(--ls-radius);
    overflow: hidden;
    table-layout: fixed;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.ls-schedule__table th,
.ls-schedule__table td {
    border: 1px solid var(--ls-border);
    padding: 14px 10px;
    text-align: center;
    vertical-align: middle;
    color: var(--ls-text);
    font-size: 14px;
    line-height: 1.4;
}

/* Corner cell (top-left) */
.ls-schedule__corner {
    background: var(--ls-accent);
    width: 14%;
}

/* Day header cells */
.ls-schedule .ls-schedule__table .ls-schedule__day-header {
    background: var(--ls-accent);
    color: #FFFFFF !important;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 16px 10px;
}

/* Time column */
.ls-schedule__time {
    background: rgba(147, 50, 122, 0.08);
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    width: 14%;
    color: var(--ls-text);
}

.ls-schedule__time--prive {
    font-size: 11px;
    white-space: normal;
    line-height: 1.3;
}

/* Class cells */
.ls-schedule__cell--has-class {
    background: var(--ls-accent-light);
}

.ls-schedule__cell--empty {
    background: var(--ls-bg-cell);
}

.ls-schedule__class-name {
    display: block;
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
    color: var(--ls-text);
}

.ls-schedule__class-level {
    display: block;
    font-size: 12px;
    color: var(--ls-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Prive row */
.ls-schedule__row--prive td {
    background: rgba(147, 50, 122, 0.04);
}

.ls-schedule__cell--prive {
    font-size: 12px;
}

.ls-schedule__prive-period {
    display: block;
    color: var(--ls-accent);
    font-weight: 600;
    font-size: 12px;
    line-height: 1.6;
}

/* ==========================================================================
   MOBILE LIST — all days visible at once (visible < 768px)
   ========================================================================== */

.ls-schedule__mobile {
    display: none;
}

/* Each day = one row */
.ls-schedule__day-row {
    display: flex;
    border-bottom: 1px solid var(--ls-border);
}

.ls-schedule__day-row:first-child {
    border-radius: var(--ls-radius) var(--ls-radius) 0 0;
    overflow: hidden;
}

.ls-schedule__day-row:last-child {
    border-bottom: none;
    border-radius: 0 0 var(--ls-radius) var(--ls-radius);
    overflow: hidden;
}

/* Day label (left column) */
.ls-schedule__day-label {
    flex-shrink: 0;
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ls-accent);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Day content (right side) */
.ls-schedule__day-content {
    flex: 1;
    padding: 10px 12px;
    background: var(--ls-bg-cell);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Individual timeslot within a day */
.ls-schedule__slot {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.ls-schedule__slot-time {
    font-size: 12px;
    font-weight: 700;
    color: var(--ls-text-light);
    min-width: 85px;
    flex-shrink: 0;
}

.ls-schedule__slot-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--ls-text);
}

.ls-schedule__slot-level {
    font-size: 12px;
    color: var(--ls-accent);
    font-weight: 600;
    text-transform: uppercase;
}

/* Prive slot */
.ls-schedule__slot--prive {
    border-top: 1px solid var(--ls-border);
    padding-top: 6px;
    margin-top: 2px;
}

.ls-schedule__slot--prive .ls-schedule__slot-time {
    color: var(--ls-accent);
}

.ls-schedule__slot-periods {
    font-size: 12px;
    color: var(--ls-text-light);
    font-weight: 500;
}

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

@media (max-width: 767px) {
    .ls-schedule__desktop {
        display: none;
    }

    .ls-schedule__mobile {
        display: block;
        border-radius: var(--ls-radius);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
        overflow: hidden;
    }
}

/* Tablet tweaks */
@media (min-width: 768px) and (max-width: 1024px) {
    .ls-schedule__table th,
    .ls-schedule__table td {
        padding: 10px 6px;
        font-size: 12px;
    }

    .ls-schedule__day-header {
        font-size: 14px;
    }

    .ls-schedule__class-name {
        font-size: 12px;
    }

    .ls-schedule__class-level {
        font-size: 11px;
    }

    .ls-schedule__time {
        font-size: 11px;
    }
}
