/* ============================================
   THE VALLEY FREQUENCY - PREMIUM PODCAST UI
   God-tier design system with pixel-perfect alignment
   ============================================ */

/* ============================================
   CUSTOM FONTS
   ============================================ */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@700,600,500,400&f[]=cabinet-grotesk@800,700,500,400&display=swap');

/* ============================================
   CSS VARIABLES - DESIGN TOKENS
   ============================================ */
:root {
    /* Color Palette - Deep Violet with Electric Accents */
    --bg-void: #030014;
    --bg-primary: #0a0118;
    --bg-secondary: #110827;
    --bg-card: #160c30;
    --bg-elevated: #1d1145;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-dim: #475569;
    
    /* Accent Colors */
    --accent-primary: #a855f7;
    --accent-secondary: #06b6d4;
    --accent-warm: #f97316;
    --accent-success: #10b981;
    --accent-danger: #ef4444;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #a855f7 0%, #06b6d4 100%);
    --gradient-warm: linear-gradient(135deg, #f97316 0%, #ec4899 100%);
    --gradient-hero: linear-gradient(180deg, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
    --gradient-card: linear-gradient(145deg, rgba(168, 85, 247, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    
    /* Typography */
    --font-display: 'Clash Display', -apple-system, sans-serif;
    --font-body: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Layout */
    --max-width: 1200px;
    --nav-height: 72px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Borders */
    --border-subtle: 1px solid rgba(168, 85, 247, 0.12);
    --border-light: 1px solid rgba(248, 250, 252, 0.08);
    --border-accent: 1px solid rgba(168, 85, 247, 0.3);
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(168, 85, 247, 0.3);
    --shadow-glow-cyan: 0 0 40px rgba(6, 182, 212, 0.3);
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
}

/* ============================================
   LIGHT THEME
   ============================================ */
[data-theme="light"] {
    --bg-void: #f8fafc;
    --bg-primary: #ffffff;
    --bg-secondary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-elevated: #ffffff;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    
    --border-subtle: 1px solid rgba(168, 85, 247, 0.15);
    --border-light: 1px solid rgba(15, 23, 42, 0.1);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.12);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    background: var(--bg-void);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

::selection {
    background: var(--accent-primary);
    color: white;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    z-index: 10000;
    transition: top var(--duration-normal) var(--ease-out);
}

.skip-link:focus {
    top: var(--space-md);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 3px;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--space-xl);
    }
}

/* ============================================
   NAVIGATION - PREMIUM GLASS EFFECT
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(10, 1, 24, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: var(--border-subtle);
}

[data-theme="light"] .nav {
    background: rgba(255, 255, 255, 0.85);
}

.nav-container {
    max-width: var(--max-width);
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    z-index: 1001;
}

.logo-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Desktop Navigation */
.nav-links {
    display: none;
    align-items: center;
    gap: var(--space-xs);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.1);
}

.nav-link.active {
    color: var(--accent-primary);
    background: rgba(168, 85, 247, 0.15);
}

/* Members Button in Nav */
.nav-members {
    display: none;
    align-items: center;
    gap: var(--space-md);
}

.nav-members-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-glow);
}

.nav-members-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.4);
}

.nav-members-btn svg {
    width: 18px;
    height: 18px;
}

/* User Menu - display controlled by JS */
.user-menu {
    position: relative;
    align-items: center;
    display: none;
}

.user-menu:not([hidden]) {
    display: flex;
}

/* Hidden attribute override */
[hidden] {
    display: none !important;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.user-menu-btn:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: #fff;
}

.user-name {
    font-weight: 500;
    font-size: 0.875rem;
    color: var(--text-primary);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration-fast) var(--ease-out);
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
    font-size: 0.9rem;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-primary);
}

.dropdown-item svg {
    opacity: 0.7;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0.5rem 0;
}

.logout-btn {
    color: #ef4444;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

/* Mobile Toggle */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    gap: 6px;
    z-index: 1001;
    border-radius: var(--radius-md);
    transition: background var(--duration-fast);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    position: relative;
}

