/* =====================================================
   FOOTER COMPONENT STYLES
   Reusable Footer - Sân Khấu 3D
===================================================== */

/* =====================================================
   FOOTER
===================================================== */

.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: var(--space-8) 0 var(--space-6);
    margin-top: auto;
}

.footer .container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* =====================================================
   FOOTER CONTENT
===================================================== */

.footer-content {
    display: grid;
    grid-template-columns: minmax(260px, 1.5fr) repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
    align-items: stretch;
    margin-bottom: var(--space-6);
    width: 100%;
}

/* =====================================================
   FOOTER BRAND
===================================================== */

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    height: 100%;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.footer-logo-link:hover {
    opacity: 0.85;
    transform: translateX(-4px);
}

.footer-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.footer-logo-icon img {
    width: 32px;
    height: 32px;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
    max-width: 100%;
}

.footer-description {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.7;
    max-width: 100%;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-top: auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--brand-cyan);
    color: var(--brand-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 229, 255, 0.2);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* =====================================================
   FOOTER COLUMN
===================================================== */

.footer-column,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    height: 100%;
    min-width: 0;
}

.footer-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-heading);
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-menu li {
    margin: 0;
}

.footer-menu a {
    display: inline-block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    transition: color var(--transition-fast);
}

.footer-menu a:hover {
    color: var(--brand-cyan);
}

/* =====================================================
   CONTACT
===================================================== */

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);

    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    min-width: 0;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 36px;
    height: 36px;

    flex-shrink: 0;

    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);

    color: var(--brand-cyan);
}

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

.contact-item span,
.contact-item a {
    min-width: 0;
    color: var(--text-secondary);
    text-decoration: none;
    overflow-wrap: anywhere;
    transition: color var(--transition-fast);
}

.contact-item a:hover {
    color: var(--brand-cyan);
}

/* =====================================================
   FOOTER BOTTOM
===================================================== */

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: var(--space-5);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
}

.copyright {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-bottom-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
    color: var(--brand-cyan);
}

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

/* Laptop */

@media (max-width:1024px){

    .footer-content{
        grid-template-columns:repeat(3,minmax(0,1fr));
        gap:var(--space-5);
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

}

/* Tablet */

@media (max-width:768px){

    .footer{
        padding:var(--space-6) 0;
    }

    .footer-content{
        grid-template-columns:1fr;
        gap:var(--space-5);
    }

    .footer-brand {
        grid-column: auto;
    }

    .footer-bottom-content{
        flex-direction:column;
        align-items:flex-start;
    }

}

/* Mobile */

@media (max-width:480px){

    .footer .container{
        padding:0 var(--space-4);
    }

    .footer-logo-icon{
        width:40px;
        height:40px;
    }

    .footer-logo-icon img{
        width:28px;
        height:28px;
    }

    .footer-logo-text{
        font-size:18px;
    }

    .footer-tagline,
    .footer-description,
    .footer-menu a,
    .contact-item{
        font-size:13px;
    }

}

/* =====================================================
   ACCESSIBILITY
===================================================== */

.social-link:focus,
.footer-menu a:focus,
.contact-item a:focus{
    outline:2px solid var(--brand-cyan);
    outline-offset:2px;
}

/* =====================================================
   ANIMATION
===================================================== */

@keyframes fadeInUp{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

.footer-brand,
.footer-column,
.footer-contact{
    animation:fadeInUp .6s ease forwards;
    opacity:0;
}

.footer-brand{
    animation-delay:.1s;
}

.footer-column:nth-of-type(2){
    animation-delay:.2s;
}

.footer-column:nth-of-type(3){
    animation-delay:.3s;
}

.footer-contact{
    animation-delay:.4s;
}
