/* ═══════════════════════════════════════════════════════════════════
   JET.FM SCHEDULE OVERLAY - SHARED STYLES
   Single source of truth for schedule styling across all pages
   ═══════════════════════════════════════════════════════════════════ */

/* Schedule Overlay */
.schedule-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.schedule-overlay.active {
    opacity: 1;
    visibility: visible;
}

.schedule-panel {
    width: 95%;
    max-width: 1400px;
    max-height: 90vh;
    background: linear-gradient(135deg, rgba(10, 10, 20, 0.98) 0%, rgba(5, 5, 15, 0.99) 100%);
    border: 1px solid rgba(100, 210, 255, 0.2);
    border-radius: 32px;
    overflow: hidden;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 0 100px rgba(191, 90, 242, 0.2),
        0 0 200px rgba(100, 210, 255, 0.1),
        inset 0 0 100px rgba(0, 0, 0, 0.5);
    position: relative;
}

.schedule-overlay.active .schedule-panel {
    transform: scale(1) translateY(0);
}

/* Direct link to schedule - instant show */
html.schedule-direct .schedule-overlay {
    opacity: 1;
    visibility: visible;
}

html.schedule-direct .schedule-panel {
    transform: scale(1) translateY(0);
}

.schedule-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--purple), var(--cyan), var(--purple), var(--red));
    background-size: 200% 100%;
    animation: borderFlow 4s linear infinite;
}

@keyframes borderFlow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Schedule Header */
.schedule-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 36px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(100, 210, 255, 0.1);
}

.schedule-header-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.schedule-logo {
    display: flex;
    align-items: center;
    gap: 20px;
}

.schedule-logo-img {
    height: 52px;
    filter: drop-shadow(0 0 20px rgba(255,45,85,0.6)) drop-shadow(0 0 40px rgba(100,210,255,0.4));
    animation: schedLogoGlow 2s ease-in-out infinite alternate;
}

@keyframes schedLogoGlow {
    0% { filter: drop-shadow(0 0 20px rgba(255,45,85,0.6)) drop-shadow(0 0 40px rgba(100,210,255,0.4)); }
    100% { filter: drop-shadow(0 0 35px rgba(255,45,85,0.9)) drop-shadow(0 0 60px rgba(100,210,255,0.6)) drop-shadow(0 0 80px rgba(191,90,242,0.5)); }
}

.schedule-title {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(90deg, #fff 0%, var(--cyan) 40%, var(--purple) 70%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    animation: schedTitleShimmer 4s linear infinite;
}

@keyframes schedTitleShimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.schedule-subtitle {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Schedule Clock */
.schedule-clock-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 28px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(100,210,255,0.2);
    border-radius: 18px;
    position: relative;
    overflow: hidden;
}

.schedule-clock-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(100,210,255,0.1), transparent, transparent);
    animation: radarSweep 20s linear infinite;
}

@keyframes radarSweep {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.schedule-clock-time {
    font-size: 40px;
    font-weight: 300;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    color: var(--cyan);
    text-shadow: 0 0 25px rgba(100,210,255,0.6);
    position: relative;
    z-index: 1;
}

.schedule-clock-zone {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 3px;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* Schedule Close Button */
.schedule-close {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 45, 85, 0.15);
    border: 1px solid rgba(255, 45, 85, 0.3);
    border-radius: 14px;
    color: var(--red);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s;
}

.schedule-close:hover {
    background: rgba(255, 45, 85, 0.3);
    box-shadow: 0 0 30px rgba(255, 45, 85, 0.4);
    transform: rotate(90deg);
}

/* Schedule Body */
.schedule-body {
    max-height: calc(90vh - 200px);
    overflow-y: auto;
    padding: 28px;
}

.schedule-body::-webkit-scrollbar { width: 6px; }
.schedule-body::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 3px; }
.schedule-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.3); }

.schedule-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ═══════════════════════════════════════════════════════════════════
   SCHEDULE CARDS
   ═══════════════════════════════════════════════════════════════════ */
.sched-card {
    background: linear-gradient(135deg, rgba(20, 20, 35, 0.9) 0%, rgba(15, 15, 25, 0.9) 100%);
    border: 1px solid rgba(100, 210, 255, 0.15);
    border-radius: 20px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.sched-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--purple), var(--cyan));
    opacity: 0.5;
}