.nav-toggle:hover {
    background: rgba(168, 85, 247, 0.1);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration-normal) var(--ease-out);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-void);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--duration-slow) var(--ease-out), 
                visibility var(--duration-slow) var(--ease-out);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xl);
}

.mobile-link {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 7vw, 3rem);
    font-weight: 600;
    color: var(--text-muted);
    padding: var(--space-md) var(--space-xl);
    transition: all var(--duration-normal) var(--ease-out);
    opacity: 0;
    transform: translateY(20px);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-link:nth-child(1) { transition-delay: 100ms; }
.mobile-link:nth-child(2) { transition-delay: 150ms; }
.mobile-link:nth-child(3) { transition-delay: 200ms; }
.mobile-link:nth-child(4) { transition-delay: 250ms; }
.mobile-link:nth-child(5) { transition-delay: 300ms; }
.mobile-link:nth-child(6) { transition-delay: 350ms; }

.mobile-link:hover,
.mobile-link.active {
    color: var(--text-primary);
}

.mobile-link.active {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mobile-members-btn {
    margin-top: var(--space-xl);
    padding: var(--space-md) var(--space-2xl);
    background: var(--gradient-primary);
    color: white;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--duration-normal) var(--ease-out);
    transition-delay: 400ms;
}

.mobile-menu.active .mobile-members-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Desktop Responsive */
@media (min-width: 768px) {
    .nav-container {
        padding: 0 var(--space-xl);
    }
    
    .nav-links {
        display: flex;
    }
    
    .nav-members {
        display: flex;
    }
    
    .nav-toggle {
        display: none;
    }
    
    .mobile-menu {
        display: none;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    transition: all var(--duration-normal) var(--ease-out);
    white-space: nowrap;
    min-height: 48px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
    background: rgba(168, 85, 247, 0.1);
    color: var(--text-primary);
    border: var(--border-subtle);
}

.btn-secondary:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: var(--accent-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    padding: var(--space-sm) var(--space-md);
}

.btn-ghost:hover {
    color: var(--accent-primary);
    background: rgba(168, 85, 247, 0.1);
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-sm {
    font-size: 0.875rem;
    padding: var(--space-sm) var(--space-md);
    min-height: 40px;
}

.btn-lg {
    font-size: 1rem;
    padding: var(--space-lg) var(--space-xl);
    min-height: 56px;
}

.btn-full {
    width: 100%;
}

/* Platform Buttons */
.btn-spotify { background: #1DB954; color: white; }
.btn-spotify:hover { background: #1ed760; box-shadow: 0 8px 30px rgba(29, 185, 84, 0.4); }

.btn-apple { background: linear-gradient(135deg, #fc3c44, #a855f7); color: white; }
.btn-apple:hover { box-shadow: 0 8px 30px rgba(252, 60, 68, 0.4); }

.btn-youtube { background: #FF0000; color: white; }
.btn-youtube:hover { box-shadow: 0 8px 30px rgba(255, 0, 0, 0.4); }

.btn-rss { background: #f26522; color: white; }
.btn-rss:hover { box-shadow: 0 8px 30px rgba(242, 101, 34, 0.4); }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background Effects */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 100%;
    background: var(--gradient-glow);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.badge-icon {
    font-size: 1rem;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 0.95;
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

.title-line {
    display: block;
    font-size: clamp(3rem, 12vw, 7rem);
    letter-spacing: -0.03em;
}

.title-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s var(--ease-out) 0.6s both;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    animation: fadeInUp 0.8s var(--ease-out) 0.8s both;
}

.hero-actions .btn {
    width: 100%;
}

/* Vinyl Visual */
.hero-visual {
    position: relative;
    z-index: 1;
    margin-top: var(--space-3xl);
    animation: fadeInUp 1s var(--ease-out) 1s both;
}

.vinyl-container {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

.vinyl {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: 
        radial-gradient(circle at 50% 50%, var(--bg-elevated) 28%, transparent 28.5%),
        repeating-radial-gradient(circle at 50% 50%, #1a1a2e 0px, #1a1a2e 2px, #12121f 2px, #12121f 4px);
    animation: spin 12s linear infinite;
    box-shadow: 
        0 0 0 8px var(--bg-card),
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.vinyl-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.5);
}

.vinyl-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 60%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Desktop Hero */
@media (min-width: 768px) {
    .hero {
        flex-direction: row;
        text-align: left;
        padding: var(--space-4xl) var(--space-xl);
        gap: var(--space-4xl);
    }
    
    .hero-content {
        flex: 1;
    }
    
    .hero-visual {
        flex: 0 0 320px;
        margin-top: 0;
        order: 1;
    }
    
    .vinyl-container {
        width: 300px;
        height: 300px;
    }
    
    .vinyl-label {
        width: 90px;
        height: 90px;
        font-size: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: row;
    }
    
    .hero-actions .btn {
        width: auto;
    }
}

@media (min-width: 1024px) {
    .vinyl-container {
        width: 360px;
        height: 360px;
    }
    
    .vinyl-label {
        width: 100px;
        height: 100px;
        font-size: 1.75rem;
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
    border-top: var(--border-subtle);
    border-bottom: var(--border-subtle);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.feature-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--gradient-card);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-xl);
    }
}

/* ============================================
   SUBSCRIBE CTA
   ============================================ */
.subscribe-cta {
    padding: var(--space-4xl) 0;
    position: relative;
}

.subscribe-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0.5;
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.cta-platforms {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
}

.platform-btn {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--duration-normal) var(--ease-out);
}

.platform-btn:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.platform-btn svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   PAGE HEADER (Interior Pages)
   ============================================ */
.page-header {
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-2xl);
    background: var(--bg-secondary);
    border-bottom: var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--gradient-hero);
    pointer-events: none;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-sm);
}

.page-title-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* ============================================
   SECTION STYLING
   ============================================ */
.section {
    padding: var(--space-4xl) 0;
}

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--bg-card);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.card:hover {
    border-color: rgba(168, 85, 247, 0.25);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-body {
    padding: var(--space-lg);
}

/* ============================================
   EPISODE CARDS
   ============================================ */
.episodes-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.episode-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.episode-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 32px rgba(168, 85, 247, 0.15);
}

.episode-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dim);
    opacity: 0.5;
    line-height: 1;
}

