/**
 * Single Podcast Episode Page - Full Width Design
 * Keeps original audio player styling
 *
 * @package SMX_Pages
 */

/* Full width container */
.smx-podcast-single {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Spline Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #090213;
    color: #ffffff;
    line-height: 1.7;
}

/* Hero background that spans full width */
.smx-podcast-single__hero {
    width: 100%;
    background: linear-gradient(135deg, rgba(9, 2, 19, 0.95) 0%, rgba(138, 43, 226, 0.7) 50%, rgba(9, 2, 19, 0.98) 100%);
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}

.smx-podcast-single__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(9, 2, 19, 0.85) 0%, 
        rgba(138, 43, 226, 0.6) 50%, 
        rgba(9, 2, 19, 0.95) 100%);
    z-index: 1;
}

/* Content container with max width */
.smx-podcast-single__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.smx-podcast-single__article {
    background: rgba(138, 43, 226, 0.05);
    border-radius: 25px;
    overflow: hidden;
    border: 1px solid rgba(138, 43, 226, 0.1);
    backdrop-filter: blur(10px);
    margin-top: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.smx-podcast-single__header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: clamp(2rem, 4vw, 3rem);
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.15), rgba(24, 32, 50, 0.95));
    border-bottom: 1px solid rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(10px);
}

.smx-podcast-single__image {
    width: clamp(220px, 32vw, 320px);
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(138, 43, 226, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.smx-podcast-single__image:hover {
    transform: scale(1.02);
}

.smx-podcast-single__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.smx-podcast-single__image--placeholder {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.3), rgba(9, 2, 19, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
}

.smx-podcast-single__image--placeholder::before {
    content: '🎙️';
    font-size: 4rem;
    opacity: 0.5;
}

.smx-podcast-single__header-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.smx-podcast-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.smx-podcast-single__date {
    color: rgba(255, 255, 255, 0.7);
}

.smx-podcast-single__duration {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    background: rgba(138, 43, 226, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 999px;
    color: #8a2be2;
    font-weight: 600;
    font-size: 0.8125rem;
}

.smx-podcast-single__views {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.8125rem;
}

.smx-podcast-single__title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.smx-podcast-single__presenter {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}

.smx-podcast-single__presenter strong {
    color: #ffffff;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.smx-podcast-single__player {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.smx-podcast-single-audio {
    display: none; /* Hidden, we use custom player */
}

/* Modern Player Styles - KEPT EXACTLY AS ORIGINAL */
.smx-modern-player {
    background: rgba(9, 2, 19, 0.95);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.smx-modern-player__controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.smx-modern-player__play-pause {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8a2be2 0%, #6a1cb8 100%);
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(138, 43, 226, 0.4);
}

.smx-modern-player__play-pause:hover {
    background: linear-gradient(135deg, #6a1cb8 0%, #8a2be2 100%);
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(138, 43, 226, 0.5);
}

.smx-modern-player__play-pause:active {
    transform: scale(0.98);
}

.smx-modern-player__play-icon,
.smx-modern-player__pause-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.smx-modern-player__play-icon {
    display: flex;
}

.smx-modern-player__pause-icon {
    display: none;
}

.smx-modern-player__play-pause.is-playing .smx-modern-player__play-icon {
    display: none;
}

.smx-modern-player__play-pause.is-playing .smx-modern-player__pause-icon {
    display: flex;
}

.smx-modern-player__progress-container {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.smx-modern-player__progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 999px;
    cursor: pointer;
    transition: height 0.2s ease;
}

.smx-modern-player__progress-bar:hover {
    height: 8px;
}

.smx-modern-player__progress-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(135deg, #8a2be2, #6a1cb8);
    border-radius: 999px;
    width: 0%;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.5);
}

.smx-modern-player__progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    background: #fff;
    border: 2px solid #8a2be2;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.1s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: grab;
}

.smx-modern-player__progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

.smx-modern-player__progress-bar:hover .smx-modern-player__progress-handle,
.smx-modern-player__progress-bar:focus .smx-modern-player__progress-handle {
    opacity: 1;
}

.smx-modern-player__time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
}

.smx-modern-player__time-current {
    color: #ffffff;
}

.smx-modern-player__time-separator {
    color: rgba(255, 255, 255, 0.7);
    opacity: 0.5;
}

.smx-modern-player__volume-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.smx-modern-player__volume-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.smx-modern-player__volume-btn:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: #8a2be2;
    color: #8a2be2;
}

.smx-modern-player__volume-icon,
.smx-modern-player__volume-mute-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.smx-modern-player__volume-mute-icon {
    display: none;
}

.smx-modern-player__volume-btn.is-muted .smx-modern-player__volume-icon {
    display: none;
}

.smx-modern-player__volume-btn.is-muted .smx-modern-player__volume-mute-icon {
    display: flex;
}

.smx-modern-player__volume-slider {
    width: 0;
    overflow: hidden;
    transition: width 0.3s ease;
}

.smx-modern-player__volume-container:hover .smx-modern-player__volume-slider {
    width: 80px;
}

.smx-modern-player__volume-bar {
    position: relative;
    width: 80px;
    height: 4px;
    background: rgba(138, 43, 226, 0.2);
    border-radius: 999px;
    cursor: pointer;
}

.smx-modern-player__volume-filled {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #8a2be2;
    border-radius: 999px;
    width: 100%;
    transition: width 0.1s ease;
}

.smx-podcast-single__share {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(138, 43, 226, 0.2);
}

.smx-share-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.smx-share-section__title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.smx-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.smx-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.125rem;
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.3);
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.smx-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: currentColor;
}

