/* Podcast Slider Layout - Based on CodePen expandable card slider */

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap");

.podcast-page {
    min-height: 100vh;
    background: var(--background-color);
    padding-top: 0;
}

/* Hero content overlay styling */
.hero-content-overlay {
    pointer-events: none;
}

.hero-content-overlay .podcast-platforms {
    pointer-events: auto;
}

.hero-content-overlay .podcast-platform-btn {
    pointer-events: auto;
}

/* Podcast Gradient Container - Black to White transition */
.podcast-gradient-container {
    background: linear-gradient(to bottom, #000 0%, #fff 100%);
}

/* Scroll Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation delays */
.animate-on-scroll.stagger-1 { transition-delay: 0.1s; }
.animate-on-scroll.stagger-2 { transition-delay: 0.2s; }
.animate-on-scroll.stagger-3 { transition-delay: 0.3s; }
.animate-on-scroll.stagger-4 { transition-delay: 0.4s; }
.animate-on-scroll.stagger-5 { transition-delay: 0.5s; }
.animate-on-scroll.stagger-6 { transition-delay: 0.6s; }

/* Search Section */
.podcast-controls {
    padding: 40px 50px 20px;
    max-width: 1400px;
    margin: 0 auto;
    background: transparent;
}

.podcast-search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 20px;
}

.podcast-search-input {
    width: 100%;
    padding: 14px 20px 14px 50px;
    background: rgba(31, 31, 31, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--secondary-color);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.podcast-search-input:focus {
    border-color: #fdbb2b;
    background: rgba(31, 31, 31, 0.95);
}

.podcast-search-input::placeholder {
    color: rgba(229, 229, 229, 0.5);
}

.podcast-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(229, 229, 229, 0.6);
    font-size: 18px;
    pointer-events: none;
}

.podcast-results-count {
    text-align: center;
    color: var(--text-color);
    font-size: 14px;
    opacity: 0.7;
}

/* Podcast Section - Based on CodePen game-section */
.podcast-section {
    padding: 60px 50px;
    background: transparent;
}

.podcast-section .line-title {
    position: relative;
    width: 400px;
    margin-bottom: 48px;
    padding-bottom: 16px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--secondary-color);
}

.podcast-section .line-title::before,
.podcast-section .line-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    border-radius: 2px;
}

.podcast-section .line-title::before {
    width: 100%;
    background: #f2f2f2;
}

.podcast-section .line-title::after {
    width: 32px;
    background: #fdbb2b;
}

/* Custom Carousel Container */
.podcast-carousel {
    margin: 15px 0;
    display: flex;
    display: -webkit-flex;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(253, 187, 43, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
}

.podcast-carousel::-webkit-scrollbar {
    height: 8px;
}

.podcast-carousel::-webkit-scrollbar-track {
    background: transparent;
}

.podcast-carousel::-webkit-scrollbar-thumb {
    background: rgba(253, 187, 43, 0.3);
    border-radius: 4px;
}

.podcast-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(253, 187, 43, 0.5);
}

/* Episode Item - Based on CodePen .item */
.podcast-item {
    margin: 0 15px 60px;
    width: 320px;
    height: 400px;
    display: flex;
    display: -webkit-flex;
    align-items: flex-end;
    -webkit-align-items: flex-end;
    background: #343434 no-repeat center center / cover;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease-in-out, opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.4s ease-in-out, opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    flex-shrink: 0;
}

.podcast-item:hover,
.podcast-item.active {
    width: 500px;
    box-shadow: 12px 40px 40px rgba(0, 0, 0, 0.25);
    -webkit-box-shadow: 12px 40px 40px rgba(0, 0, 0, 0.25);
}

.podcast-item:after {
    content: "";
    display: block;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 1));
    z-index: 1;
    border-radius: 16px;
    overflow: hidden;
    pointer-events: none;
}

.podcast-item-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    text-decoration: none;
}

/* Item Description - Based on CodePen .item-desc */
.podcast-item-desc {
    padding: 0 20px 12px;
    color: #fff;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    overflow: visible;
    transform: translateY(calc(100% - 200px));
    -webkit-transform: translateY(calc(100% - 200px));
    transition: all 0.4s ease-in-out;
    -webkit-transition: all 0.4s ease-in-out;
    width: 100%;
    box-sizing: border-box;
    min-height: 200px;
}

.podcast-item:hover .podcast-item-desc,
.podcast-item.active .podcast-item-desc {
    transform: none;
    -webkit-transform: none;
}

.podcast-item-desc h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 700;
    color: #fff;
    padding-top: 0;
    overflow: visible;
    word-wrap: break-word;
    hyphens: auto;
    transition: font-size 0.3s ease;
}