.episode-content {
    flex: 1;
}

.episode-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.episode-date,
.episode-duration {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.episode-tag {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-primary);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.episode-tag:hover {
    background: var(--accent-primary);
    color: white;
}

.episode-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.episode-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.episode-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .episode-card {
        flex-direction: row;
        align-items: flex-start;
        padding: var(--space-xl);
    }
    
    .episode-number {
        font-size: 3rem;
        min-width: 80px;
    }
}

/* ============================================
   AUDIO PLAYER
   ============================================ */
.episode-player {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    background: rgba(168, 85, 247, 0.08);
    border-radius: var(--radius-md);
    border: 1px solid rgba(168, 85, 247, 0.15);
}

.audio-player {
    width: 100%;
    height: 44px;
    border-radius: var(--radius-sm);
}

.audio-player::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.3);
}

/* ============================================
   HOSTS/TEAM SECTION
   ============================================ */
.hosts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.host-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-2xl);
    background: var(--gradient-card);
    border: var(--border-light);
    border-radius: var(--radius-xl);
}

.host-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-glow);
}

.host-info h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.host-alias {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: var(--space-xs);
}

.host-role {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

.host-bio {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.host-social {
    display: flex;
    gap: var(--space-sm);
}

@media (min-width: 768px) {
    .hosts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: var(--space-md);
    background: var(--bg-card);
    border: var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all var(--duration-fast);
    -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    background-size: 18px;
    padding-right: 3rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}

.contact-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: var(--border-light);
    border-radius: var(--radius-lg);
}

.contact-card h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.contact-method {
    display: flex;
    gap: var(--space-md);
}

.method-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.method-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.method-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

a.method-value:hover {
    color: var(--accent-primary);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================
   MERCH GRID
   ============================================ */
.merch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.merch-card {
    background: var(--bg-card);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-out);
}

.merch-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-lg);
}

