/* ===== PODCAST COMING SOON OVERLAY STYLES ===== */
/* IMPORTANT: This CSS ensures the cover-up takes over the podcast page */
.podcast-cover-up-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998; /* Lower than menu bar (1000) but still high */
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    background: transparent;
    pointer-events: auto;
}

/* IMPORTANT: Allow clicks to pass through to menu when not hovering overlay */
.podcast-cover-up-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
    pointer-events: none;
}

/* Remove cover-up button - visible only when needed */
.podcast-remove-cover-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000000;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    display: none; /* Hidden by default */
    transition: all 0.3s ease;
    pointer-events: auto;
}

.podcast-remove-cover-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* ===== COVER-UP PAGE STYLES ===== */
.podcast-cover-up-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.podcast-cover-up-page {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --animation-speed: 1.5s;
}

/* FIXED: Ensure gradient background is visible */
.podcast-cover-container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e) !important;
    background-size: 400% 400% !important;
    animation: gradientBG 15s ease infinite;
    color: var(--light-color);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating background elements */
.podcast-floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
    animation: float 6s ease-in-out infinite;
}

.podcast-floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.podcast-floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.podcast-floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    animation-delay: 4s;
}

.podcast-floating-element:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 15%;
    right: 20%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Logo and branding */
.podcast-logo-container {
    margin: 1.5rem 0 2rem;
    text-align: center;
    animation: fadeInDown 1s ease-out;
    width: 100%;
    max-width: 800px;
}

.podcast-logo {
    font-size: 3.5rem;
    color: var(--light-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.podcast-logo-icon {
    color: var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.podcast-brand-name {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(to right, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Main content */
.podcast-main-content {
    text-align: center;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
    animation: fadeInUp 1s ease-out 0.5s both;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.podcast-coming-soon-text {
    font-size: 4.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    position: relative;
    display: inline-block;
    line-height: 1.2;
}

.podcast-coming-soon-text span {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 3s infinite linear;
    background-size: 200% auto;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.podcast-coming-soon-text::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: -10px;
    left: 0;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: widthPulse 2s infinite;
}

@keyframes widthPulse {
    0%, 100% { width: 100%; }
    50% { width: 80%; }
}

.podcast-subtitle {
    font-size: 1.5rem;
    margin: 1.5rem 0 2rem;
    line-height: 1.6;
    opacity: 0.9;
    padding: 0 1rem;
}

/* Animated progress */
.podcast-progress-container {
    width: 100%;
    max-width: 500px;
    margin: 2.5rem auto;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    height: 12px;
}

.podcast-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    animation: progressFill 3s ease-in-out infinite;
}

@keyframes progressFill {
    0%, 100% { width: 30%; }
    50% { width: 80%; }
}

/* Countdown timer */
.podcast-countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
    width: 100%;
}

.podcast-countdown-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1.2rem;
    min-width: 100px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out 1s both;
    transition: transform 0.3s;
}

.podcast-countdown-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.podcast-countdown-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.podcast-countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}


/* Social links */
.podcast-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2.5rem 0;
    animation: fadeIn 1s ease-out 2s both;
    flex-wrap: wrap;
}

.podcast-social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    font-size: 1.3rem;
    transition: all 0.3s;
    text-decoration: none;
}