.podcast-item:hover .podcast-item-desc h3,
.podcast-item.active .podcast-item-desc h3 {
    font-size: 26px;
}

.podcast-item-desc p {
    opacity: 0;
    -webkit-transform: translateY(32px);
    transform: translateY(32px);
    transition: all 0.4s ease-in-out 0.2s;
    -webkit-transition: all 0.4s ease-in-out 0.2s;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
}

.podcast-item:hover .podcast-item-desc p,
.podcast-item.active .podcast-item-desc p {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

/* Empty State */
.podcast-empty {
    text-align: center;
    padding: 100px 40px;
    color: var(--text-color);
    display: none;
}

.podcast-empty-icon {
    font-size: 64px;
    margin-bottom: 24px;
    opacity: 0.3;
}

.podcast-empty-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.podcast-empty-text {
    font-size: 16px;
    opacity: 0.7;
    max-width: 500px;
    margin: 0 auto;
}

/* Loading State */
.podcast-loading {
    text-align: center;
    padding: 100px 40px;
    color: var(--text-color);
}

/* Subscribe Platforms Section - Hero */
.podcast-subscribe-platforms-section {
    min-height: 100vh;
    background: #000;
    margin-top: 0;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

#home-animation-wrapper {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    cursor: pointer;
}

#home-animation-wrapper svg {
    width: 100%;
    max-height: 90%;
    height: auto;
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#svg-texts #main-title {
    transform-origin: center center;
}

#svg-texts #subtitle-text {
    transform-origin: right center;
}

#home-animation-wrapper .slides {
    display: none;
}

#home-animation-wrapper #bubbles path {
    fill: #fdbb2b;
}

.hero-content-overlay {
    position: absolute;
    bottom: 80px;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 50px;
}

.podcast-subscribe-heading {
    font-size: clamp(18px, 2.5vw, 24px);
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 50px;
    line-height: 1.4;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.podcast-platforms {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.podcast-platform-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 160px;
    justify-content: center;
}

.podcast-platform-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-2px);
}

.podcast-platform-btn:hover .platform-icon {
    transform: scale(1.1);
    color: #000;
}

.platform-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #fff;
}

.platform-icon i {
    font-size: 20px;
}

.platform-icon svg {
    width: 100%;
    height: 100%;
}

.platform-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 767px) {
    .podcast-subscribe-platforms-section {
        min-height: 100vh;
    }
    
    .hero-content-overlay {
        padding: 0 20px;
        bottom: 60px;
    }
    
    .podcast-subscribe-heading {
        margin-bottom: 30px;
        font-size: 14px;
    }
    
    .podcast-platforms {
        gap: 15px;
    }
    
    .podcast-platform-btn {
        min-width: 140px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .platform-icon {
        width: 20px;
        height: 20px;
    }
    
    .platform-icon i {
        font-size: 18px;
    }
    
    #home-animation-wrapper svg {
        max-height: 60%;
        top: 40%;
    }
    
    #svg-texts #subtitle-text {
        font-size: 120px !important;
    }
}

/* Testimonials Section */
.podcast-testimonials-section {
    padding: 80px 50px;
    background: #fff;
    margin-top: 0;
}

.podcast-testimonials-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.podcast-testimonials-section .line-title {
    color: #000;
    margin-bottom: 48px;
}

.podcast-testimonials-section .line-title::before {
    background: #e5e5e5;
}

.podcast-testimonials-section .line-title::after {
    background: #000;
}

