/* ========================================
   Steller - Footer Styles
   ======================================== */

.footer {
    background: linear-gradient(135deg, var(--gray-900) 0%, #0f1419 100%);
    color: var(--white);
    padding: 4rem 0 1.5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--duration-fast) var(--ease);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transition: width var(--duration-normal) var(--ease);
}

.footer-section h4:hover::after {
    width: 60px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--duration-fast) var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.footer-section a:before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--duration-fast) var(--ease);
}

.footer-section a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    transition: all var(--duration-fast) var(--ease);
}

.footer-bottom p:hover {
    color: var(--primary);
}

.footer-legal {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all var(--duration-fast) var(--ease);
    position: relative;
    padding-bottom: 0.25rem;
}

.footer-legal a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width var(--duration-fast) var(--ease);
}

.footer-legal a:hover {
    color: var(--primary);
}

.footer-legal a:hover::after {
    width: 100%;
}

.footer-legal a:not(:last-child)::before {
    content: '';
    position: absolute;
    right: -1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-bottom {
        gap: 1rem;
    }

    .footer-legal {
        gap: 1.5rem;
        flex-direction: column;
    }

    .footer-legal a:not(:last-child)::before {
        display: none;
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        gap: 0.75rem;
    }

    .footer-legal {
        gap: 0.75rem;
    }

    .footer-legal a {
        font-size: 0.85rem;
    }
}