.smx-share-btn:active {
    transform: translateY(0);
}

.smx-share-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.smx-share-btn__label {
    white-space: nowrap;
}

/* Social buttons - updated colors for dark theme */
.smx-share-btn--facebook {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.3);
}

.smx-share-btn--facebook:hover {
    background: rgba(24, 119, 242, 0.1);
    border-color: #1877f2;
}

.smx-share-btn--twitter {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.smx-share-btn--twitter:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.smx-share-btn--whatsapp {
    color: #25d366;
    border-color: rgba(37, 211, 102, 0.3);
}

.smx-share-btn--whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25d366;
}

.smx-share-btn--copy {
    color: #8a2be2;
    border-color: rgba(138, 43, 226, 0.3);
}

.smx-share-btn--copy:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: #8a2be2;
}

.smx-share-btn--copy.copied {
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.1);
}

.smx-share-btn--copy.copied .smx-share-btn__label::after {
    content: ' ✓';
    margin-left: 0.25rem;
}

.smx-podcast-single__content {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.0625rem;
}

.smx-podcast-single__content p {
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

.smx-podcast-single__content h2,
.smx-podcast-single__content h3,
.smx-podcast-single__content h4 {
    color: #ffffff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.smx-podcast-single__content h2 {
    font-size: 1.75rem;
    background: linear-gradient(135deg, #ffffff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(138, 43, 226, 0.2);
}

.smx-podcast-single__content h3 {
    font-size: 1.5rem;
}

.smx-podcast-single__content h4 {
    font-size: 1.25rem;
}

.smx-podcast-single__content a {
    color: #8a2be2;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    padding-bottom: 2px;
}

.smx-podcast-single__content a:hover {
    border-bottom-color: #8a2be2;
}

.smx-podcast-single__content ul,
.smx-podcast-single__content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.smx-podcast-single__content li {
    margin-bottom: 0.5rem;
    position: relative;
}

.smx-podcast-single__content ul li::before {
    content: '•';
    color: #8a2be2;
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.smx-podcast-single__content blockquote {
    border-left: 4px solid #8a2be2;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    background: rgba(138, 43, 226, 0.05);
    border-radius: 0 12px 12px 0;
}

.smx-podcast-single__content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.smx-podcast-single__footer {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-top: 1px solid rgba(138, 43, 226, 0.2);
    background: rgba(138, 43, 226, 0.05);
}

.smx-podcast-single__navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.smx-podcast-single__nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(138, 43, 226, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.2s ease;
}

.smx-podcast-single__nav-link:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: rgba(138, 43, 226, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.smx-podcast-single__nav-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

.smx-podcast-single__nav-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}

.smx-podcast-single__nav-link--next {
    text-align: right;
}

.smx-podcast-single__back {
    text-align: center;
}

.smx-podcast-single__back .smx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.3);
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.smx-podcast-single__back .smx-btn:hover {
    background: rgba(138, 43, 226, 0.1);
    border-color: #8a2be2;
    transform: translateY(-2px);
}

/* Related Episodes Section */
.smx-related-podcasts {
    max-width: 1200px;
    margin: 60px auto 0;
    padding: 0 40px;
}

.smx-related-podcasts h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #ffffff;
    text-align: center;
}

.smx-related-podcasts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.smx-related-podcast {
    background: rgba(138, 43, 226, 0.05);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.smx-related-podcast:hover {
    transform: translateY(-5px);
    border-color: rgba(138, 43, 226, 0.3);
    box-shadow: 0 20px 40px rgba(138, 43, 226, 0.2);
}

.smx-related-podcast a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.smx-related-podcast__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.smx-related-podcast__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.smx-related-podcast:hover .smx-related-podcast__image img {
    transform: scale(1.05);
}

.smx-related-podcast h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1rem 1.5rem 0.5rem;
    color: #ffffff;
    line-height: 1.4;
}

.smx-related-podcast__date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 1.5rem 1.5rem;
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .smx-podcast-single__container,
    .smx-related-podcasts {
        padding: 0 30px;
    }
}

