/* Podcast Detail Page - Optimized for Performance */

:root {
    --primary-color: #6e00ff;
    --primary-gradient: linear-gradient(135deg, #6e00ff, #8b5cf6);
    --secondary-color: #f3f4f6;
    --accent-color: #1DB954;
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --card-bg: rgba(255, 255, 255, 0.98);
    --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 20px;
    --transition: all 0.2s ease;
}

/* Hero Section */
.podcast-detail-hero {
    display: flex;
    align-items: center;
    min-height: auto;
    padding: 0;
    position: relative;
    padding: 0 0 2rem 0;
    margin-top: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index:0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.9);
    transform: scale(1.05) translateZ(0);
    will-change: filter;
    contain: layout style paint;
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(110, 0, 255, 0.7) 0%,
        rgba(139, 92, 246, 0.6) 50%,
        rgba(0, 0, 0, 0.6) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 0 2rem 0;
    width: 100%;
}

.podcast-main-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.podcast-image-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.podcast-cover-image {
    width: 350px;
    height: 350px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    transition: var(--transition);
    will-change: transform;
}

.podcast-cover-image:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: var(--transition);
}

.podcast-image-container:hover .play-overlay {
    opacity: 1;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 2rem;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.play-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-medium);
}

.podcast-info {
    color: white;
}

.episode-badge {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    padding:0.5rem 1rem 0.3rem 1rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0;
    opacity: 1;
}

@media (max-width: 1024px) {
    .episode-badge {
        margin-bottom: 1rem;
    }

    .podcast-detail-hero {
        padding: 1rem 0 2rem 0;
    }

    .podcast-description-preview {
        margin-top: 1.5rem;
        padding: 0 1rem;
    }
}

.podcast-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 1rem 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    color: white;
    opacity: 1;
}

.podcast-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    opacity: 1;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

.meta-item i {
    color: #00ff51
}

.podcast-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    opacity: 1;
}

.podcast-tags .podcast-detail-tag {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.podcast-tags .podcast-detail-tag:hover {
    background: rgba(255, 255, 255, 0.35);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    opacity: 1;
}

.podcast-detail-btn-primary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--accent-color);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-medium);
}

.podcast-detail-btn-primary:hover {
    background: #1ed760;
    box-shadow: 0 15px 30px -5px rgba(29, 185, 84, 0.4);
    color: white;
}

