/* Modern Header Styling */
.podcast-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: 0;
    margin: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

.podcast-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 50%, 
        rgba(236, 72, 153, 0.1) 100%);
    animation: shimmer 8s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.podcast-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.podcast-logo:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: rotate(45deg);
    animation: logoShine 3s ease-in-out infinite;
}

@keyframes logoShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    100% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.brand-title {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
}

.brand-subtitle {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.9);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.header-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 10002;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: rgba(226, 232, 240, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.subscribe-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

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

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

.subscribe-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Add padding to body to account for fixed header */
body {
    padding-top: 80px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-container {
        grid-template-columns: auto 1fr auto;
        padding: 0.75rem 1rem;
        gap: 1rem;
    }
    
    .podcast-header .header-nav {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(15, 23, 42, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        flex-direction: column !important;
        padding: 1.5rem !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        gap: 1rem;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
        z-index: 10002 !important;
        border-radius: 0 !important;
        width: auto !important;
        margin: 0 !important;
        filter: none !important;
        opacity: 1 !important;
    }
    
    .podcast-header .header-nav.open {
        display: flex !important;
        animation: slideDown 0.3s ease-out;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .podcast-header .nav-link {
        width: 100%;
        text-align: center;
        border-radius: 12px;
        font-size: x-small;
        font-weight: 600;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    
    .podcast-header .nav-link:hover,
    .podcast-header .nav-link:active {
        background: rgba(59, 130, 246, 0.2);
        border-color: rgba(59, 130, 246, 0.3);
        transform: translateY(-2px);
    }
    
    .mobile-menu-btn {
        display: block;
        padding: 0.75rem;
        font-size: 1.5rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: scale(1.05);
    }
    
    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    
    .brand-title {
        font-size: 1.25rem;
        line-height: 1.1;
    }
    
    .brand-subtitle {
        font-size: 0.7rem;
    }
    
    .subscribe-btn {
        padding: 0.7rem 1.3rem;
        font-size: 0.85rem;
        min-height: 44px;
        border-radius: 22px;
    }
    
    .subscribe-btn ion-icon {
        font-size: 1.1rem;
    }
    
    body {
        padding-top: 75px;
    }
}

@media (max-width: 480px) {
    .header-container {
        padding: 0.5rem 0.75rem;
        gap: 0.75rem;
    }
    
    .podcast-logo {
        gap: 0.5rem;
    }
    
    .brand-title {
        font-size: 1.1rem;
        line-height: 1.1;
    }
    
    .brand-subtitle {
        font-size: 0.65rem;
        letter-spacing: 0.3px;
    }
    
    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 18px;
        border-radius: 10px;
    }
    
    .subscribe-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        min-height: 40px;
        border-radius: 20px;
    }
    
    .subscribe-btn span {
        display: none; /* Hide text on very small screens */
    }
    
    .subscribe-btn ion-icon {
        font-size: 1.2rem;
        margin: 0;
    }
    
    .mobile-menu-btn {
        padding: 0.6rem;
        font-size: 1.4rem;
        min-width: 40px;
        min-height: 40px;
        border-radius: 10px;
    }
    
    .header-nav {
        padding: 1rem 0.75rem;
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.95rem;
        border-radius: 10px;
    }
    
    body {
        padding-top: 65px;
    }
    ion-icon {
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .header-container {
        padding: 0.4rem 0.5rem;
    }
    
    .brand-title {
        font-size: 1rem;
    }
    
    .brand-subtitle {
        font-size: 0.6rem;
    }
    
    .logo-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .subscribe-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
        min-height: 36px;
        border-radius: 18px;
    }
    
    .mobile-menu-btn {
        padding: 0.5rem;
        font-size: 1.3rem;
        min-width: 36px;
        min-height: 36px;
    }
    
    body {
        padding-top: 60px;
    }
}
