﻿/* YouTube Section */
.youtube-container {
    margin: 0 auto;
    padding: 20px;
}

.youtube-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.youtube-logo {
    width: 90px;
    height: 20px;
    background: #ff0000;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.youtube-nav {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

    .youtube-nav a {
        text-decoration: none;
        color: #606060;
        font-weight: 500;
        padding-bottom: 10px;
        position: relative;
    }

        .youtube-nav a.active {
            color: #000;
            border-bottom: 2px solid #000;
        }

/* Featured Video */
.featured-video {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.featured-thumbnail {
    width: 320px;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

    .featured-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.featured-info {
    flex: 1;
}

.featured-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-meta {
    color: #606060;
    font-size: 13px;
    margin-bottom: 15px;
}

.featured-description {
    color: #606060;
    line-height: 1.5;
    margin-bottom: 15px;
}

.read-more {
    color: #1976d2;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

/* Section Title */
.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    /* Shorts title icon styling */
    .section-title img {
        width: 24px;
        height: 24px;
        vertical-align: middle;
    }

/* Video Card Styles */
.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
    height: 100%;
}

    .video-card:hover {
        transform: translateY(-2px);
    }

.video-thumbnail {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
}

    .video-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    color: #606060;
    font-size: 12px;
}

/* Short Card Styles with better spacing */
.short-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
    height: 100%;
    margin: 0 10px;
}

    .short-card:hover {
        transform: translateY(-2px);
    }

.short-thumbnail {
    width: 100%;
    height: 280px;
    position: relative;
    overflow: hidden;
}

    .short-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.short-info {
    padding: 12px;
}

.short-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.short-views {
    color: #606060;
    font-size: 11px;
}

/* Shorts slider spacing improvements */
.shorts-slider-container {
    margin: 0 -10px;
}

.shorts-slider .slick-slide {
    padding: 0 5px;
}

/* Video Modal Styles - Fixed centering */
.video-modal-content {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    max-width: 80vw;
    max-height: 80vh;
    position: relative;
    margin: 0 auto;
    width: 100%;
}

.video-modal-header {
    background: #fff;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-modal-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.video-modal-body {
    position: relative;
    background: #000;
}

.video-iframe {
    width: 100%;
    min-height: 400px;
    border: none;
}

/* Magnific Popup Modal Centering Fix */
.mfp-content {
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin: 0 auto;
    text-align: left;
    z-index: 1045;
}

.mfp-container {
    text-align: center;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    padding: 0 8px;
    box-sizing: border-box;
}

    .mfp-container:before {
        content: '';
        display: inline-block;
        height: 100%;
        vertical-align: middle;
    }

/* Additional modal centering styles */
.mfp-align-top .mfp-container:before {
    display: none;
}

.mfp-align-top .mfp-content {
    vertical-align: top;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 40px;
    color: #606060;
}

.error {
    text-align: center;
    padding: 40px;
    color: #d32f2f;
    background: #ffebee;
    border-radius: 8px;
    margin: 20px 0;
}

/* Social Section */
.social-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
}

.social-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

    .social-card.facebook {
        color: #1877f2;
    }

    .social-card.instagram {
        color: #e4405f;
    }

.social-logo {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 10px;
}


/* Responsive */
@media only screen and (max-width: 768px) {
    .featured-video {
        flex-direction: column;
    }

    .featured-thumbnail {
        width: 100%;
    }

    .youtube-nav {
        gap: 15px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .social-section {
        grid-template-columns: 1fr;
    }

    .video-iframe {
        min-height: 250px;
    }

    .video-modal-content {
        max-width: 95vw;
        max-height: 90vh;
    }

    /* Adjust shorts card spacing on mobile */
    .short-card {
        margin: 0 5px;
    }

    .shorts-slider-container {
        margin: 0 -5px;
    }

    /* Adjust font sizes for mobile */
    .video-meta, .short-views {
        font-size: 11px;
    }

    .featured-meta {
        font-size: 12px;
    }
}