/* On Air Page Styles - Glassmorphism Design */
/* Enhanced styling for live streaming and social media integration */

/* Main Container */
.onair-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid var(--border-glass);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(255, 0, 0, 0.8) 0%, 
        rgba(255, 165, 0, 0.8) 25%, 
        rgba(255, 255, 0, 0.8) 50%, 
        rgba(0, 255, 0, 0.8) 75%, 
        rgba(0, 0, 255, 0.8) 100%);
    animation: rainbow-flow 3s linear infinite;
}

@keyframes rainbow-flow {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.page-header h1 i {
    color: #ff4444;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(255, 68, 68, 0.5));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 15px rgba(255, 68, 68, 0.8));
    }
}

.page-header .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* Live Indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 68, 68, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid rgba(255, 68, 68, 0.3);
    font-weight: 600;
    color: #ff4444;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #ff4444;
    border-radius: 50%;
    animation: live-pulse 1.5s ease-in-out infinite;
}

@keyframes live-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    50% { 
        transform: scale(1.2);
        box-shadow: 0 0 0 8px rgba(255, 68, 68, 0);
    }
}

/* Main Layout */
.onair-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    align-items: start;
}

/* Main Content */
.main-content {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    border: 1px solid var(--border-glass);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
}

.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
}

.content-inner {
    padding: 2rem;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.section-title i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

/* Streams Section */
.streams-section {
    margin-bottom: 3rem;
}

.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.stream-card {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stream-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--accent-color) 0%, 
        var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stream-card:hover::before {
    transform: scaleX(1);
}

.stream-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.stream-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, 
        var(--accent-color) 0%, 
        var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.stream-card:hover .stream-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.stream-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stream-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Stream Button */
.stream-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, 
        var(--accent-color) 0%, 
        var(--secondary-color) 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.stream-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.stream-btn:hover::before {
    left: 100%;
}

.stream-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.stream-btn i {
    font-size: 1rem;
}

/* Social Section */
.social-section {
    margin-bottom: 2rem;
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.social-card {
    background: var(--bg-glass);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.social-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Facebook Container */
.facebook-container {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    border: 1px solid var(--border-glass);
}

.facebook-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.facebook-wrapper iframe {
    border-radius: 10px;
    width: 100%;
    height: 400px;
}

/* YouTube Section */
.youtube-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.youtube-section h4 i {
    color: #ff0000;
    font-size: 1.3rem;
}

.youtube-feed {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.youtube-feed iframe {
    border-radius: 15px;
    width: 100%;
    height: 300px;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.sidebar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
}

.sidebar-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card h3 i {
    color: var(--accent-color);
}

/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quick-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-link-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: translateX(5px);
    border-color: var(--accent-color);
}

.quick-link-item i {
    font-size: 1.1rem;
    color: var(--accent-color);
    width: 20px;
    text-align: center;
}

/* Broadcasting Info Cards */
.broadcasting-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    padding: 1rem;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    transition: all 0.3s ease;
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.info-item .info-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-item .info-title i {
    color: var(--accent-color);
}

.info-item .info-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .onair-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sidebar {
        order: -1;
    }
    
    .social-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .onair-container {
        padding: 1rem;
    }
    
    .page-header {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .page-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .content-inner {
        padding: 1.5rem;
    }
    
    .streams-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stream-card {
        padding: 1.5rem;
    }
    
    .stream-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .facebook-wrapper iframe,
    .youtube-feed iframe {
        height: 250px;
    }
    
    .sidebar-card {
        padding: 1rem;
    }
    
    .quick-link-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 1.5rem;
    }
    
    .page-header .lead {
        font-size: 1rem;
    }
    
    .stream-card {
        padding: 1rem;
    }
    
    .stream-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .facebook-wrapper iframe,
    .youtube-feed iframe {
        height: 200px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Enhanced Hover Effects */
.stream-card,
.social-card,
.sidebar-card {
    position: relative;
    overflow: hidden;
}

.stream-card::after,
.social-card::after,
.sidebar-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    transition: left 0.6s ease;
}

.stream-card:hover::after,
.social-card:hover::after,
.sidebar-card:hover::after {
    left: 100%;
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .stream-card,
    .social-card,
    .sidebar-card {
        border: 2px solid var(--text-primary);
    }
    
    .stream-btn {
        border: 2px solid white;
    }
}
