/* public/assets/css/podcast-show.css */

.podcast-detail-page {
    padding: 2rem 0 4rem;
    background: var(--color-bg);
}

/* === BREADCRUMB === */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    color: var(--color-gray-600);
}

.breadcrumb a {
    color: var(--color-primary);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--color-primary-dark);
}

.breadcrumb .separator {
    color: var(--color-gray-400);
}

.breadcrumb .current {
    color: var(--color-gray-900);
    font-weight: 500;
}

/* === LAYOUT === */
.podcast-detail-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    margin-top: 2rem;
}

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

/* === VIDEO PLAYER === */
.video-player-container {
    background: var(--color-gray-900);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.main-video-player {
    width: 100%;
    aspect-ratio: 16/9;
    display: block;
}

.video-placeholder-large {
    aspect-ratio: 16/9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
}

.video-placeholder-large svg {
    width: 6rem;
    height: 6rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

/* === INFO SECTION === */
.podcast-info-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.podcast-title-main {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--color-gray-900);
    margin-bottom: 1.5rem;
}

.podcast-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--color-gray-200);
    margin-bottom: 2rem;
}

.meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item-main {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-gray-600);
    font-weight: 500;
}

.meta-item-main .icon {
    width: 1.125rem;
    height: 1.125rem;
}

/* === ACTION BUTTONS === */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-gray-300);
    border-radius: 0.5rem;
    transition: var(--transition);
    background: white;
    color: var(--color-gray-700);
}

.btn-action:hover {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

.btn-action svg {
    width: 1.125rem;
    height: 1.125rem;
}

.btn-action.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: white;
}

/* === SHARE DROPDOWN === */
.share-dropdown-wrapper {
    position: relative;
}

.share-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.share-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.share-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--color-gray-200);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-gray-900);
}

.share-dropdown-content {
    padding: 0.5rem;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: var(--transition);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-900);
    cursor: pointer;
}

.share-option:hover {
    background: var(--color-gray-50);
}

.share-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.share-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.share-icon.facebook {
    background: #1877f2;
    color: white;
}

.share-icon.twitter {
    background: #1da1f2;
    color: white;
}

.share-icon.whatsapp {
    background: #25d366;
    color: white;
}

.share-icon.linkedin {
    background: #0077b5;
    color: white;
}

.share-icon.telegram {
    background: #0088cc;
    color: white;
}

.share-icon.email {
    background: var(--color-gray-600);
    color: white;
}

.share-icon.copy {
    background: var(--color-gray-200);
    color: var(--color-gray-700);
}

/* === DESCRIPTION === */
.podcast-description-box {
    margin-bottom: 2rem;
}

.description-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-gray-900);
}

.description-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-gray-700);
}

/* === SIDEBAR === */
.podcast-sidebar-suggestions {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.sidebar-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-title .icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--color-primary);
}

/* === SUGGESTIONS === */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-gray-100);
}

.suggestion-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.suggestion-link {
    display: flex;
    gap: 0.75rem;
}

.suggestion-thumb {
    position: relative;
    width: 160px;
    height: 90px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.suggestion-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.suggestion-link:hover .suggestion-thumb img {
    transform: scale(1.1);
}

.thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
}

.thumb-placeholder svg {
    width: 2rem;
    height: 2rem;
    stroke: white;
    opacity: 0.6;
}

.thumb-duration {
    position: absolute;
    bottom: 0.25rem;
    right: 0.25rem;
    padding: 0.125rem 0.375rem;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.suggestion-info {
    flex: 1;
}

.suggestion-title {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--color-gray-900);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.suggestion-link:hover .suggestion-title {
    color: var(--color-primary);
}

.suggestion-meta {
    display: flex;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--color-gray-600);
}

/* === POPULAR LIST === */
.popular-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.popular-item {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.popular-rank {
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-radius: 0.375rem;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.popular-link {
    flex: 1;
}

.popular-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.popular-link:hover .popular-title {
    color: var(--color-primary);
}

.popular-views {
    font-size: 0.75rem;
    color: var(--color-gray-600);
}

/* === RESPONSIVE === */

@media (max-width: 1024px) {
    .podcast-detail-layout {
        grid-template-columns: 1fr;
    }
    
    .suggestion-thumb {
        width: 120px;
        height: 68px;
    }
}

@media (max-width: 768px) {
    .podcast-detail-page {
        padding: 1.5rem 0 3rem;
    }
    
    .podcast-info-section {
        padding: 1.5rem;
    }
    
    .podcast-title-main {
        font-size: 1.5rem;
    }
    
    .podcast-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .action-buttons {
        width: 100%;
        justify-content: flex-start;
    }
    
    .share-dropdown {
        right: auto;
        left: 0;
    }
    
    .description-content {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.8125rem;
    }
    
    .podcast-info-section {
        padding: 1.25rem;
    }
    
    .podcast-title-main {
        font-size: 1.25rem;
    }
    
    .meta-left {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-action {
        width: 2.25rem;
        height: 2.25rem;
    }
    
    .sidebar-section {
        padding: 1.25rem;
    }
    
    .suggestion-thumb {
        width: 100px;
        height: 56px;
    }
    
    .suggestion-title {
        font-size: 0.8125rem;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.share-dropdown.active {
    animation: fadeIn 0.3s ease;
}

/* === OVERLAY POUR FERMER LE DROPDOWN === */
.dropdown-overlay {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: none;
}

.dropdown-overlay.active {
    display: block;
}