@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700;800&family=DM+Sans:wght@400;500;700&display=swap');

:root {
    --bg-dark: #000000;
    --bg-card: #0d0d0d;
    --bg-accent: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-cyan: #00ffff;
    --accent-magenta: #ff0099;
    --accent-lime: #00ff00;
    --accent-orange: #ff3300;
    --border-color: #ff0099;
    --shadow-glow: 0 0 40px rgba(255, 0, 153, 0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    position: relative;
    overflow-x: hidden;
}

/* Animated gradient background */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 240, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 170, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(204, 255, 0, 0.05) 0%, transparent 50%);
    animation: gradient-shift 20s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradient-shift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10%, 10%) rotate(120deg); }
    66% { transform: translate(-10%, 5%) rotate(240deg); }
}

/* Scanline + noise overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.1) 0px,
            rgba(0, 0, 0, 0.1) 1px,
            transparent 1px,
            transparent 2px
        ),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Header - Compact and Brutal */
.site-header {
    background: #000000;
    border-bottom: 3px solid #ff0099;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow:
        0 4px 20px rgba(255, 0, 153, 0.5),
        0 0 40px rgba(0, 255, 255, 0.3);
}

.site-logo {
    width: 2.5rem;
    margin: 0 auto 0.5rem;
    filter: drop-shadow(0 0 8px var(--accent-cyan));
    animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 8px var(--accent-cyan)); }
    50% { filter: drop-shadow(0 0 16px var(--accent-cyan)); }
}

.site-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    font-weight: 800;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    text-align: center;
    margin-bottom: 0.25rem;
    text-shadow:
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 30px #ff0099,
        0 0 40px #ff0099;
    animation: neon-flicker 3s infinite alternate;
}

@keyframes neon-flicker {
    0%, 100% {
        text-shadow:
            0 0 10px #00ffff,
            0 0 20px #00ffff,
            0 0 30px #ff0099,
            0 0 40px #ff0099;
    }
    50% {
        text-shadow:
            0 0 5px #00ffff,
            0 0 10px #00ffff,
            0 0 15px #ff0099,
            0 0 20px #ff0099;
    }
}

.site-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    color: var(--accent-lime);
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.9;
}

.back-link {
    display: inline-block;
    color: var(--accent-cyan);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.back-link:hover {
    color: var(--accent-magenta);
    text-shadow: 0 0 8px var(--accent-magenta);
}

/* Main Content */
.site-content {
    padding: 1.5rem 0 2rem;
}

.section-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 700;
    color: #00ff00;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: relative;
    padding-left: 1rem;
    text-shadow:
        0 0 10px #00ff00,
        0 0 20px #00ff00;
}

.section-title::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--accent-magenta);
    animation: blink 1.5s step-end infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Hero Section - Compact Platform Links */
.hero {
    padding: 0 0 1.5rem;
}