@media (max-width: 992px) {
    .smx-podcast-single__header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .smx-podcast-single__image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .smx-related-podcasts__grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .smx-podcast-single__hero {
        padding: 40px 0 30px;
    }
    
    .smx-podcast-single__container,
    .smx-related-podcasts {
        padding: 0 20px;
    }
    
    .smx-podcast-single__header {
        padding: 1.5rem;
        gap: 1.5rem;
    }
    
    .smx-podcast-single__image {
        width: 100%;
        max-width: 280px;
    }
    
    .smx-podcast-single__navigation {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .smx-podcast-single__nav-link--next {
        text-align: left;
    }
    
    .smx-modern-player__controls {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .smx-modern-player__volume-container {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
    
    .smx-modern-player__volume-slider {
        width: 80px !important;
    }
    
    .smx-share-buttons {
        gap: 0.5rem;
    }
    
    .smx-share-btn {
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .smx-share-btn__label {
        display: none;
    }
    
    .smx-share-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .smx-related-podcasts__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .smx-podcast-single__hero {
        padding: 30px 0 25px;
    }
    
    .smx-podcast-single__container,
    .smx-related-podcasts {
        padding: 0 15px;
    }
    
    .smx-podcast-single__title {
        font-size: 2rem;
    }
    
    .smx-modern-player {
        padding: 1rem 1.25rem;
    }
    
    .smx-modern-player__play-pause {
        width: 50px;
        height: 50px;
    }
}

/* Ensure dark theme compatibility */
.smx-podcast-single input[type="text"],
.smx-podcast-single input[type="email"],
.smx-podcast-single input[type="url"],
.smx-podcast-single input[type="password"],
.smx-podcast-single input[type="search"],
.smx-podcast-single input[type="tel"],
.smx-podcast-single input[type="number"],
.smx-podcast-single textarea,
.smx-podcast-single select {
    color: #ffffff;
    background-color: rgba(9, 2, 19, 0.95);
    border-color: rgba(9, 2, 19, 0.95);
}