/* Social Media Icons Styles */

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-icon:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    z-index: 1;
    position: relative;
}

/* Individual platform colors on hover */
.social-facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.social-twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.social-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #e6683c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(230, 104, 60, 0.4);
}

.social-linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.4);
}

.social-youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.4);
}

.social-pinterest:hover {
    background: #bd081c;
    border-color: #bd081c;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(189, 8, 28, 0.4);
}

.social-github:hover {
    background: #333;
    border-color: #333;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(51, 51, 51, 0.4);
}

/* Footer specific styles */
.site-footer .social-links {
    margin-top: 1.5rem;
}

.site-footer .footer-widget h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

/* Light background variation for header/other sections */
.header-social .social-icon {
    background: #f0f8ff;
    border-color: #e2e8f0;
    color: #0066cc;
}

.header-social .social-icon:hover {
    color: #ffffff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .social-links {
        justify-content: center;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .social-icon svg {
        width: 18px;
        height: 18px;
    }
}

/* Accessibility */
.social-icon:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Animation on page load */
@keyframes socialFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.social-links .social-icon {
    animation: socialFadeIn 0.5s ease-out backwards;
}

.social-links .social-icon:nth-child(1) { animation-delay: 0.1s; }
.social-links .social-icon:nth-child(2) { animation-delay: 0.2s; }
.social-links .social-icon:nth-child(3) { animation-delay: 0.3s; }
.social-links .social-icon:nth-child(4) { animation-delay: 0.4s; }
.social-links .social-icon:nth-child(5) { animation-delay: 0.5s; }
.social-links .social-icon:nth-child(6) { animation-delay: 0.6s; }

/* Tooltip on hover (optional) */
.social-icon[aria-label]::after {
    content: attr(aria-label);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.social-icon:hover::after {
    opacity: 1;
}