.testimonials-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.testimonials-carousel {
    display: flex;
    gap: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.testimonial-quote {
    font-size: 20px;
    font-weight: 700;
    color: #000;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.testimonial-body {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.testimonial-author {
    font-size: 12px;
    font-weight: 400;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.testimonials-nav-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: #000;
    cursor: pointer;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.testimonials-nav-btn:hover:not(:disabled) {
    opacity: 0.6;
}

.testimonials-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

.testimonials-nav-btn span {
    display: block;
    line-height: 1;
}

@media (max-width: 767px) {
    .podcast-testimonials-section {
        padding: 60px 20px;
    }
    
    .testimonials-carousel-wrapper {
        gap: 10px;
    }
    
    .testimonial-card {
        flex: 0 0 260px;
    }
    
    .testimonial-quote {
        font-size: 18px;
    }
    
    .testimonial-body {
        font-size: 14px;
        -webkit-line-clamp: 3;
    }
    
    .testimonials-nav-btn {
        font-size: 24px;
        width: 30px;
        height: 30px;
        padding: 5px;
    }
}

/* Suggest a Topic Form Section */
.podcast-suggest-section {
    padding: 80px 50px;
    background: rgba(31, 31, 31, 0.4);
    margin-top: 60px;
}

.podcast-suggest-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.podcast-suggest-subtitle {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 40px;
    text-align: center;
    opacity: 0.9;
}

.podcast-suggest-form {
    margin-top: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(31, 31, 31, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--secondary-color);
    font-size: 16px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #fdbb2b;
    background: rgba(31, 31, 31, 0.95);
    box-shadow: 0 0 0 4px rgba(253, 187, 43, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(229, 229, 229, 0.4);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.podcast-submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: #fdbb2b;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.podcast-submit-btn:hover:not(:disabled) {
    background: #ffc94d;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 187, 43, 0.3);
}

.podcast-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.form-message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

@media (max-width: 767px) {
    .podcast-suggest-section {
        padding: 60px 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .podcast-suggest-subtitle {
        font-size: 16px;
    }
}

/* Responsive CSS - Based on CodePen responsive styles */

@media (min-width: 992px) and (max-width: 1199px) {
    .podcast-section {
        padding: 50px 30px;
    }
    
    .podcast-section .line-title {
        margin-bottom: 32px;
        width: 330px;
    }
    
    .podcast-item {
        margin: 0 12px 60px;
        width: 260px;
        height: 360px;
    }
    
    .podcast-item:hover,
    .podcast-item.active {
        width: 400px;
    }
    
    .podcast-item-desc {
        transform: translateY(calc(100% - 180px));
        -webkit-transform: translateY(calc(100% - 180px));
        min-height: 180px;
    }
    
    .podcast-item-desc h3 {
        font-size: 16px;
        line-height: 1.35;
    }
    
    .podcast-item:hover .podcast-item-desc h3,
    .podcast-item.active .podcast-item-desc h3 {
        font-size: 22px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .podcast-section {
        padding: 50px 30px 40px;
    }
    
    .podcast-section .line-title {
        margin-bottom: 32px;
        width: 330px;
    }
    
    .podcast-item {
        margin: 0 12px 60px;
        width: 240px;
        height: 330px;
    }
    
    .podcast-item:hover,
    .podcast-item.active {
        width: 360px;
    }
    
    .podcast-item-desc {
        transform: translateY(calc(100% - 160px));
        -webkit-transform: translateY(calc(100% - 160px));
        min-height: 160px;
    }
    
    .podcast-item-desc h3 {
        font-size: 15px;
        line-height: 1.35;
    }
    
    .podcast-item:hover .podcast-item-desc h3,
    .podcast-item.active .podcast-item-desc h3 {
        font-size: 20px;
    }
}

@media (max-width: 767px) {
    .podcast-header {
        padding: 40px 20px 30px;
    }
    
    .podcast-controls {
        padding: 30px 20px 20px;
    }
    
    .podcast-section {
        padding: 30px 15px 20px;
    }
    
    .podcast-section .line-title {
        margin-bottom: 20px;
        width: 250px;
        font-size: 18px;
    }
    
    .podcast-item {
        margin: 0 10px 40px;
        width: 200px;
        height: 280px;
    }
    
    .podcast-item:hover,
    .podcast-item.active {
        width: 270px;
        box-shadow: 6px 10px 10px rgba(0, 0, 0, 0.25);
        -webkit-box-shadow: 6px 10px 10px rgba(0, 0, 0, 0.25);
    }
    
    .podcast-item-desc {
        padding: 8px 12px 5px;
        transform: translateY(calc(100% - 140px));
        -webkit-transform: translateY(calc(100% - 140px));
        min-height: 140px;
    }
    
    .podcast-item-desc h3 {
        font-size: 14px;
        line-height: 1.3;
    }
    
    .podcast-item:hover .podcast-item-desc h3,
    .podcast-item.active .podcast-item-desc h3 {
        font-size: 17px;
    }
    
    .podcast-item-desc p {
        font-size: 13px;
    }
}

/* Episode detail modal – slides up from below */
.episode-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    box-sizing: border-box;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
}

.episode-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.episode-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-modal.is-open .episode-modal-backdrop {
    opacity: 1;
}

.episode-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    background: #1a1a1a;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}

.episode-modal.is-open .episode-modal-content {
    transform: translateY(0);
}

.episode-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s ease;
}

.episode-modal-close:hover {
    background: rgba(0, 0, 0, 0.85);
}

.episode-modal-image-wrap {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #343434;
    flex-shrink: 0;
}

.episode-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.episode-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

.episode-modal-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #fff;
}

.episode-modal-description {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.55;
    color: rgba(229, 229, 229, 0.9);
}

.episode-modal-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: #fdbb2b;
    color: #000;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.episode-modal-watch-btn:hover {
    background: #ffc94d;
    transform: translateY(-2px);
}
