/**
 * VEAM Podcast Modal - Lightweight Styles
 * Slide-up modal (90% height) with smooth animations
 * Lazy-loaded only when needed
 */

/* Modal Overlay */
.podcast-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.podcast-modal-overlay.active {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
}

/* Modal Container */
.podcast-modal {
    width: 100%;
    max-width: 1200px;
    height: 90vh;
    background: linear-gradient(180deg, #0a0b0f 0%, #12141a 100%);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.podcast-modal-overlay.active .podcast-modal {
    transform: translateY(0);
}

/* Modal Header */
.podcast-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

.podcast-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.podcast-modal-title .icon {
    font-size: 28px;
}

.podcast-modal-title h2 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.podcast-modal-title span {
    color: #00ff9d;
}

.podcast-modal-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #fff;
    font-size: 24px;
}

.podcast-modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #ef4444;
    transform: scale(1.1);
}

/* Modal Content */
.podcast-modal-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Loading State */
.podcast-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 16px;
}

.podcast-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 255, 157, 0.1);
    border-top-color: #00ff9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.podcast-loading p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* Podcast Grid */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Podcast Card */
.podcast-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.podcast-card:hover {
    background: rgba(0, 255, 157, 0.05);
    border-color: #00ff9d;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 255, 157, 0.2);
}

.podcast-card-cover {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.5);
}

.podcast-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.podcast-card-meta {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.podcast-card-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-approved {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Hover Description Tooltip */
.podcast-card-description {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: #000;
    border: 1px solid #00ff9d;
    padding: 12px 16px;
    border-radius: 12px;
    width: 280px;
    max-width: 90vw;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 100;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.podcast-card-description::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-top-color: #00ff9d;
}

.podcast-card:hover .podcast-card-description {
    opacity: 1;
    transform: translateX(-50%) translateY(-20px);
}

/* Empty State */
.podcast-empty {
    text-align: center;
    padding: 60px 20px;
}

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

.podcast-empty h3 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    margin-bottom: 8px;
}

.podcast-empty p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

/* Featured Latest Podcast (Top) */
.podcast-featured {
    background: linear-gradient(135deg, rgba(0, 255, 157, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    border: 1px solid rgba(0, 255, 157, 0.3);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 32px;
    display: flex;
    gap: 24px;
    align-items: center;
}

.podcast-featured-cover {
    width: 160px;
    height: 160px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.podcast-featured-info {
    flex: 1;
}

.podcast-featured-label {
    display: inline-block;
    background: rgba(0, 255, 157, 0.2);
    border: 1px solid #00ff9d;
    color: #00ff9d;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.podcast-featured-title {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px 0;
}

.podcast-featured-description {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 16px 0;
}

.podcast-featured-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.podcast-featured-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00ff9d;
    color: #000;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.podcast-featured-button:hover {
    background: #00d485;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .podcast-modal {
        height: 95vh;
        border-radius: 16px 16px 0 0;
    }

    .podcast-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .podcast-featured {
        flex-direction: column;
        text-align: center;
    }

    .podcast-featured-cover {
        width: 120px;
        height: 120px;
    }

    .podcast-modal-content {
        padding: 16px;
    }

    .podcast-card-description {
        width: 220px;
    }
}

/* Scrollbar Styling */
.podcast-modal-content::-webkit-scrollbar {
    width: 8px;
}

.podcast-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.podcast-modal-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 157, 0.3);
    border-radius: 4px;
}

.podcast-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 157, 0.5);
}
