/* ==================== SCHEDULE PAGE STYLES ==================== */

/* Schedule Hero */
.schedule-hero {
    position: relative;
    min-height: 35vh;
    display: flex;
    align-items: center;
    padding-top: var(--navbar-height);
    background: linear-gradient(135deg, var(--cream), var(--secondary));
    text-align: center;
}

.schedule-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(201, 168, 124, 0.2), transparent 60%);
}

.schedule-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.schedule-hero-content h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-xs);
}

.schedule-hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    font-weight: 300;
}

.schedule-hero-cta {
    margin-top: var(--spacing-md);
}

/* Schedule Section */
.schedule-section {
    padding: var(--spacing-lg) 0;
    background: var(--off-white);
}

/* Schedule Grid Container */
.schedule-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.schedule-grid {
    display: grid;
    grid-template-columns: 120px repeat(6, 1fr);
    min-width: 800px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

/* Day Headers */
.schedule-header-cell {
    background: var(--primary-dark);
    color: var(--white);
    padding: 1rem 0.5rem;
    text-align: center;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.schedule-header-cell:first-child {
    background: var(--primary-dark);
}

.schedule-header-cell:last-child {
    border-right: none;
}

/* Period Labels (СУТРИН, ОБЕД, ВЕЧЕР) */
.schedule-period-cell {
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 0.5rem;
    border-right: 2px solid var(--accent);
    border-bottom: 1px solid var(--gray-200);
}

.schedule-period-icon {
    font-size: 1.8rem;
    margin-bottom: 0.4rem;
}

.schedule-period-label {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Schedule Data Cells */
.schedule-cell {
    background: var(--white);
    padding: 0;
    text-align: center;
    border-right: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease;
}

/* Individual time slot row */
.schedule-slot {
    padding: 0.5rem 0.4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 70px;
    border-bottom: 1px solid var(--gray-100);
    box-sizing: border-box;
}

.schedule-slot:last-child {
    border-bottom: none;
}

.schedule-slot.filled {
    border-radius: 0;
}

.schedule-slot.empty-slot {
    background: transparent;
}

.schedule-slot.empty-slot .schedule-cell-time.muted {
    color: var(--gray-300);
    font-weight: 400;
    font-size: 0.75rem;
}

.schedule-cell:not(.empty):hover {
    opacity: 0.9;
}

.schedule-cell:last-child {
    border-right: none;
}

.schedule-cell-time {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.15rem;
}

.schedule-cell-type {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.1rem;
}

.schedule-cell-instructor {
    font-size: 0.7rem;
    color: var(--gray-400);
    font-style: italic;
}

a.schedule-cell-type,
a.schedule-cell-instructor {
    text-decoration: none;
    transition: color 0.2s ease;
}

a.schedule-cell-type {
    color: var(--gray-700);
}

a.schedule-cell-type:hover {
    color: var(--primary);
}

a.schedule-cell-instructor {
    color: var(--gray-400);
    font-style: italic;
}

a.schedule-cell-instructor:hover {
    color: var(--accent);
}

.schedule-cell-divider {
    display: block;
    width: 60%;
    height: 1px;
    background: var(--gray-200);
    margin: 0.2rem auto;
}

/* Legend */
.schedule-legend {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.pilates { background: var(--primary); }
.legend-dot.zumba { background: #E07A5F; }
.legend-dot.yoga { background: #81B29A; }
.legend-dot.body-shape-tone { background: #F2CC8F; }

/* CTA below schedule */
.schedule-cta {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.schedule-cta p {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: var(--spacing-sm);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .schedule-grid {
        min-width: 700px;
    }

    .schedule-header-cell {
        font-size: 0.75rem;
        padding: 0.8rem 0.3rem;
    }

    .schedule-slot {
        padding: 0.4rem 0.3rem;
        min-height: 50px;
    }

    .schedule-cell-time {
        font-size: 0.8rem;
    }

    .schedule-cell-type {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .schedule-hero {
        min-height: 25vh;
    }

    .schedule-grid {
        min-width: 600px;
    }

    .schedule-grid-wrapper {
        margin: 0 -1rem;
        border-radius: var(--radius-sm);
    }

    .schedule-header-cell {
        font-size: 0.6rem;
        letter-spacing: 0.03em;
        padding: 0.6rem 0.2rem;
    }

    .schedule-period-label {
        font-size: 0.6rem;
    }

    .schedule-period-icon {
        font-size: 1.2rem;
    }

    .schedule-slot {
        padding: 0.3rem 0.2rem;
        min-height: 40px;
    }

    .schedule-cell-time {
        font-size: 0.7rem;
    }

    .schedule-cell-type {
        font-size: 0.6rem;
    }

    .schedule-cell-instructor {
        font-size: 0.55rem;
    }

    .schedule-slot.empty-slot .schedule-cell-time.muted {
        font-size: 0.6rem;
    }
}

@media (max-width: 480px) {
    .schedule-section {
        padding: var(--spacing-md) 0;
    }

    .schedule-grid {
        min-width: 500px;
    }

    .schedule-period-cell {
        padding: 0.8rem 0.2rem;
    }

    .schedule-slot {
        min-height: 35px;
        padding: 0.25rem 0.15rem;
    }

    .schedule-header-cell {
        font-size: 0.55rem;
        padding: 0.5rem 0.15rem;
    }

    .schedule-cell-time {
        font-size: 0.65rem;
    }

    .schedule-cell-type {
        font-size: 0.55rem;
    }

    .schedule-cell-instructor {
        font-size: 0.5rem;
    }

    .schedule-period-icon {
        font-size: 1rem;
    }

    .schedule-period-label {
        font-size: 0.55rem;
    }

    .schedule-slot.empty-slot .schedule-cell-time.muted {
        font-size: 0.55rem;
    }
}
