/* Variables */
:root {
    --primary-color: #0a0a0a;
    --secondary-color: #1a1a1a;
    --accent-color: #c91111;
    --text-color: #c4c4c4;
    --highlight-color: #8b0000;
    --background-color: #000000;
    --shadow-color: rgba(201, 17, 17, 0.2);
}

/* Base Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
body {
    font-family: 'Crimson Text', 'Times New Roman', serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    text-shadow: 0 0 2px var(--shadow-color);
    min-height: 100%;
    position: relative;
}

/* Layout Base Styles */
.container {
    width: 95%;
    margin: 0 auto;
    padding: 0 1rem;
}

main, footer {
    padding: 1rem 2rem;
}

/* Top Bar - Mobile First */
/* Top Bar Styles */
.top-bar {
    background: var(--primary-color);
    padding: 0.5rem 1rem;
    border-bottom: 1px var(--accent-color) solid;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    position: relative;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    height: 30px;
    width: auto;
}

/* Search Box Styles */
.search-wrapper {
    position: relative;
    width: 250px;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    justify-self: center;
}

.search-input {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    background-color: #111111;
    border-radius: 50px;
    border: none;
    color: var(--text-color);
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.8rem;
}

.search-input::placeholder {
    color: rgba(79, 78, 78, 0.6);
}

.search-input:focus {
    border: none;
    outline: none;
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(79, 78, 78, 0.6);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.social-links {
    display: none; /* Hidden on mobile */
}

.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 33px;
    margin-left: auto;
}

.hamburger div {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

/* Hamburger to X animation */
.hamburger.active div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active div:nth-child(2) {
    opacity: 0;
}

.hamburger.active div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section - Mobile First */
header {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--accent-color);
    box-shadow: 0 0 20px var(--shadow-color);
}

.hero-image {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--background-color);
}

.hero-image img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.7; /* Add slight darkness to image */
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 1rem;
    z-index: 2;
}

/* Typography - Mobile First */
h1 {
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    line-height: 1.2;
    text-align: center;
}

h1 .top-line {
    display: block;
    font-size: 1.2rem;
    color: white;
    letter-spacing: 0.3rem;
    margin-bottom: 0.75rem;
    font-family: 'Creepster', cursive;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h1 .main-title {
    display: block;
    font-size: 1.7rem;
    color: var(--accent-color);
    font-family: 'Nosifer', cursive;
    letter-spacing: 2px;
    text-shadow: 3px 3px 0 #000,
                -1px -1px 0 #000,
                0 0 15px var(--accent-color),
                2px 2px 4px var(--shadow-color),
                -2px -2px 4px var(--shadow-color),
                0 0 20px var(--shadow-color);
    margin: 0.5rem 0;
    transform: scaleY(1.8);
    line-height: 1.2;
    white-space: nowrap;
}

h1 .subtitle {
    display: block;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.8rem;
    color: white;
    letter-spacing: 4px;
    margin-top: 0.5rem;
    font-weight: normal;
    text-transform: none;
    font-style: italic;
    text-shadow: 1px 1px 2px var(--shadow-color);
    white-space: nowrap;
}

/* Navigation - Mobile First */
nav {
    background-color: var(--primary-color);
    padding: 0;
    border-bottom: 1px solid var(--accent-color);
    border-top: 1px solid var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    position: relative;
}

nav ul.nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: var(--primary-color);
    padding: 1rem 0;
    margin: 0;
    list-style: none;
    position: fixed;
    top: 55px;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 999;
    padding-top: 4rem;
    overflow-y: auto;
}

nav ul.nav-menu.active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.nav-menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(201, 17, 17, 0.1);
}

