/* Gym Timetable Styles - Versione Impact con Accordion Mobile */

.gym-timetable-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.gym-timetable-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    padding: 0 15px;
}

/* Stile per ogni colonna giorno */
.gym-day-column {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gym-day-column:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

/* Header del giorno */
.gym-day-header {
    background: #003d4c;
    color: #CEDC00;
    text-align: center;
    padding: 12px 10px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
}

.gym-day-header h3 {
    color: #CEDC00 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Icona accordion - nascosta su desktop */
.gym-accordion-icon {
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    transition: transform 0.3s ease;
    pointer-events: none;
}

/* Lista attività */
.gym-activities-list {
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

/* Singola attività */
.gym-activity-item {
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #003D4C;
    transition: all 0.3s ease;
}

/* Colori dinamici per le attività */
.gym-activity-item-Green {
    border-left-color: Green;
}

.gym-activity-item-SteelBlue {
    border-left-color: SteelBlue;
}

.gym-activity-item-CadetBlue {
    border-left-color: CadetBlue;
}

.gym-activity-item-Orange {
    border-left-color: Orange;
}

.gym-activity-item-OrangeRed {
    border-left-color: OrangeRed;
}

.gym-activity-item-Purple {
    border-left-color: Purple;
}

/* Nome attività */
.gym-activity-name {
    font-weight: 700;
    font-size: 15px;
    color: #003D4C;
    margin-bottom: 6px;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* Orario */
.gym-activity-time {
    font-size: 13px;
    color: #003D4C;
    font-weight: 600;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

/* Trainer */
.gym-activity-trainer {
    font-size: 12px;
    color: #666;
    font-style: italic;
    transition: color 0.3s ease;
}

.gym-activity-item:hover .gym-activity-trainer {
    color: #003D4C;
}

/* Messaggio di errore */
.gym-timetable-error {
    text-align: center;
    padding: 20px;
    color: #dc3545;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .gym-timetable-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 768px) {

    /* Mobile: Layout verticale */
    .gym-timetable-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    /* Header diventa cliccabile */
    .gym-day-header {
        cursor: pointer;
        user-select: none;
        padding-right: 40px;
        font-size: 13px;
        padding: 12px 40px 12px 15px;
    }

    .gym-day-header h3 {
        font-size: 13px !important;
        text-align: left;
    }

    /* Mostra l'icona accordion */
    .gym-accordion-icon {
        display: block;
    }

    /* Ruota l'icona quando aperto */
    .gym-day-header.is-open .gym-accordion-icon {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Feedback hover su mobile */
    .gym-day-header:active {
        background: #00495a;
    }

    /* Lista chiusa di default */
    .gym-activities-list {
        max-height: 0;
        padding: 0 10px;
        overflow: hidden;
    }

    /* Lista aperta */
    .gym-activities-list.is-open {
        padding: 12px 10px;
    }

    /* Disabilita hover su colonna in mobile */
    .gym-day-column:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .gym-activity-name {
        font-size: 14px;
    }

    .gym-activity-time {
        font-size: 12px;
    }

    .gym-activity-trainer {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .gym-timetable-wrapper {
        padding: 15px 0;
    }

    .gym-day-header {
        padding: 10px 35px 10px 12px;
    }
}