/* schedule.css - обновленные стили для расписания */

/* ===== ОБЩИЕ СТИЛИ СЕКЦИИ РАСПИСАНИЯ ===== */
#schedule-section {
    background: transparent !important;
    backdrop-filter: blur(10px);
    border-radius: 0 0 0 0;
}

/* Убираем старые надписи */
#selected-parent-info {
    display: none !important;
}

/* ===== КНОПКИ ФИЛЬТРАЦИИ ПО ДОЧЕРНИМ ВИДАМ ===== */
.schedule-child-filter {
    background: transparent;
    padding: 1rem 0;
    margin-bottom: 2rem;
    border-left: none;
}

.schedule-child-filter h4 {
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.schedule-child-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(28, 150, 166, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(28, 150, 166, 0.2);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: var(--color-aqua-primary);
    margin: 0.3rem;
    border-left: 3px solid var(--color-aqua-primary);
}

.schedule-child-btn:hover {
    background: rgba(28, 150, 166, 0.2);
    border-color: var(--color-aqua-primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(28, 150, 166, 0.1);
}

.schedule-child-btn.active {
    background: linear-gradient(135deg, var(--color-aqua-primary), var(--color-brand-fitness));
    color: white;
    border-color: var(--color-aqua-primary);
    box-shadow: 0 5px 15px rgba(28, 150, 166, 0.2);
    border-left-color: var(--color-red-accent);
}

/* ===== СТРУКТУРА РАСПИСАНИЯ (без изменений) ===== */
.schedule-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.dates-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(28, 150, 166, 0.1);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-lg);
    padding: 1rem;
    border: 1px solid rgba(28, 150, 166, 0.1);
    max-height: 100%;
    overflow-y: auto;
}

.date-tab {
    padding: 1rem;
    background: rgba(28, 150, 166, 0.1);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.date-tab:hover:not(.active) {
    border-color: var(--color-aqua-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.date-tab.active {
    background: linear-gradient(135deg, var(--color-red-accent), var(--color-red-primary));
    color: white;
    border-color: var(--color-red-accent);
    box-shadow: var(--shadow-md);
}

.date-day {
    font-size: 1.5rem;
    font-weight: bold;
}

.date-month {
    font-size: 0.9rem;
    color: var(--color-aqua-primary);
}

.date-weekday {
    font-size: 0.8rem;
    color: var(--color-aqua-primary);
}

.date-special {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--color-yellow-accent);
    margin-bottom: 0.25rem;
}

.schedule-content {
    position: relative;
    min-height: 500px;
}

.day-schedule {
    display: none;
    animation: fadeIn 0.3s ease;
}

.day-schedule.active {
    display: block;
}

/* ===== ОБНОВЛЕННЫЕ ПЛИТКИ РАСПИСАНИЯ (компактные) ===== */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-top: 1.5rem;
}

.schedule-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    height: 320px; /* Уменьшили высоту */
}

.schedule-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Изображение на всю плитку */
.schedule-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.schedule-card:hover .schedule-image {
    transform: scale(1.1);
}

/* Компактная стеклянная полоса внизу */
.schedule-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8); /* Темнее для лучшей читаемости */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 1rem; /* Уменьшили padding */
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    height: auto;
    min-height: 50px; /* Минимальная высота */
}

/* Первая строка: Название тренировки + Зал (справа) */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.schedule-workout-name {
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    line-height: 1.3;
    flex: 1;
    padding-right: 1rem;
}

.schedule-location {
    color: var(--color-yellow-primary);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.schedule-location::before {
    content: '📍';
    font-size: 0.9rem;
}

/* Вторая строка: Время + Тренер */
.schedule-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.schedule-time {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule-time::before {
    content: '🕐';
    font-size: 1rem;
}

.schedule-trainer {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.schedule-trainer::before {
    content: '👤';
    font-size: 0.95rem;
}

/* Нижняя строка: Доступность */
.schedule-footer {
    padding-top: 0.7rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.schedule-available {
    color: #27ae60;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.schedule-available::before {
    content: '✅';
}

.schedule-full {
    color: #e74c3c;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.schedule-full::before {
    content: '❌';
}

.schedule-max-participants {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

/* Бейдж типа занятия */
.schedule-class-type {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(28, 150, 166, 0.95);
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Для дней без занятий */
.schedule-no-lessons {
    grid-column: 1 / -1;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    text-align: center;
    padding: 2rem;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .schedule-layout {
        grid-template-columns: 160px 1fr;
        gap: 1.5rem;
    }

    .dates-column {
        max-height: 500px;
    }

    .schedule-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }

    .schedule-card {
        height: 300px;
    }

    .schedule-overlay {
        padding: 0.9rem;
    }

    .schedule-workout-name {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .schedule-layout {
        grid-template-columns: 1fr;
    }

    .dates-column {
        flex-direction: row;
        overflow-x: auto;
        max-height: none;
        padding-bottom: 1rem;
    }

    .date-tab {
        min-width: 80px;
        flex-shrink: 0;
        margin-right: 0.5rem;
        margin-bottom: 0;
    }

    .schedule-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .schedule-card {
        height: 280px;
    }

    .schedule-workout-name {
        font-size: 1rem;
    }

    .schedule-time,
    .schedule-trainer {
        font-size: 0.85rem;
    }

    .schedule-location {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .schedule-card {
        height: 260px;
    }

    .schedule-overlay {
        padding: 0.5rem;
    }

    .schedule-header {
        flex-direction: column;
        gap: 0.3rem;
        margin-bottom: 0.6rem;
    }

    .schedule-workout-name {
        font-size: 1rem;
        padding-right: 0;
    }

    .schedule-location {
        align-self: flex-end;
    }

    .schedule-details {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.3rem;
        margin-bottom: 0.6rem;
    }

    .schedule-trainer {
        margin-left: 0;
    }

    .schedule-child-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Кнопка записи на занятие */
.schedule-book-btn {
    width: 100%;
    padding: 0.7rem 1rem;
    background: linear-gradient(135deg, #1c96a6, #2a9d8f);
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(28, 150, 166, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.schedule-book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 150, 166, 0.6);
}

/* Надпись "Мест нет" */
.schedule-no-spots {
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    text-align: center;
    font-weight: 500;
}