/* ============================================
   SOCIAL MEDIA GALLERY SECTION
   PelixArmor Brand Colors
============================================ */

.social-gallery {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(180deg, 
        var(--PelixArmor-navy-deep) 0%, 
        var(--PelixArmor-navy-primary) 50%,
        var(--PelixArmor-navy-secondary) 100%
    );
    overflow: hidden;
}

.social-gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--PelixArmor-cyan) 50%, 
        transparent 100%
    );
    opacity: 0.5;
}

.social-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.social-gallery-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.social-gallery-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(131, 58, 180, 0.4);
}

.social-gallery-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.social-gallery-title-group {
    text-align: center;
}

.social-gallery-title {
    font-family: var(--font-orbitron), 'Orbitron', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--PelixArmor-white);
    margin: 0;
    letter-spacing: 0.05em;
}

.social-gallery-subtitle {
    font-size: 1rem;
    color: var(--PelixArmor-gray);
    margin: 8px 0 0;
}

.social-gallery-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--PelixArmor-gold-primary) 0%, var(--PelixArmor-gold-dark) 100%);
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(34, 181, 252, 0.3);
}

.social-gallery-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(34, 181, 252, 0.5);
}

.social-gallery-follow-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.social-gallery-follow-btn:hover svg {
    transform: translateX(4px);
}

/* Grid */
.social-gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

@media (max-width: 1200px) {
    .social-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .social-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .social-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* Gallery Item */
.social-gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: var(--PelixArmor-navy-light);
}

.social-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    pointer-events: none;
    transition: border-color 0.3s ease;
}

.social-gallery-item:hover::after {
    border-color: var(--PelixArmor-cyan);
}

.social-gallery-image,
.social-gallery-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-gallery-item:hover .social-gallery-image,
.social-gallery-item:hover .social-gallery-video {
    transform: scale(1.1);
}

/* Overlay */
.social-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(0, 0, 0, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-gallery-item:hover .social-gallery-overlay {
    opacity: 1;
}

.social-gallery-zoom-icon,
.social-gallery-play-icon {
    width: 40px;
    height: 40px;
    color: white;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.social-gallery-item:hover .social-gallery-zoom-icon,
.social-gallery-item:hover .social-gallery-play-icon {
    transform: scale(1);
}

.social-gallery-play-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    padding: 12px;
    backdrop-filter: blur(4px);
}

/* Video indicator */
.social-gallery-item.is-video::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    z-index: 2;
    backdrop-filter: blur(4px);
}

/* ============================================
   LIGHTBOX
============================================ */
.social-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.social-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.social-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.social-lightbox-close svg {
    width: 24px;
    height: 24px;
    color: white;
}

.social-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-lightbox-image {
    object-fit: contain !important;
    position: relative !important;
    width: auto !important;
    height: auto !important;
    max-width: 90vw !important;
    max-height: 85vh !important;
    border-radius: 8px;
}

.social-lightbox-video {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    background: black;
}

/* Navigation */
.social-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.social-lightbox-nav:hover {
    background: var(--PelixArmor-gold-primary);
    border-color: var(--PelixArmor-gold-primary);
}

.social-lightbox-prev {
    left: 20px;
}

.social-lightbox-next {
    right: 20px;
}

.social-lightbox-nav svg {
    width: 24px;
    height: 24px;
    color: white;
}

.social-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .social-gallery {
        padding: 50px 0 40px;
    }
    
    .social-gallery-header {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .social-gallery-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }
    
    .social-gallery-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .social-lightbox-nav {
        width: 40px;
        height: 40px;
    }
    
    .social-lightbox-prev {
        left: 10px;
    }
    
    .social-lightbox-next {
        right: 10px;
    }
    
    .social-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
}