.merch-image {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-dim);
    overflow: hidden;
}

.merch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merch-info {
    padding: var(--space-lg);
}

.merch-info h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.merch-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.merch-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
}

/* ============================================
   SUPPORT/DONATION SECTION
   ============================================ */
.support-section {
    padding: var(--space-4xl) 0;
    text-align: center;
    position: relative;
    background: var(--gradient-card);
    border-top: var(--border-subtle);
}

.support-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0.3;
    pointer-events: none;
}

.support-section .container {
    position: relative;
    z-index: 1;
}

.support-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--space-xl);
}

.donation-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.donation-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: all var(--duration-normal) var(--ease-out);
}

.donation-btn:hover {
    transform: translateY(-3px);
}

.donation-kofi { background: #ff5e5b; color: white; }
.donation-kofi:hover { box-shadow: 0 8px 25px rgba(255, 94, 91, 0.4); }

.donation-buymeacoffee { background: #ffdd00; color: #000; }
.donation-buymeacoffee:hover { box-shadow: 0 8px 25px rgba(255, 221, 0, 0.4); }

.donation-patreon { background: #ff424d; color: white; }
.donation-patreon:hover { box-shadow: 0 8px 25px rgba(255, 66, 77, 0.4); }

.donation-paypal { background: #003087; color: white; }
.donation-paypal:hover { box-shadow: 0 8px 25px rgba(0, 48, 135, 0.4); }

.donation-custom { background: var(--gradient-primary); color: white; }
.donation-custom:hover { box-shadow: var(--shadow-glow); }

.members-link {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color var(--duration-fast);
}

.members-link:hover {
    color: var(--accent-primary);
}

/* Glowing Members Link */
.members-link-glow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444, #ec4899);
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
    border-radius: var(--radius-full);
    text-decoration: none;
    box-shadow: 
        0 0 20px rgba(245, 158, 11, 0.4),
        0 0 40px rgba(239, 68, 68, 0.2),
        0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.members-link-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.members-link-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 0 30px rgba(245, 158, 11, 0.6),
        0 0 60px rgba(239, 68, 68, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.4);
}

.members-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.members-link-icon svg {
    width: 20px;
    height: 20px;
    fill: #fbbf24;
    stroke: none;
    filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.6));
}

/* ============================================
   APP SPLASH SCREEN (Mobile Only)
   ============================================ */
.app-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg-void);
    display: none; /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Only show splash on mobile */
@media (max-width: 768px) {
    .app-splash {
        display: flex;
    }
}

/* Also show in PWA standalone mode on mobile */
@media (display-mode: standalone) and (max-width: 768px) {
    .app-splash {
        display: flex;
    }
}

.app-splash.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: none !important;
}

.splash-content {
    text-align: center;
}

.splash-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    animation: splashPulse 1.5s ease-in-out infinite;
}

.splash-logo svg {
    width: 100%;
    height: 100%;
}

.splash-circle {
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    animation: splashCircle 1.5s ease-out forwards;
}

.splash-v {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: splashV 1s ease-out 0.5s forwards;
}

@keyframes splashCircle {
    to { stroke-dashoffset: 0; }
}

@keyframes splashV {
    to { stroke-dashoffset: 0; }
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.splash-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    opacity: 0;
    animation: splashTextFade 0.5s ease-out 0.8s forwards;
}

@keyframes splashTextFade {
    to { opacity: 1; }
}