.podcast-social-link:hover {
    transform: translateY(-5px) scale(1.1);
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Footer */
.podcast-footer {
    margin: 2rem 0 1rem;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
    animation: fadeIn 1s ease-out 2.5s both;
    width: 100%;
    padding: 0 1rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Developer controls - only visible in development */
.podcast-dev-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000001;-
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 10px;
    font-size: 14px;
    max-width: 300px;
    display: none; /* Hidden by default - change to block to see */
}

.podcast-dev-controls h3 {
    margin-top: 0;
    color: #4CAF50;
}

.podcast-dev-controls code {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
}

.podcast-toggle-controls {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .podcast-cover-container {
        padding: 1.5rem 1rem;
    }
    
    .podcast-logo-container {
        margin: 1rem 0 1.5rem;
    }
    
    .podcast-logo {
        font-size: 3rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .podcast-coming-soon-text {
        font-size: 3.2rem;
        margin: 1rem 0;
    }
    
    .podcast-brand-name {
        font-size: 1.8rem;
    }
    
    .podcast-subtitle {
        font-size: 1.2rem;
        margin: 1rem 0 1.5rem;
    }
    
    .podcast-countdown-item {
        min-width: 80px;
        padding: 1rem;
    }
    
    .podcast-countdown-value {
        font-size: 2rem;
    }
    
    .podcast-countdown-container {
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .podcast-form-group {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .podcast-email-input {
        min-width: 100%;
        width: 100%;
    }
    
    .podcast-notify-btn {
        width: 100%;
        margin-top: 0.5rem;
    }
    
    .podcast-social-links {
        margin: 2rem 0;
    }
    
    .podcast-remove-cover-btn {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .podcast-coming-soon-text {
        font-size: 2.5rem;
    }
    
    .podcast-countdown-container {
        gap: 0.8rem;
    }
    
    .podcast-countdown-item {
        min-width: 70px;
        padding: 0.8rem;
    }
    
    .podcast-countdown-value {
        font-size: 1.8rem;
    }
    
    .podcast-logo {
        font-size: 2.5rem;
    }
    
    .podcast-brand-name {
        font-size: 1.5rem;
    }
    
    .podcast-subtitle {
        font-size: 1.1rem;
        padding: 0 0.5rem;
    }
    
    .podcast-social-links {
        gap: 1rem;
    }
    
    .podcast-social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
}

@media (max-height: 700px) and (orientation: landscape) {
    .podcast-cover-container {
        padding: 1rem;
    }
    
    .podcast-logo-container {
        margin: 0.5rem 0 1rem;
    }
    
    .podcast-coming-soon-text {
        font-size: 3rem;
        margin: 0.5rem 0;
    }
    
    .podcast-subtitle {
        font-size: 1.2rem;
        margin: 0.5rem 0 1rem;
    }
    
    .podcast-countdown-container {
        margin: 1rem 0;
    }
    
    .podcast-notification-form {
        margin: 1rem auto;
    }
    
    .podcast-social-links {
        margin: 1.5rem 0;
    }
    
    .podcast-footer {
        margin: 1rem 0;
    }
}

/* Ensure content fits on very small screens */
@media (max-width: 350px) {
    .podcast-coming-soon-text {
        font-size: 2rem;
    }
    
    .podcast-logo {
        font-size: 2rem;
    }
    
    .podcast-brand-name {
        font-size: 1.2rem;
    }
    
    .podcast-countdown-item {
        min-width: 60px;
        padding: 0.6rem;
    }
    
    .podcast-countdown-value {
        font-size: 1.5rem;
    }
    
    .podcast-countdown-label {
        font-size: 0.7rem;
    }
}

/* CRITICAL FIXES: Ensure proper stacking and visibility */

/* Fix z-index conflicts with existing navigation */
.podcast-cover-up-page {
    z-index: 9998 !important; /* Lower than bottom nav (1000) and header (1000) */
}

/* Ensure the gradient background is always visible */
.podcast-cover-container {
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e) !important;
    background-size: 400% 400% !important;
}

/* Remove any white background bleed */
.podcast-cover-up-page,
.podcast-cover-container,
.podcast-main-content,
.podcast-logo-container {
    background: transparent !important;
}

/* Ensure floating elements have the correct background */
.podcast-floating-element {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Fix pointer events for better interaction */
.podcast-cover-up-page.active {
    pointer-events: auto;
}

/* When cover is active, allow navigation to work - FIXED FOR BOTTOM NAV */
body.podcast-cover-active .bottom-nav {
    z-index: 10000 !important; /* Higher than overlay */
    position: fixed !important; /* CRITICAL FIX: Keep it fixed */
    bottom: 0 !important; /* CRITICAL FIX: Keep it at bottom */
    pointer-events: auto;
}

body.podcast-cover-active header {
    z-index: 10000 !important; /* Higher than overlay */
    position: sticky !important; /* Keep header sticky */
    pointer-events: auto;
}

body.podcast-cover-active .top-bar {
    z-index: 10000 !important; /* Higher than overlay */
    position: relative !important;
    pointer-events: auto;
}

/* Ensure menu items are clickable */
body.podcast-cover-active .nav-item,
body.podcast-cover-active .category-btn,
body.podcast-cover-active .user-actions button,
body.podcast-cover-active .search-box {
    pointer-events: auto !important;
    z-index: 10001 !important;
    /* CRITICAL FIX: Removed position: relative which was breaking the bottom nav */
}

/* Hide only podcast content, not navigation */
.podcast-cover-active #podcastPage .inner-header {
    display: none !important;
}

.podcast-cover-active #podcastPage .podcast-content,
.podcast-cover-active #podcastPage .podcast-header,
.podcast-cover-active #podcastPage .podcast-categories-nav,
.podcast-cover-active #podcastPage .podcast-categories-sections,
.podcast-cover-active #podcastPage .podcast-loading,
.podcast-cover-active #podcastPage .podcast-error {
    display: none !important;
}

/* Ensure podcast player is also hidden */
.podcast-cover-active .podcast-player-modal {
    display: none !important;
}

/* Ensure podcast modal is also hidden */
.podcast-cover-active .podcast-modal {
    display: none !important;
}

/* Make overlay slightly transparent at edges for visual context */
.podcast-cover-up-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(-45deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
    pointer-events: none;
    z-index: -1;
}
