/**
 * SOCIAL MEDIA - Footer Icons
 * Kolorowe, animowane ikony social media w stopce
 * ===============================================
 */

/* ===================================
   SOCIAL ICONS GRID
   =================================== */

.social-icons-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 200; /* NAD wszystkimi animacjami! */
}

.social-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 120px;
    z-index: 200; /* NAD overlay (100) i wszystkimi animacjami! */
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--social-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.social-icon:hover::before {
    opacity: 0.15;
}

.social-icon svg {
    width: 32px;
    height: 32px;
    transition: all 0.4s ease;
    filter: drop-shadow(0 4px 10px var(--social-glow));
}

.social-icon:hover {
    transform: translateY(-8px);
    border-color: var(--social-color);
    color: var(--social-color);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.4),
        0 0 40px var(--social-glow);
}

.social-icon:hover svg {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 8px 20px var(--social-glow));
}

/* ===================================
   KOLORY DLA KAŻDEGO SOCIAL
   =================================== */

/* Facebook */
.social-icon.facebook {
    --social-color: #1877F2;
    --social-glow: rgba(24, 119, 242, 0.5);
}

.social-icon.facebook svg {
    color: #1877F2;
}

/* Instagram */
.social-icon.instagram {
    --social-color: #E4405F;
    --social-glow: rgba(228, 64, 95, 0.5);
}

.social-icon.instagram svg {
    color: #E4405F;
}

.social-icon.instagram:hover {
    background: linear-gradient(135deg, 
        rgba(131, 58, 180, 0.15) 0%, 
        rgba(253, 29, 29, 0.15) 50%, 
        rgba(252, 176, 69, 0.15) 100%);
}

/* YouTube */
.social-icon.youtube {
    --social-color: #FF0000;
    --social-glow: rgba(255, 0, 0, 0.5);
}

.social-icon.youtube svg {
    color: #FF0000;
}

/* LinkedIn */
.social-icon.linkedin {
    --social-color: #0A66C2;
    --social-glow: rgba(10, 102, 194, 0.5);
}

.social-icon.linkedin svg {
    color: #0A66C2;
}

/* ===================================
   ANIMACJE
   =================================== */

/* Pulsujące świecenie przy hover */
@keyframes social-glow-pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 40px var(--social-glow);
    }
    50% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 60px var(--social-glow);
    }
}

.social-icon:hover {
    animation: social-glow-pulse 2s ease-in-out infinite;
}

/* Tekst pojawia się przy hover */
.social-icon span {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.social-icon:hover span {
    opacity: 1;
    letter-spacing: 0.5px;
}

/* ===================================
   TITLE SECTION
   =================================== */

.social-title {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.social-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FF6B3D, transparent);
    box-shadow: 0 0 10px rgba(255, 107, 61, 0.5);
}

/* ===================================
   BSG SOCIAL SECTION
   =================================== */

.bsg-social-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.bsg-social-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 107, 61, 0.5), 
        transparent);
    box-shadow: 0 0 15px rgba(255, 107, 61, 0.5);
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
    .social-icons-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .social-icon {
        padding: 15px 20px;
        min-width: 100px;
    }
    
    .social-icon svg {
        width: 28px;
        height: 28px;
    }
    
    .social-icon span {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .social-icons-grid {
        grid-template-columns: 1fr;
        max-width: 250px;
        margin: 0 auto;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */

@media (prefers-reduced-motion: reduce) {
    .social-icon,
    .social-icon svg {
        transition: none;
        animation: none;
    }
}

