/* ==========================================================================
   Footer Styles
   ========================================================================== */

.site-footer {
    background-color: var(--dark-background);
    color: rgba(255, 255, 255, 0.8);
}

/* Footer Main
   ========================================================================== */
.footer-main {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Footer Logo
   ========================================================================== */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    text-decoration: none;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-brand .footer-site-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    min-width: 0;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.footer-brand:hover .footer-site-name {
    color: var(--primary-color);
}

.footer-about {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.7);
}

/* Social Icons
   ========================================================================== */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
    max-width: 330px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.12);
    color: #fff;
    transition: var(--transition-base);
}

.footer-social-facebook {
    background-color: #1877f2 !important;
}

.footer-social-twitter {
    background-color: #111 !important;
}

.footer-social-linkedin {
    background-color: #0a66c2 !important;
}

.footer-social-instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 48%, #8134af 100%) !important;
}

.footer-social-youtube {
    background-color: #ff0000 !important;
}

.footer-social-tiktok {
    background-color: #111 !important;
}

.footer-social-whatsapp {
    background-color: #25d366 !important;
}

.footer-social-telegram {
    background-color: #229ed9 !important;
}

.footer-social-github {
    background-color: #24292f !important;
}

.footer-social-xiaohongshu {
    background-color: #ff2442 !important;
}

.footer-social a:hover {
    color: #fff;
    transform: translateY(-3px);
    filter: brightness(1.1);
}

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

/* Footer Menu
   ========================================================================== */
.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 12px;
}

.footer-menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: var(--transition-base);
    display: inline-block;
}

.footer-menu a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* Footer Contact
   ========================================================================== */
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
}

.footer-contact .contact-icon {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    fill: currentColor;
    flex-shrink: 0;
    margin-top: 3px;
}

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

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-base);
}

.footer-contact a:hover {
    color: var(--primary-color);
}

.footer-contact span {
    color: rgba(255, 255, 255, 0.7);
}

/* Footer Bottom
   ========================================================================== */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.copyright {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 14px;
}

.footer-legal-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

.footer-legal-menu li {
    position: relative;
}

.footer-legal-menu li:not(:last-child)::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-legal-menu a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-base);
    text-decoration: none;
}

.footer-legal-menu a:hover {
    color: var(--primary-color);
}

/* Tablet Styles (≤991px)
   ========================================================================== */
@media (max-width: 991px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .footer-main {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }
}

/* Mobile Styles (≤767px)
   ========================================================================== */
@media (max-width: 767px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .copyright {
        max-width: 100%;
        font-size: 13px;
        line-height: 1.6;
    }

    .footer-bottom-links {
        width: 100%;
        justify-content: center;
        font-size: 13px;
    }

    .footer-legal-menu {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 14px;
    }

    .footer-legal-menu li:not(:last-child)::after {
        display: none;
    }

    .footer-legal-menu a {
        display: inline-flex;
        align-items: center;
        min-height: 32px;
        padding: 3px 0;
        line-height: 1.35;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-brand {
        align-items: flex-start;
        max-width: 100%;
    }

    .footer-brand .footer-site-name {
        max-width: calc(100vw - 96px);
        font-size: 18px;
    }

    .footer-main {
        padding: var(--spacing-md) 0;
    }
}