.splash-loader {
    width: 120px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.splash-loader-bar {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
    border-radius: 2px;
    animation: splashLoad 1.5s ease-out forwards;
}

@keyframes splashLoad {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ============================================
   MOBILE APP BOTTOM NAVIGATION
   ============================================ */
.app-bottom-nav {
    display: none !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: rgba(12, 12, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    padding: 0.5rem 0;
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
}

/* Show ONLY on mobile screens (max-width: 768px) */
@media (max-width: 768px) {
    .app-bottom-nav {
        display: flex !important;
        justify-content: space-around;
        align-items: center;
    }
    
    /* Add padding to body to account for bottom nav */
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
    
    /* Hide footer on mobile when bottom nav is present */
    .footer {
        margin-bottom: 0;
    }
    
    /* HIDE the top nav links on mobile - use bottom nav instead */
    .nav-links {
        display: none !important;
    }
    
    /* Hide the members button in top nav on mobile */
    .nav-members {
        display: none !important;
    }
    
    /* Simplify the top header on mobile */
    .nav-container {
        justify-content: space-between;
    }
    
    /* Hide hamburger toggle on mobile since we have bottom nav */
    .nav-toggle {
        display: none !important;
    }
}

/* Desktop should NEVER show bottom nav */
@media (min-width: 769px) {
    .app-bottom-nav {
        display: none !important;
    }
    
    body {
        padding-bottom: 0;
    }
}

/* PWA mode on mobile only - bottom nav visible */
@media (display-mode: standalone) and (max-width: 768px) {
    .app-bottom-nav {
        display: flex !important;
    }
}

/* PWA mode on DESKTOP - hide bottom nav */
@media (display-mode: standalone) and (min-width: 769px) {
    .app-bottom-nav {
        display: none !important;
        justify-content: space-around;
        align-items: center;
    }
    
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }
    
    /* Hide desktop nav toggle in app mode */
    .nav-toggle {
        display: none;
    }
    
    /* Simplify header in app mode */
    .nav {
        padding: 0.5rem 0;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-lg);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    min-width: 60px;
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.bottom-nav-item span {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bottom-nav-item.active {
    color: var(--accent);
}

.bottom-nav-item.active svg {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
}

.bottom-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    background: var(--accent);
    border-radius: 0 0 4px 4px;
}

.bottom-nav-item:active {
    transform: scale(0.95);
    background: rgba(168, 85, 247, 0.1);
}

/* Ripple effect on tap */
.bottom-nav-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    border-radius: inherit;
}

.bottom-nav-item:active::after {
    opacity: 1;
    transform: scale(2);
}

/* Floating action button style indicator */
.bottom-nav-item.active::after {
    display: none;
}

/* Badge support for notifications */
.bottom-nav-item .badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: var(--accent-red);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Bottom nav safe area background for gesture bar */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .app-bottom-nav::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: env(safe-area-inset-bottom);
        background: rgba(12, 12, 15, 0.98);
    }
}

/* ============================================
   APP-LIKE TOUCH INTERACTIONS
   ============================================ */
