/* ===== FOOTER COMPONENT ===== */
.site-footer {
    background: rgba(17, 17, 17, 0.95);
    border-top: 1px solid rgba(255, 0, 248, 0.2);
    backdrop-filter: blur(15px);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-lg);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 0, 248, 0.02) 0%, rgba(255, 0, 248, 0.08) 100%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.footer-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 10px rgba(255, 0, 248, 0.3);
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(48px, 6vw, 64px);
    height: clamp(48px, 6vw, 64px);
    background: rgba(26, 26, 26, 0.8);
    border: 2px solid rgba(255, 0, 248, 0.2);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), #ff33ff);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.social-link:hover::before {
    opacity: 0.1;
}

.social-link:hover {
    border-color: var(--accent-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-3px) scale(1.05);
}

.social-link svg {
    width: clamp(24px, 3vw, 32px);
    height: clamp(24px, 3vw, 32px);
    fill: var(--text-secondary);
    transition: all var(--transition-normal);
    position: relative;
    z-index: 2;
}

.social-link:hover svg {
    fill: var(--accent-color);
    filter: drop-shadow(0 0 8px rgba(255, 0, 248, 0.6));
}

/* Specific brand colors on hover */
.social-link.bluesky:hover svg { fill: #1185fe; }
.social-link.furaffinity:hover svg { fill: #faaf3a; }
.social-link.tumblr:hover svg { fill: #00cf35; }
.social-link.deviantart:hover svg { fill: #05cc47; }
.social-link.newgrounds:hover svg { fill: #ffa000; }
.social-link.instagram:hover svg { fill: #e4405f; }
.social-link.discord:hover svg { fill: #5865f2; }
.social-link.x:hover svg { fill: #ffffff; }

/* Accessibility improvements */
.social-link:focus {
    outline: 3px solid rgba(255, 0, 248, 0.5);
    outline-offset: 2px;
}

.social-link:focus svg {
    fill: var(--accent-color);
}

/* Screen reader text */
.social-link .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer bottom section */
.footer-bottom {
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 0, 248, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin: 0;
    line-height: 1.4;
}

.footer-copyright {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
}

.footer-copyright::before {
    content: '©';
    font-weight: 600;
    color: var(--accent-color);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large devices (1200px and up) */
@media (min-width: 1200px) {
    .social-links {
        gap: var(--spacing-xl);
    }
    
    .social-link {
        width: 64px;
        height: 64px;
    }
    
    .social-link svg {
        width: 32px;
        height: 32px;
    }
}

/* Medium devices (tablets, 768px to 1199px) */
@media (max-width: 1199.98px) and (min-width: 768px) {
    .site-footer {
        padding: var(--spacing-lg) 0;
    }
    
    .social-links {
        gap: var(--spacing-md);
    }
    
    .social-link {
        width: 56px;
        height: 56px;
    }
    
    .social-link svg {
        width: 28px;
        height: 28px;
    }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (max-width: 767.98px) and (min-width: 576px) {
    .site-footer {
        padding: var(--spacing-md) 0;
        margin-top: var(--spacing-lg);
    }
    
    .footer-title {
        font-size: 1.5rem;
        margin-bottom: var(--spacing-md);
    }
    
    .social-links {
        gap: var(--spacing-md);
        max-width: 100%;
    }
    
    .social-link {
        width: 52px;
        height: 52px;
    }
    
    .social-link svg {
        width: 26px;
        height: 26px;
    }
    
    .footer-bottom {
        padding-top: var(--spacing-md);
        font-size: 0.85rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .site-footer {
        padding: var(--spacing-md) 0;
        margin-top: var(--spacing-md);
    }
    
    .footer-content {
        padding: 0 var(--spacing-sm);
    }
    
    .footer-title {
        font-size: 1.25rem;
        margin-bottom: var(--spacing-sm);
    }
    
    .social-links {
        gap: var(--spacing-sm);
        justify-content: center;
        max-width: 100%;
    }
    
    .social-link {
        width: 48px;
        height: 48px;
        min-width: 48px; /* Ensure minimum touch target */
        min-height: 48px;
    }
    
    .social-link svg {
        width: 24px;
        height: 24px;
    }
    
    .social-link:hover {
        transform: translateY(-2px) scale(1.02); /* Reduced animation on mobile */
    }
    
    .footer-bottom {
        padding-top: var(--spacing-sm);
        font-size: 0.8rem;
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
    }
}

/* Very small devices (less than 400px) */
@media (max-width: 399.98px) {
    .social-links {
        gap: var(--spacing-xs);
    }
    
    .social-link {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    
    .social-link svg {
        width: 22px;
        height: 22px;
    }
}

/* ===== MOBILE-SPECIFIC OPTIMIZATIONS ===== */
@media (max-width: 767.98px) {
    /* Improve touch targets */
    .social-link {
        -webkit-tap-highlight-color: rgba(255, 0, 248, 0.1);
    }
    
    /* Reduce motion for better performance */
    @media (prefers-reduced-motion: reduce) {
        .social-link {
            transition: none;
        }
        
        .social-link:hover {
            transform: none;
        }
    }
    
    /* High contrast mode adjustments */
    @media (prefers-contrast: high) {
        .social-link {
            border-color: var(--accent-color);
        }
        
        .social-link svg {
            fill: var(--text-primary);
        }
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .site-footer {
        background: white !important;
        color: black !important;
        border-top: 1px solid black !important;
    }
    
    .footer-title {
        color: black !important;
        text-shadow: none !important;
    }
    
    .social-links {
        display: none !important; /* Hide social links in print */
    }
    
    .footer-bottom {
        color: black !important;
        border-top-color: black !important;
    }
}

/* ===== DARK MODE ENHANCEMENTS ===== */
@media (prefers-color-scheme: dark) {
    .site-footer {
        background: rgba(0, 0, 0, 0.98);
    }
    
    .social-link {
        background: rgba(17, 17, 17, 0.9);
    }
}

/* ===== LOADING STATES ===== */
.social-link.loading {
    pointer-events: none;
    opacity: 0.6;
}

.social-link.loading svg {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ===== HOVER EFFECTS FOR DESKTOP ===== */
@media (hover: hover) and (pointer: fine) {
    .social-link {
        cursor: pointer;
    }
    
    .social-link:hover {
        animation: socialHover 0.6s ease;
    }
}

@keyframes socialHover {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-2px) scale(1.02); }
    100% { transform: translateY(-3px) scale(1.05); }
}

/* ===== SVG PLACEHOLDER STYLES ===== */
.svg-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 16px;
    font-weight: bold;
    color: var(--text-secondary, #ffffff);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
