/* ===========================
   EPISODES PAGE STYLES
   =========================== */

.episodes-page {
    background: #0a0a0a;
    color: #ffffff;
}

/* ===========================
   EPISODES HERO
   =========================== */
.episodes-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #141E30 0%, #243B55 100%);
    overflow: hidden;
    padding-top: 80px;
}

.episodes-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1" fill="white" opacity="0.1"/></svg>');
    background-size: 60px 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.5) 100%);
}

.episodes-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.badge-new {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    animation: pulse 2s infinite;
}

.episodes-hero-title {
    font-size: 5rem;
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease;
}

.gradient-text {
    background: linear-gradient(90deg, #FFE66D, #FF6B6B, #4ECDC4);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 100% center; }
}

.episodes-hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-features span {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-features span:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ===========================
   EPISODES SECTION
   =========================== */
.episodes-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.episodes-section .section-header {
    margin-bottom: 4rem;
}

.episodes-section .section-header h2 {
    color: white;
    font-size: 3rem;
}

.episodes-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.episodes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.episode-card {
    background: #1e1e1e;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.episode-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.3);
}

.episode-number {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 107, 107, 0.5);
}

.episode-number span {
    display: block;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
}

.episode-number strong {
    display: block;
    font-size: 1.8rem;
    color: #FF6B6B;
    font-weight: 900;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    /* Optimize for mobile */
    max-width: 100%;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.episode-card:hover .play-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 107, 107, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 40px rgba(255, 107, 107, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.episode-card:hover .play-button {
    transform: scale(1.1);
}

/* Video Thumbnail (for non-embeddable videos) */
.video-thumbnail-link {
    display: block;
    position: relative;
    text-decoration: none;
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    cursor: pointer;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Optimize image loading on mobile */
    max-width: 100%;
    height: auto;
    loading: lazy;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-thumbnail-link:hover .thumbnail-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button-large {
    transition: transform 0.3s ease;
}

.video-thumbnail-link:hover .play-button-large {
    transform: scale(1.15);
}

.watch-on-youtube-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.video-thumbnail-link:hover .watch-on-youtube-badge {
    background: #FF0000;
    border-color: #FF0000;
    transform: translateY(-3px);
}

.episode-info {
    padding: 2.5rem;
}

.episode-info h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 700;
}

.episode-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.episode-meta span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.duration {
    color: #4ECDC4 !important;
}

.views {
    color: #FFE66D !important;
}

.episode-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.3);
    text-decoration: none;
}

.watch-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 107, 0.5);
}

/* ===========================
   CTA SECTION
   =========================== */
.episodes-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.episodes-cta::before {
    content: '💝';
    position: absolute;
    font-size: 300px;
    opacity: 0.05;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.episodes-cta .cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.episodes-cta h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.episodes-cta p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* ===========================
   SUBSCRIBE SECTION
   =========================== */
.subscribe-section {
    padding: 5rem 0;
    background: #1a1a1a;
}

.subscribe-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    background: #252525;
    padding: 4rem 3rem;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.subscribe-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: ring 2s infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.subscribe-box h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
}

.subscribe-box > p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.subscribe-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    background: #1a1a1a;
    padding: 0.5rem;
    border-radius: 60px;
}

.subscribe-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: white;
    font-size: 1rem;
    outline: none;
}

.subscribe-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.subscribe-form .btn {
    padding: 1rem 2rem;
    white-space: nowrap;
}

.subscribe-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 15px;
    display: none;
}

.subscribe-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid #4CAF50;
    display: block;
}

.social-links {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links > p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: #FF0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.3);
}

.social-link.youtube:hover {
    background: #FF0000;
}

/* ===========================
   NAVBAR OVERRIDE FOR DARK THEME
   =========================== */
.episodes-page .navbar {
    background: rgba(10, 10, 10, 0.95);
}

.episodes-page .nav-links a {
    color: rgba(255, 255, 255, 0.8);
}

.episodes-page .nav-links a:hover,
.episodes-page .nav-links a.active {
    color: #FF6B6B;
}

.episodes-page .logo {
    color: #FF6B6B;
}