.podcast-detail-btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.podcast-detail-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.podcast-content {
    padding: 4rem 0 6rem 0;
    position: relative;
    z-index: 2;
    margin-top: 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.podcast-detail-content-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.podcast-detail-content-card:hover {
    box-shadow: var(--shadow-medium);
}

.podcast-detail-content-card h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.podcast-detail-content-card h2 i {
    color: var(--primary-color);
}

.podcast-description {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1.1rem;
    display: inline;
}

.podcast-description ul,
.podcast-description ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.podcast-description li {
    margin-bottom: 0.5rem;
}

.read-more-link {
    display: inline;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
    position: relative;
    z-index: 999;
}

.read-more-link:hover {
    color: var(--primary-color-dark);
}

.podcast-detail-transcript-card {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.podcast-detail-transcript-container {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.podcast-detail-transcript-container::-webkit-scrollbar {
    width: 6px;
}

.podcast-detail-transcript-container::-webkit-scrollbar-track {
    background: transparent;
}

.podcast-detail-transcript-container::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.podcast-detail-transcript-content {
    line-height: 1.8;
    color: var(--text-primary);
    font-size: 1rem;
    padding-left: 1rem;
}
/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.podcast-detail-sidebar-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.podcast-detail-sidebar-card:hover {
    box-shadow: var(--shadow-medium);
}

.podcast-detail-sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e5e7eb;
}

.podcast-detail-sidebar-card h3 i {
    color: var(--primary-color);
}

.podcast-detail-guests-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.podcast-detail-guest-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(110, 0, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
}

.podcast-detail-guest-item:hover {
    background: rgba(110, 0, 255, 0.1);
}

.podcast-detail-guest-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
}

.podcast-detail-guest-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.podcast-detail-avatar-placeholder {
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.podcast-detail-guest-info h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.podcast-detail-guest-info p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

.podcast-detail-company-info {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.podcast-detail-company-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: var(--shadow-light);
    flex-shrink: 0;
}

.podcast-detail-company-details {
    flex: 1;
}

.podcast-detail-company-info h4 {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.podcast-detail-company-social {
    display: flex;
    flex-direction: column;
}

.podcast-detail-company-social a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.podcast-detail-company-social a:hover {
    color: var(--primary-color);
}

.podcast-detail-company-social a i {
    width: 16px;
    text-align: center;
}

/* Share Buttons */
.podcast-detail-share-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.podcast-detail-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.podcast-detail-share-btn.x-twitter {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: white;
}

.podcast-detail-share-btn.linkedin {
    background: linear-gradient(135deg, #0077B5, #005885);
    color: white;
}

.podcast-detail-share-btn.facebook {
    background: linear-gradient(135deg, #1877F2, #166fe5);
    color: white;
}

.podcast-detail-share-btn.copy {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.podcast-detail-share-btn:hover {
    box-shadow: var(--shadow-medium);
}

/* Related Podcasts */
.related-podcasts {
    padding: 4rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.related-podcasts h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.related-podcasts h2 i {
    color: var(--primary-color);
}

.podcast-detail-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.podcast-detail-related-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid rgba(255, 255, 255, 0.6);
    opacity: 1;
}

.podcast-detail-related-card:hover {
    box-shadow: var(--shadow-medium);
}

.podcast-detail-related-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.podcast-detail-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.podcast-detail-related-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(110, 0, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.podcast-detail-related-card:hover .podcast-detail-related-overlay {
    opacity: 1;
}

.podcast-detail-related-card:hover .podcast-detail-related-image img {
    opacity: 0.8;
}

.podcast-detail-related-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: var(--transition);
}

.podcast-detail-related-link:hover {
    background: white;
}

.podcast-detail-related-info {
    padding: 1.5rem;
}

.podcast-detail-related-episode {
    display: inline-block;
    background: var(--primary-gradient);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.podcast-detail-related-info h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
}

.podcast-detail-related-meta {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.podcast-detail-related-meta i {
    color: var(--primary-color);
}

/* Floating Player */
.podcast-detail-floating-player {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 1rem 1.5rem;
    z-index: 1000;
    transition: var(--transition);
    min-width: 300px;
}

.podcast-detail-floating-player.visible {
    bottom: 2rem;
}

.podcast-detail-player-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.podcast-detail-player-info {
    display: flex;
    flex-direction: column;
}

.podcast-detail-player-title {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.podcast-detail-player-duration {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.podcast-detail-player-play-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.podcast-detail-player-play-btn:hover {
    background: #1ed760;
    color: white;
}


.footer{
    padding-top: 0 !important;
}
.podcast-description ul li{
    list-style-type: unset;
}
.podcast-detail-transcript-content ul li{
    list-style-type: unset;
    margin-left: 2rem;
}

.podcast-description-preview {
    margin-top: 2rem;
    margin-bottom: 1rem;
}


.podcast-description-preview div {
    overflow: hidden;
    position: relative;
    color: #fff;
}

.podcast-description-preview .podcast-description {
    padding: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
}

.podcast-bg-container .space-bg{
    height: 100% !important;
    width: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.podcast-space-bg-img-wrapper {
    position: absolute !important;
    left: 0;
    width: 100%;
    height: calc(100% + 210px);
    z-index: 0;
    top: -210px;
    overflow: hidden;
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        grid-row: 1;
    }

    .podcast-main-info {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .podcast-cover-image {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .podcast-title {
        font-size: 2rem;
    }

    .podcast-cover-image {
        width: 200px;
        height: 200px;
    }

    .podcast-meta {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .meta-item {
        background: rgba(255, 255, 255, 0.15);
        padding: 0.75rem 1rem;
        border-radius: 25px;
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        font-size: 1rem;
        font-weight: 600;
    }

    .podcast-tags {
        justify-content: center;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .podcast-tags .podcast-detail-tag {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: fit-content;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .podcast-detail-content-card,
    .podcast-detail-sidebar-card {
        padding: 1.5rem;
    }

    .podcast-detail-related-grid {
        grid-template-columns: 1fr;
    }

    .podcast-detail-share-buttons {
        grid-template-columns: repeat(4, 1fr);
    }

    .podcast-detail-floating-player {
        left: 1rem;
        right: 1rem;
        transform: none;
        min-width: auto;
    }

    .podcast-detail-hero {
        padding: 1rem 0 1.5rem 0;
    }

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

    .podcast-description-preview .podcast-description {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .podcast-content {
        padding: 2rem 0 4rem 0;
    }
}

@media (max-width: 480px) {
    .podcast-detail-hero {
        padding: 1rem 0 1rem 0;
    }

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

    .podcast-cover-image {
        width: 180px;
        height: 180px;
    }

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

    .podcast-detail-content-card,
    .podcast-detail-sidebar-card {
        padding: 1rem;
    }

    .podcast-detail-btn-primary,
    .podcast-detail-btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .podcast-description-preview {
        margin-top: 1rem;
    }
}
