/* Radio Schedule Elementor Widgets - Styles */

.radio-schedule-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.radio-schedule-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.05)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

/* Header Section */
.schedule-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 2;
}

.schedule-header h2 {
    font-size: 2.8em;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.schedule-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.day-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.day-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.day-btn.active {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-color: #ff6b35;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.4);
}

.live-indicator {
    background: linear-gradient(45deg, #ff0000, #ff4444);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.1em;
    animation: pulse 2s infinite;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Section Titles */
.section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(45deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 2px;
}

/* Show Card Layout - Always Top Layout */
.show-card {
    display: block !important;
}

.show-card .show-image-container {
    margin-bottom: 20px !important;
    text-align: center;
}

.show-card .show-image {
    width: 200px !important;
    height: 200px !important;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Current Shows Grid */
.current-shows-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.show-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.show-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6b35, #f7931e, #ff6b35);
    background-size: 200% 100%;
    animation: gradientMove 3s infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.show-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

/* Show Image Styling - Rounded Edges */
.show-image-container {
    position: relative;
    margin-bottom: 20px;
    display: inline-block;
}

.show-image {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.show-card:hover .show-image {
    transform: scale(1.1) rotate(3deg);
    border-color: #ff6b35;
    box-shadow: 0 12px 35px rgba(255, 107, 53, 0.3);
}

.live-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(45deg, #ff0000, #ff3333);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: bold;
    animation: blink 1.5s infinite;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.7; }
}

/* Show Content */
.show-content .show-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.3;
}

.show-content .show-host {
    color: #ff6b35;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.show-content .show-time {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 1em;
    display: inline-block;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
}

.show-card:hover .show-time {
    transform: translateY(-2px);
    background: rgba(255, 107, 53, 0.3);
}

.show-content .show-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95em;
    line-height: 1.6;
    margin-top: 12px;
}

/* Upcoming Shows */
.upcoming-shows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    position: relative;
    z-index: 2;
}

.upcoming-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    border-left: 5px solid #ff6b35;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.upcoming-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.05));
    transition: width 0.3s ease;
}

.upcoming-card:hover {
    transform: translateY(-8px) translateX(5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.2);
    border-left-width: 8px;
}

.upcoming-card:hover::before {
    width: 100%;
}

.upcoming-content {
    position: relative;
    z-index: 1;
}

.upcoming-content .show-title {
    color: #333;
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.upcoming-card:hover .upcoming-content .show-title {
    color: #ff6b35;
}

.upcoming-content .show-host {
    color: #666;
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 1em;
}

.upcoming-content .time-badge {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 8px 16px;
    border-radius: 18px;
    font-weight: 700;
    font-size: 0.9em;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    transition: all 0.3s ease;
}

.upcoming-card:hover .time-badge {
    transform: scale(1.05);
}

/* Loading and Empty States */
.loading-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.no-shows {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.no-shows h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #ffffff;
}

.no-shows p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1em;
}

/* Show Links */
.show-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.show-links.compact {
    margin-top: 10px;
    gap: 8px;
}

.listen-btn, .info-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.listen-btn:hover, .info-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.listen-btn {
    background: rgba(255, 107, 53, 0.8);
}

.listen-btn:hover {
    background: rgba(255, 107, 53, 1);
}

.info-btn {
    background: rgba(103, 126, 234, 0.8);
}

.info-btn:hover {
    background: rgba(103, 126, 234, 1);
}

.listen-btn-small, .info-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-size: 0.9em;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.listen-btn-small:hover, .info-btn-small:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

/* Upcoming cards with images */
.upcoming-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.upcoming-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.upcoming-show-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.upcoming-content {
    flex: 1;
    min-width: 0;
}

/* Image error handling */
.show-image, .upcoming-show-image {
    background: rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease;
}

.show-image:not([src]), .upcoming-show-image:not([src]) {
    opacity: 0.7;
}
@media (max-width: 768px) {
    .radio-schedule-container {
        padding: 20px 15px;
        margin: 10px;
    }
    
    .schedule-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .schedule-header h2 {
        font-size: 2.2em;
    }
    
    .schedule-controls {
        justify-content: center;
    }
    
    .day-btn {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    
    .current-shows-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .upcoming-shows {
        grid-template-columns: 1fr;
    }
    
    .show-card {
        padding: 25px 20px;
    }
    
    .show-card.layout-left {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .show-card.layout-left .show-image-container {
        align-self: center !important;
    }    
    .show-image {
        width: 150px;
        height: 150px;
    }
    
    .section-title {
        font-size: 1.8em;
    }
}

@media (max-width: 480px) {
    .radio-schedule-container {
        padding: 15px 10px;
        margin: 5px;
    }
    
    .schedule-header h2 {
        font-size: 1.8em;
    }
    
    .show-card {
        padding: 20px 15px;
    }
    
    .show-image {
        width: 120px;
        height: 120px;
        border-radius: 15px;
    }
    
    .upcoming-card {
        padding: 20px 15px;
    }
    
    .day-btn {
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    .section-title {
        font-size: 1.6em;
    }
}