@media (max-width: 768px) {
    /* Smooth scrolling */
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Remove tap highlight */
    * {
        -webkit-tap-highlight-color: transparent;
    }
    
    /* Better touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Smooth transitions on interactive elements */
    .btn, .nav-link, .mobile-link, .social-icon {
        transition: transform 0.15s ease, opacity 0.15s ease;
    }
    
    .btn:active, .nav-link:active, .mobile-link:active, .social-icon:active {
        transform: scale(0.97);
        opacity: 0.8;
    }
    
    /* Card touch feedback */
    .episode-card:active, .merch-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    /* Native-like scrolling for lists */
    .episodes-grid, .merch-grid {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Reduce motion for accessibility */
    @media (prefers-reduced-motion: reduce) {
        *, *::before, *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* iOS-style momentum scrolling */
    .container, main, section {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix input zoom on iOS */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Native-like button press states */
    .btn-primary:active {
        filter: brightness(0.9);
        transform: scale(0.98);
    }
    
    .btn-outline:active {
        background: rgba(168, 85, 247, 0.2);
    }
}

/* Pull to refresh visual indicator */
.pull-indicator {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 9999;
    background: var(--bg-elevated);
    border-radius: 0 0 20px 20px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.pull-indicator.visible {
    transform: translateX(-50%) translateY(0);
}

.pull-indicator svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   NATIVE APP FEEL ENHANCEMENTS
   ============================================ */

/* Prevent text selection on UI elements */
.nav, .app-bottom-nav, .btn, .mobile-menu {
    -webkit-user-select: none;
    user-select: none;
}

/* Smooth page transitions */
.page-transition {
    animation: pageIn 0.3s ease-out;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Standalone mode specific styles */
@media (display-mode: standalone) {
    /* Safe area padding for notched devices */
    body {
        padding-top: env(safe-area-inset-top);
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    
    /* Adjust nav for safe areas */
    .nav {
        padding-top: calc(0.5rem + env(safe-area-inset-top));
        position: sticky;
        top: 0;
    }
    
    /* App-style compact header */
    .nav-container {
        padding: 0.5rem var(--space-md);
    }
    
    .logo-text {
        font-size: 0.8rem;
        letter-spacing: 0.1em;
    }
    
    /* Hide full nav links in app mode, use bottom nav instead */
    .nav-links {
        display: none !important;
    }
    
    /* Compact members button */
    .nav-members-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    /* Hide browser-specific elements */
    .skip-link {
        display: none;
    }
    
    /* Full screen hero */
    .hero {
        min-height: calc(100vh - env(safe-area-inset-top) - 70px);
    }
    
    /* App-style section headers */
    .section-header {
        position: sticky;
        top: 60px;
        background: var(--bg-void);
        z-index: 50;
        padding: var(--space-sm) 0;
        margin-bottom: var(--space-md);
    }
    
    /* Simplified footer in app mode */
    .footer {
        padding: var(--space-lg) 0;
    }
    
    .footer-grid {
        gap: var(--space-md);
    }
}

/* Mobile app-specific optimizations */
@media (max-width: 768px) and (display-mode: standalone) {
    /* Ultra-compact header for app */
    .nav {
        padding: 0.25rem 0;
        min-height: 50px;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
    }
    
    .logo-text {
        font-size: 0.7rem;
    }
    
    /* Full-width content areas */
    .container {
        padding: 0 var(--space-sm);
    }
    
    /* More prominent content on app */
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    /* Cards optimized for app */
    .episode-card, .merch-card {
        border-radius: var(--radius-lg);
        overflow: hidden;
    }
}

/* Loading states */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Haptic-like visual feedback */
.haptic-feedback {
    animation: haptic 0.1s ease;
}

@keyframes haptic {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.98); }
}

/* ============================================
   PWA INSTALL POPUP
   ============================================ */
.pwa-install-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    padding: var(--space-lg);
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pwa-install-popup.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.pwa-install-content {
    max-width: 500px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(30, 30, 40, 0.98), rgba(20, 20, 30, 0.98));
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    box-shadow: 
        0 -10px 60px rgba(168, 85, 247, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(20px);
}

.pwa-install-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.pwa-install-close svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.pwa-install-close:hover {
    background: rgba(239, 68, 68, 0.2);
}

.pwa-install-close:hover svg {
    color: #ef4444;
}

.pwa-install-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    animation: pwaIconPulse 2s ease-in-out infinite;
}

@keyframes pwaIconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pwa-install-icon svg {
    width: 100%;
    height: 100%;
}

.pwa-install-text h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--text-primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pwa-install-text p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: var(--space-lg);
}

.pwa-install-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #a855f7, #06b6d4);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4);
}

.pwa-install-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.5);
}

.pwa-install-btn svg {
    width: 20px;
    height: 20px;
}