.nav-menu a {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.nav-menu li.active a {
    color: var(--accent-color);  
}

.nav-title {
    display: block;
    font-family: 'Creepster', cursive;
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
}

.nav-subtitle {
    display: block;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-top: -0.5rem;
}


/* Featured Section - Mobile First */
.featured-section {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--primary-color);
    border: 1px solid rgba(201, 17, 17, 0.1);
    border-radius: 8px;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.featured-content img {
    width: 100%;
}

/* Content Cards - Mobile First */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.content-card {
    background: linear-gradient(145deg, var(--secondary-color), var(--primary-color));
    border: 1px solid rgba(201, 17, 17, 0.1);
    border-radius: 8px;
    padding: 1rem;
}

/* Featured Content Controls */
.media-toggle {
    display: flex;
    width: 100%;
    background-color: var(--primary-color);
    padding: 0.25rem;
    border-radius: 8px;
    border: 1px solid var(--accent-color);
    margin: 1.5rem 0;
}

.toggle-btn {
    flex: 1;
    padding: 0.75rem;
    background: none;
    border: none;
    color: var(--text-color);
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.toggle-btn.active {
    background-color: var(--accent-color);
    color: var(--background-color);
}

/* Episode Action Buttons */
.episode-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0;
}

.episode-links a {
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem;
    background-color: var(--primary-color);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.episode-links svg {
    width: 40px;
    margin-right: .5rem;
 }

.episode-links a:active {
    transform: scale(0.98);
    background-color: var(--accent-color);
    color: var(--background-color);
}

.bracketed-container {
    position: relative;
    width: 100%;
    cursor: pointer;
    padding: 0;
    margin: 1rem 0;
}

.description-wrapper {
    border-left: 2px solid red;
    border-right: 2px solid red;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.description-wrapper.truncated .content {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.toggle-text {
    color: var(--accent-color);
    font-family: 'Archivo Black', sans-serif;
    font-size: 0.9em;
   text-align: center;
}

.episode-description:active {
    transform: scale(0.99);
}

.episode-description .content {
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.episode-description.expanded .content {
    max-height: 1000px; /* Or whatever height needed */
}

.footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 2rem 1rem;
    border-top: 1px solid var(--accent-color);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
    text-shadow: 0 0 2px var(--shadow-color);
}

.footer-container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-section {
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    font-family: 'Creepster', cursive;
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(201, 17, 17, 0.1);
}

.footer-links a {
    font-family: 'Archivo Black', sans-serif;
    display: block;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 0;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-tagline {
    margin-top: 3rem;
    text-align: center;
    font-family: 'Crimson Text', 'Times New Roman', serif;
    line-height: 1.6;
    color: var(--text-color);
    font-style: italic;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    border-left: 2px solid var(--accent-color);
    border-right: 2px solid var(--accent-color);
    border-radius: 10px;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(201, 17, 17, 0.1);
    text-align: center;
    font-size: 0.9rem;
    font-family: 'Archivo Black', sans-serif;
    letter-spacing: 1px;
}

/* Media Queries */

/* Small Mobile (390px and up) */
@media screen and (min-width: 390px) {
    h1 .top-line {
        font-size: 1.4rem;
        letter-spacing: 5px;
    }
    
    h1 .main-title {
        font-size: 2rem;
    }
    
    h1 .subtitle {
        font-size: 0.8rem;
        letter-spacing: 5px;
    }
}

/* Tablets (768px and up) */
@media screen and (min-width: 768px) {
    /* Top Bar */
    .top-bar {
        grid-template-columns: 1fr auto 1fr;
        padding: 0.5rem 2rem;
    }

    .social-links {
        display: flex;
        gap: 1rem;
        justify-self: center;
    }

    .search-wrapper {
        display: block;
        width: 250px;
        justify-self: end;
    }

    /* Hero */
    .hero-content {
        width: 90%;
        padding: 1.5rem;
    }
    
    h1 .top-line {
        font-size: 2rem;
        letter-spacing: 6px;
        margin-bottom: 0.8rem;
    }
    
    h1 .main-title {
        font-size: 4rem;
        letter-spacing: 3px;
    }
    
    h1 .subtitle {
        font-size: 1.2rem;
        letter-spacing: 12px;
        margin-top: 1rem;
    }

    /* Navigation */
    .hamburger {
        display: none;
    }

    nav ul.nav-menu {
        position: static;
        height: auto;
        display: flex;
        flex-direction: row;
        padding: 0;
        justify-content: center;
        gap: 2rem;
    }

    .nav-menu li {
        width: auto;
        border: none;
    }

    /* Featured Section */
    .featured-content {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }

    /* Content Grid */
    .content-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Laptops (1024px and up) */
@media screen and (min-width: 1024px) {
    .hero-content {
        width: 85%;
        max-width: 1200px;
    }
    
    h1 .top-line {
        font-size: 2.4rem;
        letter-spacing: 8px;
    }
    
    h1 .main-title {
        font-size: 5rem;
        transform: scaleY(2);
    }
    
    h1 .subtitle {
        font-size: 1.4rem;
        letter-spacing: 16px;
    }

    .content-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktops (1366px and up) */
@media screen and (min-width: 1366px) {
    h1 .top-line {
        font-size: 2.8rem;
    }
    
    h1 .main-title {
        font-size: 6rem;
    }
    
    h1 .subtitle {
        font-size: 1.6rem;
        letter-spacing: 20px;
    }
}

/* Large Desktops (1920px and up) */
@media screen and (min-width: 1920px) {
    .hero-content {
        max-width: 1400px;
    }
    
    h1 .top-line {
        font-size: 3rem;
    }
    
    h1 .main-title {
        font-size: 7rem;
    }
    
    h1 .subtitle {
        font-size: 1.8rem;
    }
}

/* Utility Classes */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}