/**
 * Social Video Grid Shortcode Styles
 * 
 * @package SherAgency_Child
 * @version 1.0.0
 */

.social-grid-container {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
}

.social-grid {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.video-item {
    position: relative;
    background: #000;
    border-radius: 11.11px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 9/16;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 70%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-overlay {
    opacity: 0.8;
}

.play-button {
    width: 70px;
    height: 70px;
    border-radius: 109.939px;
    background: rgba(255, 255, 255, 0.40);
    -webkit-backdrop-filter: blur(44.24028015136719px);
    backdrop-filter: blur(44.24028015136719px);
    will-change: transform;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button svg {
    width: 32.537px;
    height: 34.415px;

}

.video-item:hover .play-button {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.40);
    -webkit-backdrop-filter: blur(44.24028015136719px);
    backdrop-filter: blur(44.24028015136719px);
    transition:300ms;
}

.video-stats {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-stats  .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: "Outfit", Sans-serif;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    padding: 0;
}

.stat-icon {
    width: 17.778px;
    height: 17.778px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon svg {
    width: 17.778px;
    height: 17.778px;
}

/* Modal Styles */
.modal-svg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

.modal-svg.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 85vh;
    width: auto;
    animation: scaleIn 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-video {
    width: 100%;
    height: auto;
    max-height: 85vh;
    border-radius: 16px;
    display: block;
    background: #000;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #F0A820 100%);
    border: none;
    color: #241E1E;
    font-size: 28px;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 50%;
    line-height: 1;
    padding: 0;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    font-weight: bold;
    z-index: 10001;
}

.modal-close:hover {
    transform: scale(1.15);
    background: linear-gradient(135deg, #F0A820 0%, #E2A422 100%);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

.modal-close:active {
    transform: scale(0.95);
}

/* Pagination bullets */
.social-grid-pagination {
    position: relative;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.social-grid-pagination .swiper-pagination-bullet {
    width: 20px;
    height: 8px;
    border-radius: 4px;
    background: #D9D9D9;
    opacity: 1;
    transition: width 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.social-grid-pagination .swiper-pagination-bullet-active {
    width: 40px;
    background: #FFA500;
}

/* Mobile & Tablet: Swiper slider */
@media (max-width: 1023px) {
    .social-grid {
        overflow: visible;
    }
}

/* Desktop: Grid layout */
@media (min-width: 1024px) {
    .social-grid-pagination {
        display: none;
    }
    
    .social-grid .swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(6, 1fr);
        gap: 0;
        transform: none !important;
    }
    
    .video-item {
        width: auto !important;
    }
}

/* Tablet and smaller adjustments */
@media (max-width: 768px) {

    .play-button {
        width: 50px;
        height: 50px;
    }

    .play-button svg {
        width: 24px;
        height: 26px;
    }

    .video-stats {
        font-size: 12px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .modal-video {
        max-height: 80vh;
    }

    .modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
}