.podcast-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.podcast-logo {
    display: block;
    padding: 0.5rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.podcast-logo img {
    height: 1.125rem;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.podcast-logo:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.podcast-logo:hover img {
    opacity: 1;
}

/* Featured Episodes - Tight Grid */
.featured-episodes {
    margin-bottom: 2rem;
}

.episode-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* Staggered fade-in animation */
.episode-card {
    animation: fade-in-up 0.6s ease backwards;
}

.episode-card:nth-child(1) { animation-delay: 0.1s; }
.episode-card:nth-child(2) { animation-delay: 0.15s; }
.episode-card:nth-child(3) { animation-delay: 0.2s; }
.episode-card:nth-child(4) { animation-delay: 0.25s; }
.episode-card:nth-child(5) { animation-delay: 0.3s; }
.episode-card:nth-child(6) { animation-delay: 0.35s; }
.episode-card:nth-child(7) { animation-delay: 0.4s; }
.episode-card:nth-child(8) { animation-delay: 0.45s; }
.episode-card:nth-child(9) { animation-delay: 0.5s; }

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.episode-card {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.episode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 240, 255, 0.3) 50%,
        transparent 100%);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.episode-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg,
        rgba(0, 240, 255, 0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(255, 0, 170, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.episode-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    filter: brightness(0.85) contrast(1.1);
}

.episode-card:hover {
    border-color: var(--accent-cyan);
    box-shadow:
        0 0 30px rgba(0, 240, 255, 0.3),
        0 0 60px rgba(0, 240, 255, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.4);
    transform: translateX(4px) translateY(-2px);
}

.episode-card:hover::before {
    left: 100%;
}

.episode-card:hover::after {
    opacity: 1;
}

.episode-card:hover img {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.2) saturate(1.2);
}

/* Classic Episodes - Brutalist Blocks */
.classic-episodes {
    margin-bottom: 2rem;
}

.classic-episode {
    background: var(--bg-card);
    border-left: 3px solid var(--accent-magenta);
    padding: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.classic-episode::after {
    content: '//';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    opacity: 0.3;
    font-size: 0.75rem;
}

.classic-episode:hover {
    background: var(--bg-accent);
    border-color: var(--accent-cyan);
    transform: translateX(4px);
}

.classic-episode h3 {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.classic-episode p {
    color: var(--text-secondary);
    font-size: 0.75rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

/* Episode Page */
.episode-page {
    padding: 1rem 0 2rem;
}

.episode-hero {
    text-align: center;
    margin-bottom: 1.5rem;
}

.episode-hero img {
    max-width: min(18rem, 90vw);
    margin: 0 auto;
    border: 2px solid var(--accent-cyan);
    box-shadow: var(--shadow-glow);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%);
}

.episode-info {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.episode-info h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.25rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.episode-info h3 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.episode-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.625rem;
    color: var(--accent-lime);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.episode-description,
.episode-player {
    background: var(--bg-card);
    border-left: 3px solid var(--accent-orange);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.episode-description h4,
.episode-player h4 {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-lime);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.episode-description h5 {
    color: var(--accent-cyan);
    font-size: 0.8125rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.episode-description p,
.episode-description ul {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
}

.episode-description ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.episode-description li {
    margin-bottom: 0.5rem;
    padding-left: 1.25rem;
    position: relative;
}

.episode-description li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-magenta);
}

.episode-description a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

.episode-description a:hover {
    color: var(--accent-magenta);
    text-shadow: 0 0 8px var(--accent-magenta);
}

.coming-soon {
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.6;
}

/* Podcast Embeds */
.podcast-embed {
    margin-top: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.podcast-embed iframe {
    max-width: 100%;
    display: block;
}

/* Listen Links */
.listen-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.listen-link a {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    display: inline-block;
}

.listen-link a:hover {
    color: var(--accent-magenta);
    text-shadow: 0 0 8px var(--accent-magenta);
    transform: translateX(4px);
}

/* News & Archive Sections */
.news-section,
.podcast-section {
    background: var(--bg-card);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    border-top: 2px solid var(--accent-lime);
}

.news-section h2,
.podcast-section h2 {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-lime);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.news-section ul,
.podcast-section ul {
    list-style: none;
    padding-left: 0;
}

.news-section li,
.podcast-section li {
    margin-bottom: 0.75rem;
    padding-left: 1rem;
    position: relative;
}

.news-section li::before,
.podcast-section li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

.news-section a,
.podcast-section a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.news-section a:hover,
.podcast-section a:hover {
    color: var(--accent-cyan);
    transform: translateX(4px);
}

.podcast-section p {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

/* Footer */
.site-footer {
    background: var(--bg-card);
    border-top: 2px solid var(--accent-cyan);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 3rem;
}

.site-footer p {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Tablet/Desktop Responsive */
@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }

    .site-logo {
        width: 3.5rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .site-tagline {
        font-size: 0.75rem;
    }

    .section-title {
        font-size: 1rem;
    }

    .podcast-logo img {
        height: 1.5rem;
    }

    .episode-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 1rem;
    }

    .episode-hero img {
        max-width: min(24rem, 70vw);
    }

    .classic-episode {
        padding: 1.5rem;
    }

    .episode-description,
    .episode-player {
        padding: 1.5rem;
    }

    .news-section,
    .podcast-section {
        padding: 1.5rem;
    }
}

/* Glitch effect on hover (subtle) */
@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

.site-title:hover {
    animation: glitch 0.3s ease;
}
