/**
 * High Leverage Humans - Premium Footer Redesign
 * Better organization, spacing, and professional layout
 */

/* JOIN THE MOVEMENT SECTION - CENTERED AND ENHANCED */
.join-movement {
    margin-top: 8rem;
    text-align: center;
    padding: 0 2rem;
}

.join-movement h3 {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-white);
    margin: 0 0 2rem 0;
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-neon-blue) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-align: center;
}

.join-movement h3::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-neon-blue);
    border-radius: 2px;
}

.join-movement p {
    font-family: var(--font-secondary);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--color-gray-400);
    margin: 0 0 3rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ENHANCED SOCIAL LINKS */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 6rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-gray-300);
    text-decoration: none;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(17, 17, 17, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 230, 255, 0.05) 0%, rgba(255, 0, 79, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.social-link:hover {
    color: var(--color-neon-blue);
    border-color: rgba(0, 230, 255, 0.3);
    background: rgba(0, 230, 255, 0.08);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0, 230, 255, 0.25);
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.social-link:hover .social-icon {
    transform: scale(1.1) rotate(5deg);
}

/* EXCLUSIVE DISCORD APPLICATION BUTTON */
.social-link.discord.exclusive {
    background: linear-gradient(135deg, 
        rgba(88, 101, 242, 0.8) 0%, 
        rgba(88, 101, 242, 0.6) 100%);
    border: 2px solid rgba(88, 101, 242, 0.4);
    position: relative;
    overflow: hidden;
}

.social-link.discord.exclusive::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(88, 101, 242, 0.6) 0%, 
        rgba(255, 215, 0, 0.4) 50%, 
        rgba(88, 101, 242, 0.6) 100%);
    border-radius: 14px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background-size: 200% 200%;
    animation: exclusiveBorderGlow 3s linear infinite;
}

.social-link.discord.exclusive:hover::before {
    opacity: 1;
}

.social-link.discord.exclusive:hover {
    color: var(--color-white);
    background: linear-gradient(135deg, 
        rgba(88, 101, 242, 0.9) 0%, 
        rgba(88, 101, 242, 0.7) 100%);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 12px 24px rgba(88, 101, 242, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3);
}

.social-link.discord.exclusive span::after {
    content: " ✨";
    font-size: 0.8em;
    opacity: 0.8;
}

@keyframes exclusiveBorderGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* PREMIUM FOOTER REDESIGN */
.footer {
    background: linear-gradient(135deg, var(--color-charcoal-dark) 0%, var(--color-charcoal) 100%);
    padding: 6rem 2rem 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--color-neon-blue) 25%, var(--color-electric-red) 75%, transparent 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 3rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* LOGO AND BRAND SECTION */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    width: 120px;
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 4px 12px rgba(0, 230, 255, 0.3));
}

.footer-brand p {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: var(--color-gray-400);
    line-height: 1.6;
    margin: 0;
    max-width: 300px;
}

.footer-brand .tagline {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--color-electric-red);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

/* FOOTER SECTIONS */
.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.footer-section h4 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    margin: 0 0 1.5rem 0;
    position: relative;
    align-self: flex-start;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--color-neon-blue);
    border-radius: 1px;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
    width: 100%;
}

.footer-section li {
    width: 100%;
    display: flex;
    align-items: center;
}

.footer-section a {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: var(--color-gray-400);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    display: inline-block;
    width: fit-content;
    border-radius: 6px;
}

.footer-section a::before {
    content: '→';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%) translateX(-10px);
    color: var(--color-neon-blue);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover::before {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.footer-section a:hover {
    color: var(--color-neon-blue);
    background: rgba(0, 230, 255, 0.05);
    padding-left: 0.8rem;
    padding-right: 0.8rem;
}

/* FOOTER BOTTOM */
.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--color-gray-500);
    margin: 0;
    line-height: 1.5;
}

.footer-bottom a {
    color: var(--color-neon-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--color-neon-blue-light);
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 3rem;
    }
    
    .social-links {
        gap: 2rem;
        margin-bottom: 5rem;
    }
}

@media (max-width: 768px) {
    .join-movement {
        margin-top: 6rem;
        padding: 0 1rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 4rem;
    }
    
    .social-link {
        width: 250px;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .footer {
        padding: 4rem 1rem 2rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-column {
        align-items: center;
    }
    
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section a {
        padding-left: 0;
        text-align: center;
    }
    
    .footer-section a::before {
        display: none;
    }
    
    .footer-section a:hover {
        padding-left: 0;
    }
}

@media (max-width: 480px) {
    .join-movement {
        margin-top: 5rem;
    }
    
    .social-links {
        margin-bottom: 3rem;
    }
    
    .social-link {
        width: 200px;
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 3rem 0.5rem 1.5rem 0.5rem;
    }
    
    .footer-content {
        gap: 2.5rem;
    }
}

/* ENHANCED VISUAL EFFECTS */
.footer-brand,
.footer-column {
    animation: footerFadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.footer-brand { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

@keyframes footerFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ACCESSIBILITY IMPROVEMENTS */
@media (prefers-reduced-motion: reduce) {
    .footer-brand,
    .footer-column {
        animation: none;
        opacity: 1;
    }
    
    .social-link:hover,
    .footer-section a:hover {
        transform: none;
    }
}

/* HIGH CONTRAST MODE */
@media (prefers-contrast: high) {
    .footer-section a {
        border-bottom: 1px solid transparent;
    }
    
    .footer-section a:hover {
        border-bottom-color: var(--color-neon-blue);
    }
}

/* PERFORMANCE OPTIMIZATIONS */
.social-link,
.footer-section a {
    will-change: transform;
    backface-visibility: hidden;
}

.footer-logo {
    will-change: filter;
}