/* ========================================
   Video Page Styles
   ======================================== */

.page-header {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    min-height: 350px;
}

.page-header-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-header-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.2);
}

.page-header-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.85), rgba(20, 184, 166, 0.85));
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

.page-header-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    transition: var(--transition);
    align-self: center;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    margin-top: 0;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem 3rem;
    border-radius: 15px;
    display: inline-block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-description {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 1;
    text-align: center;
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Video List Section */
.video-list-section {
    padding: 60px 0;
    background: var(--light-bg);
    min-height: 400px;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
}

.video-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    opacity: 1 !important;
    visibility: visible !important;
}

.video-card {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    padding: 0;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.video-thumbnail img[src*="youtube"] {
    /* Fallback for YouTube thumbnails */
    min-height: 100%;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.play-button-overlay i {
    font-size: 2.5rem;
    color: #fff;
}

.video-card:hover .play-button-overlay {
    background: rgba(8, 145, 178, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-content {
    padding: 1.5rem;
}

.video-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF0000, #CC0000);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.video-icon-img {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--white);
    padding: 5px;
}

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

.video-icon-ribbon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-icon-ribbon i {
    font-size: 1.8rem;
    color: var(--white);
}

.page-header-breast {
    background: linear-gradient(135deg, #FFB6C1, #FF69B4);
}

.page-header-video-overlay-breast {
    background: linear-gradient(135deg, rgba(255, 182, 193, 0.85), rgba(255, 105, 180, 0.85));
}

.page-header-podcast {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.page-header-video-overlay-podcast {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85), rgba(118, 75, 162, 0.85));
}

.video-content {
    flex: 1;
}

.video-title {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
}

.video-meta i {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
        min-height: 300px;
    }

    .page-title {
        font-size: 1.5rem;
        padding: 1rem 1.5rem;
    }

    .page-description {
        font-size: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
    }

    .video-card {
        flex-direction: column;
        text-align: center;
    }

    .video-icon,
    .video-icon-img,
    .video-icon-ribbon {
        width: 80px;
        height: 80px;
    }

    .video-icon i,
    .video-icon-ribbon i {
        font-size: 2rem;
    }
}
