/* Scheduled Show Poster - Frontend Styles */

.ssp-schedule-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.ssp-schedule-container .ssp-schedule-content {
    position: relative;
}

.ssp-schedule-content {
    transition: opacity 0.5s ease-in-out;
}

.ssp-schedule-image {
    max-width: 100%;
    height: auto;
    display: block;
    border: none;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ssp-schedule-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ON AIR Overlay */
.ssp-on-air-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.ssp-on-air-text {
    background: rgba(255, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.ssp-beacon {
    width: 12px;
    height: 12px;
    background: #ff0000;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    animation: ssp-beacon-pulse 2s infinite;
}

.ssp-beacon::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: rgba(255, 0, 0, 0.3);
    animation: ssp-beacon-ring 2s infinite;
}

@keyframes ssp-beacon-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

@keyframes ssp-beacon-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    70% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.ssp-no-schedule {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 4px;
    color: #6c757d;
    font-style: italic;
}

.ssp-no-schedule p {
    margin: 0;
    font-size: 14px;
}

/* Refresh button styles (optional - hidden by default) */
.ssp-refresh-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.ssp-refresh-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.ssp-refresh-btn.ssp-refreshing {
    animation: ssp-spin 1s linear infinite;
}

@keyframes ssp-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ssp-schedule-container {
        width: 100%;
    }
    
    .ssp-schedule-image {
        width: 100%;
    }
    
    .ssp-refresh-btn {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .ssp-on-air-overlay {
        top: 8px;
        right: 8px;
        gap: 6px;
    }
    
    .ssp-on-air-text {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    .ssp-beacon {
        width: 10px;
        height: 10px;
    }
}

/* Loading state */
.ssp-schedule-container.loading .ssp-schedule-content {
    opacity: 0.6;
}

.ssp-schedule-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: ssp-spin 1s linear infinite;
}

/* Accessibility improvements */
.ssp-schedule-image:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.ssp-refresh-btn:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .ssp-refresh-btn {
        display: none;
    }
    
    .ssp-schedule-image {
        box-shadow: none;
    }
}
