/* Episodes page specific styles */

/* Hero section for episodes page */
#hero {
    background-image: url('../images/bg/bg7.webp');
    background-size: cover;
    background-position: center;
    position: relative;
    min-height: 60vh;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,51,102,0.7));
}

/* Section separators */
section:not(:last-of-type)::after {
    content: '';
    display: block;
    width: 90%;
    height: 1px;
    margin: 2rem auto 0;
    background: linear-gradient(to right, transparent, rgba(0, 115, 230, 0.5), transparent);
}

/* Section heading enhancements */
section h2 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2.5rem;
}

section h2::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #0073e6, #00ffff);
    border-radius: 3px;
}

/* Custom styles for each content type */
.betcast-grid .episode-card {
    border-left: 3px solid #00ffff;
}

.betcast-grid .episode-card::before {
    background: linear-gradient(135deg, rgba(0, 255, 255, 0.1), transparent 70%);
}

.betcast-grid .episode-card:hover {
    border-color: #00ffff;
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2);
}

.podcast-grid .episode-card {
    border-left: 3px solid #0073e6;
}

.podcast-grid .episode-card::before {
    background: linear-gradient(135deg, rgba(0, 115, 230, 0.1), transparent 70%);
}

.podcast-grid .episode-card:hover {
    border-color: #0073e6;
    box-shadow: 0 15px 30px rgba(0, 115, 230, 0.2);
}

.shorts-grid .episode-card {
    border-left: 3px solid #ff6600;
}

.shorts-grid .episode-card::before {
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1), transparent 70%);
}

.shorts-grid .episode-card:hover {
    border-color: #ff6600;
    box-shadow: 0 15px 30px rgba(255, 102, 0, 0.2);
}

/* LIVE section styles */
.live-grid .episode-card {
    border-left: 3px solid #ff0000;
}

.live-grid .episode-card::before {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.1), transparent 70%);
}

.live-grid .episode-card:hover {
    border-color: #ff0000;
    box-shadow: 0 15px 30px rgba(255, 0, 0, 0.2);
}

.live-grid .video-duration {
    background-color: rgba(255, 0, 0, 0.8);
    color: #fff;
}

/* BoxBox section styles */
.boxbox-grid .episode-card {
    border-left: 3px solid #FD4BC7;
}

.boxbox-grid .episode-card::before {
    background: linear-gradient(135deg, rgba(253, 75, 199, 0.1), transparent 70%);
}

.boxbox-grid .episode-card:hover {
    border-color: #FD4BC7;
    box-shadow: 0 15px 30px rgba(253, 75, 199, 0.2);
}

.boxbox-grid .video-duration {
    background-color: rgba(253, 75, 199, 0.8);
    color: #fff;
}

/* Duration tags */
.betcast-grid .video-duration {
    background-color: rgba(0, 255, 255, 0.8);
    color: #000;
}

.podcast-grid .video-duration {
    background-color: rgba(0, 115, 230, 0.8);
    color: #fff;
}

.shorts-grid .video-duration {
    background-color: rgba(255, 102, 0, 0.8);
    color: #fff;
}

/* Live indicator badge */
.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff0000;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 2;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Animation for the CTA button */
.cta-button {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%);
    transition: left 0.5s ease-in-out;
}

.cta-button:hover::after {
    left: 100%;
}

/* Category labels */
section p.text-muted {
    font-size: 1rem;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

/* Enhanced responsive layout */
@media (max-width: 991.98px) {
    .episode-card {
        margin-bottom: 2rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 767.98px) {
    #hero {
        min-height: 50vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    section p.text-muted {
        font-size: 0.9rem;
        margin-top: -1rem;
    }
}

@media (max-width: 575.98px) {
    .episode-card {
        margin-bottom: 1.5rem;
    }

    section h2 {
        font-size: 1.5rem;
    }
}

/* Base Navbar Styling (can be reused from main site) */
.custom-dropdown {
    position: relative;
}

.custom-dropdown-toggle {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dropdown-icon {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    background: rgba(0, 10, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 115, 230, 0.3);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

.custom-dropdown.open .custom-dropdown-menu {
    display: block;
}

.dropdown-item {
    color: #e0e0e0;
    padding: 0.6rem 1.5rem;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
    display: block;
    text-decoration: none;
}

.dropdown-item:hover, .dropdown-item:focus {
    color: #ffffff;
    background-color: rgba(0, 115, 230, 0.1);
    padding-left: 1.8rem;
}

.dropdown-item:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.8rem;
    width: 5px;
    height: 5px;
    background: #00ffff;
    border-radius: 50%;
    transform: translateY(-50%);
}

/* Highlight the active dropdown item */
.dropdown-item.active-item {
    background-color: rgba(0, 115, 230, 0.2);
    color: #00ffff;
}

/* BetCast highlight */
.betcast-item {
    background: linear-gradient(90deg, rgba(0, 115, 230, 0.1), transparent);
    border-left: 2px solid #0073e6;
}

/* Mobile Specific Styling */
@media (max-width: 991.98px) {
    .navbar-collapse {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 10, 30, 0.95);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
        z-index: 1000;
        max-height: calc(100vh - 76px);
        overflow-y: auto;
    }

    .navbar-collapse.show {
        display: block;
    }

    .custom-dropdown-menu {
        position: static;
        background: rgba(0, 15, 40, 0.5);
        border: none;
        border-left: 1px solid rgba(0, 115, 230, 0.3);
        border-radius: 0;
        box-shadow: none;
        padding-left: 1rem;
        margin: 0.5rem 0;
        width: 100%;
    }

    .dropdown-item {
        padding: 0.5rem 1rem;
    }

    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-item {
        margin-bottom: 0.5rem;
    }

    .custom-dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
}

#hero {
    min-height: 25vh; /* Reduced from 60vh to about 1/3 of the size */
    padding: 4rem 0; /* Reduced padding */
}

.hero-content {
    padding: 1rem 0; /* Reduced padding */
}

.hero-content h1 {
    font-size: 2.5rem; /* Slightly reduced font size */
    margin-bottom: 0.5rem; /* Reduced margin */
}

.hero-content p {
    font-size: 1.2rem; /* Slightly reduced font size */
    margin-bottom: 1rem; /* Reduced margin */
}

/* Mobile adjustments for the smaller hero */
@media (max-width: 767.98px) {
    #hero {
        min-height: 20vh; /* Even smaller on mobile */
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }
}

/* Very small screens */
@media (max-width: 575.98px) {
    #hero {
        min-height: 18vh;
        padding: 2.5rem 0;
    }
}