.pwa-install-later {
    display: block;
    width: 100%;
    margin-top: var(--space-md);
    padding: var(--space-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
    background: none;
    cursor: pointer;
    transition: color var(--duration-fast);
}

.pwa-install-later:hover {
    color: var(--text-primary);
}

/* iOS Safari specific styles */
.pwa-ios-instructions {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.pwa-ios-instructions ol {
    text-align: left;
    margin: var(--space-sm) 0 0 var(--space-lg);
}

.pwa-ios-instructions li {
    margin-bottom: var(--space-xs);
}

@media (max-width: 480px) {
    .pwa-install-popup {
        padding: var(--space-md);
    }
    
    .pwa-install-content {
        padding: var(--space-lg);
    }
    
    .pwa-install-icon {
        width: 60px;
        height: 60px;
    }
    
    .pwa-install-text h3 {
        font-size: 1.25rem;
    }
}

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-glow);
    z-index: 9999;
    transition: all var(--duration-normal) var(--ease-out);
}

/* Move theme toggle above bottom nav on mobile */
@media (max-width: 768px) {
    .theme-toggle {
        bottom: calc(70px + var(--space-md));
        right: var(--space-md);
        width: 46px;
        height: 46px;
    }
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(168, 85, 247, 0.5);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
    position: absolute;
    transition: all var(--duration-normal) var(--ease-out);
}

.theme-toggle .sun-icon { opacity: 1; transform: rotate(0); }
.theme-toggle .moon-icon { opacity: 0; transform: rotate(-90deg); }

[data-theme="light"] .theme-toggle .sun-icon { opacity: 0; transform: rotate(90deg); }
[data-theme="light"] .theme-toggle .moon-icon { opacity: 1; transform: rotate(0); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    margin-top: auto;
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--bg-secondary);
    border-top: var(--border-subtle);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    text-align: center;
    margin-bottom: var(--space-xl);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    display: block;
}

.footer-brand p {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 300px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md) var(--space-lg);
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color var(--duration-fast);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: var(--border-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
}

.footer-bottom span {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.8125rem;
}

.footer-bottom-links a {
    color: var(--text-muted);
    transition: color var(--duration-fast);
}

.footer-bottom-links a:hover {
    color: var(--accent);
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--text-muted);
    transition: all var(--duration-normal) var(--ease-out);
}

.social-icon svg {
    width: 18px;
    height: 18px;
}

.social-icon:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4);
}

/* Footer Links Columns */
.footer-links {
    display: flex;
    gap: var(--space-2xl);
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links-column h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.footer-links-column a {
    color: var(--text-muted);
    font-size: 0.9375rem;
    transition: color var(--duration-fast);
}

.footer-links-column a:hover {
    color: var(--accent);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
    
    .footer-brand p {
        margin: 0;
    }
}

/* ============================================
   SEARCH & FILTER
   ============================================ */
.search-section {
    margin-bottom: var(--space-xl);
}

.search-bar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.search-input-wrapper {
    position: relative;
}

.search-icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) 3rem;
    background: var(--bg-card);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--duration-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2);
}

.clear-search {
    position: absolute;
    right: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.clear-search:hover {
    background: var(--accent-primary);
    color: white;
}

.tag-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.tag-btn {
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: var(--border-light);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.tag-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.tag-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl) 0;
    margin-top: var(--space-xl);
    border-top: var(--border-light);
}

.page-info {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.pagination .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.social-links {
    display: flex;
    gap: var(--space-sm);
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: var(--border-light);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--duration-normal) var(--ease-out);
}

.social-link:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    max-width: 600px;
    margin: 0 auto;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.social-card:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: var(--shadow-md);
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.social-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

@media (min-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ============================================
   LOADING STATE
   ============================================ */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl) var(--space-xl);
    gap: var(--space-md);
    color: var(--text-muted);
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(168, 85, 247, 0.2);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(var(--space-lg), env(safe-area-inset-left));
        padding-right: max(var(--space-lg), env(safe-area-inset-right));
    }
    
    .footer {
        padding-bottom: max(var(--space-xl), env(safe-area-inset-bottom));
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --bg-void: #000;
        --bg-primary: #000;
        --bg-secondary: #000;
        --bg-card: #111;
        --text-primary: #fff;
        --text-secondary: #fff;
        --border-light: 2px solid #fff;
    }
}
