/* Palinsesto Radio - Frontend Styles */

.palinsesto-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Tabs - Menu giorni settimana */
.palinsesto-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

.palinsesto-tab {
    flex: 1;
    min-width: 100px;
    padding: 15px 10px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: inherit;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.3s ease;
    text-align: center;
}

.palinsesto-tab:hover {
    opacity: 0.8;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.palinsesto-tab.active {
    color: #f01511;
    font-weight: 700;
    border-bottom-color: #f01511;
}

/* Content area */
.palinsesto-content {
    position: relative;
    min-height: 400px;
}

.palinsesto-day {
    display: none;
}

.palinsesto-day.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Programma Box */
.programma-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    background: transparent;
    border: 1px solid #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.programma-box:hover {
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.programma-box.is-live {
    border: 1px solid #f01511;
    border-left: 4px solid #f01511;
    background: transparent;
}

/* Fascia oraria - ORA SU UNA SOLA RIGA */
.programma-ora {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    padding: 10px;
    white-space: nowrap;
    color: #ffffff;
}

.ora-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
}

.ora-separator {
    font-size: 14px;
    font-weight: 400;
    color: #ffffff;
}

/* Badge LIVE */
.live-badge {
    display: inline-block;
    padding: 4px 12px;
    background: transparent;
    color: #f01511;
    border: 1px solid #f01511;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    animation: pulse 2s infinite;
    margin-left: 8px;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Immagine programma */
.programma-immagine {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.programma-immagine img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
}

/* Nome programma */
.programma-nome {
    flex: 1;
}

.programma-nome h3 {
    margin: 0;
    font-size: inherit;
    font-weight: 600;
    line-height: 1.4;
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .palinsesto-tab {
        min-width: 80px;
        padding: 12px 8px;
        font-size: 14px;
    }
    
    .programma-box {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .programma-ora {
        min-width: auto;
    }
    
    .programma-immagine {
        width: 60px;
        height: 60px;
    }
    
    .programma-nome {
        flex-basis: 100%;
        order: 3;
    }
}

@media (max-width: 480px) {
    .palinsesto-tabs {
        gap: 5px;
    }
    
    .palinsesto-tab {
        min-width: 60px;
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .programma-box {
        padding: 15px;
    }
    
    .ora-text {
        font-size: 14px;
    }
}