.episodes-page .mobile-menu-toggle span {
    background: #FF6B6B;
}

/* Enhanced Apply button on dark background */
.episodes-page .btn-apply {
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5);
}

.episodes-page .btn-apply:hover {
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.6);
}

/* ===========================
   FOOTER OVERRIDE
   =========================== */
.episodes-page .footer {
    background: #0a0a0a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 768px) {
    .episodes-hero-title {
        font-size: 3rem;
        padding: 0 1rem;
    }

    .episodes-hero-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }

    .hero-features {
        gap: 1rem;
        padding: 0 1rem;
    }

    .hero-features span {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .badge-new {
        margin-bottom: 1rem;
    }

    .episodes-section .section-header h2 {
        font-size: 2rem;
    }

    .episodes-section .section-subtitle {
        font-size: 1rem;
    }

    .episodes-grid {
        gap: 3rem;
    }

    .episode-card {
        border-radius: 20px;
    }

    .episode-info {
        padding: 2rem 1.5rem;
    }

    .episode-info h3 {
        font-size: 1.5rem;
    }

    .episode-description {
        font-size: 1rem;
    }

    .watch-btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }

    .episodes-cta h2 {
        font-size: 2rem;
    }

    .episodes-cta p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }

    .btn-large {
        width: 100%;
        max-width: 300px;
    }

    .subscribe-box {
        padding: 3rem 2rem;
        border-radius: 20px;
    }

    .subscribe-box h3 {
        font-size: 2rem;
    }

    .subscribe-box > p {
        font-size: 1rem;
    }

    .subscribe-form {
        flex-direction: column;
        border-radius: 20px;
        padding: 1rem;
        gap: 0.8rem;
    }

    .subscribe-form input {
        padding: 1rem 1.5rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .subscribe-form .btn {
        width: 100%;
        padding: 1rem 2rem;
    }

    .social-link {
        font-size: 0.9rem;
        padding: 0.7rem 1.2rem;
    }

    /* Dark nav menu for episodes page */
    .episodes-page .nav-links {
        background: #1a1a1a;
    }
}

@media (max-width: 480px) {
    .episodes-hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .episodes-hero-subtitle {
        font-size: 1rem;
    }

    .badge-new {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }

    .hero-features span {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .episode-number {
        padding: 0.6rem 1rem;
        top: 15px;
        left: 15px;
    }

    .episode-number span {
        font-size: 0.65rem;
    }

    .episode-number strong {
        font-size: 1.5rem;
    }

    .episode-info {
        padding: 1.5rem 1.2rem;
    }

    .episode-info h3 {
        font-size: 1.3rem;
    }

    .episode-meta {
        font-size: 0.85rem;
        gap: 1rem;
    }

    .episode-description {
        font-size: 0.95rem;
    }

    .watch-btn {
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    .episodes-cta h2 {
        font-size: 1.8rem;
    }

    .subscribe-box {
        padding: 2rem 1.5rem;
    }

    .subscribe-box h3 {
        font-size: 1.8rem;
    }

    .subscribe-icon {
        font-size: 3rem;
    }

    .subscribe-form input {
        padding: 0.9rem 1.2rem;
    }

    .subscribe-form .btn {
        padding: 0.9rem 1.5rem;
    }

    .watch-on-youtube-badge {
        bottom: 10px;
        right: 10px;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }

    .play-button-large svg {
        width: 60px;
        height: 60px;
    }

    .episodes-grid {
        gap: 2.5rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .episodes-hero-title {
        font-size: 2rem;
    }

    .episodes-section .section-header h2 {
        font-size: 1.8rem;
    }

    .episode-card {
        border-radius: 15px;
    }

    .episode-info {
        padding: 1.2rem 1rem;
    }

    .episode-info h3 {
        font-size: 1.2rem;
    }

    .episodes-cta h2 {
        font-size: 1.6rem;
    }

    .subscribe-box {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    .subscribe-box h3 {
        font-size: 1.6rem;
    }

    .watch-on-youtube-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }

    .play-button-large svg {
        width: 50px;
        height: 50px;
    }

    .social-link {
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }
}