.sched-card:hover {
    transform: translateY(-4px);
    border-color: rgba(100, 210, 255, 0.3);
    box-shadow: 0 10px 40px rgba(100, 210, 255, 0.15);
}

.sched-card.current {
    border-color: var(--cyan);
    box-shadow: 0 0 40px rgba(100, 210, 255, 0.3), inset 0 0 30px rgba(100, 210, 255, 0.05);
    animation: currentShowPulse 3s ease-in-out infinite;
}

@keyframes currentShowPulse {
    0%, 100% { box-shadow: 0 0 40px rgba(100, 210, 255, 0.3), inset 0 0 30px rgba(100, 210, 255, 0.05); }
    50% { box-shadow: 0 0 60px rgba(100, 210, 255, 0.5), inset 0 0 50px rgba(100, 210, 255, 0.1); }
}

.sched-card.current::before {
    background: var(--cyan);
    opacity: 1;
    box-shadow: 0 0 20px var(--cyan);
}

.sched-card.upcoming {
    border-color: rgba(191, 90, 242, 0.4);
}

.sched-card.upcoming::before {
    background: var(--purple);
    opacity: 0.8;
}

.sched-card-header {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.sched-card-icon {
    font-size: 36px;
    filter: drop-shadow(0 0 10px rgba(255,255,255,0.3));
}

.sched-card-info { flex: 1; }

.sched-card-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--cyan);
    font-weight: 600;
    margin-bottom: 4px;
}

.sched-card-time-dot {
    width: 6px;
    height: 6px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
}

.sched-card.current .sched-card-time-dot {
    animation: timeDotPulse 1s ease-in-out infinite;
}

@keyframes timeDotPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--cyan); }
    50% { transform: scale(1.3); box-shadow: 0 0 20px var(--cyan); }
}

.sched-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.sched-card.current .sched-card-name {
    color: var(--cyan);
    text-shadow: 0 0 20px rgba(100, 210, 255, 0.5);
}

.sched-card-desc {
    font-size: 12px;
    color: var(--text-dim);
}

.sched-card-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-dim);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sched-card-duration-icon {
    font-size: 12px;
}

/* Schedule Badges */
.sched-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sched-badge.now {
    background: var(--cyan);
    color: var(--bg);
    box-shadow: 0 0 15px var(--cyan);
    animation: nowPulse 2s ease-in-out infinite;
}

.sched-badge.next {
    background: var(--purple);
    color: white;
}

@keyframes nowPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Schedule Footer */
.schedule-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 20px 36px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(100, 210, 255, 0.1);
}

.schedule-footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-dim);
}

.schedule-footer-dot {
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--green);
    animation: footerDotPulse 2s ease-in-out infinite;
}

@keyframes footerDotPulse {
    0%, 100% { box-shadow: 0 0 15px var(--green); }
    50% { box-shadow: 0 0 25px var(--green); }
}

/* ═══════════════════════════════════════════════════════════════════
   SCHEDULE RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .schedule-panel {
        width: 98%;
        max-height: 95vh;
        border-radius: 20px;
    }
    .schedule-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    .schedule-header-left {
        width: 100%;
        justify-content: center;
    }
    .schedule-logo {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .schedule-logo-img {
        height: 40px;
    }
    .schedule-title {
        font-size: 18px;
    }
    .schedule-subtitle {
        font-size: 10px;
        letter-spacing: 2px;
    }
    .schedule-clock-display {
        padding: 12px 20px;
        border-radius: 12px;
    }
    .schedule-clock-time {
        font-size: 28px;
    }
    .schedule-clock-zone {
        font-size: 9px;
    }
    .schedule-close {
        position: absolute;
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 24px;
        border-radius: 10px;
    }
    .schedule-body {
        padding: 16px;
        max-height: calc(95vh - 280px);
    }
    .schedule-timeline {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .sched-card {
        padding: 16px;
        border-radius: 14px;
    }
    .schedule-footer {
        flex-direction: column;
        gap: 8px;
        padding: 16px;
    }
}
