/**
 * Footer Styles cho Multi-Tenant Project
 */

/* Main Footer */
.main-footer {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    color: #f9fafb;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

/* Footer decorative background */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem 1rem;
    position: relative;
    z-index: 1;
}

/* Footer Content */
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    
    /* Animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

/* Footer Info Section */
.footer-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-brand {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.footer-contact,
.footer-phone {
    font-size: 0.9rem;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Footer Links */
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    padding: 0.25rem 0;
}

.footer-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.footer-links a:hover::before {
    width: 100%;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    
    /* Animation */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out 0.6s forwards;
}

.footer-bottom p {
    font-family: var(--font-primary);
    font-size: var(--font-size-xs);
    color: #9ca3af;
    margin: 0;
    letter-spacing: 0.5px;
}

/* Hover Effects for Info Section */
.footer-info {
    transition: transform 0.3s ease;
    padding: 0.5rem;
    border-radius: 0.5rem;
    position: relative;
}

.footer-info:hover {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-container {
        padding: 2rem 1rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-info {
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
        gap: 1rem;
    }
    
    .footer-links a:hover {
        transform: translateY(-2px) scale(1.05);
    }
}

@media (max-width: 480px) {
    .footer-container {
        padding: 1.5rem 0.75rem 1rem;
    }
    
    .footer-brand {
        font-size: 1.1rem;
    }
    
    .footer-contact,
    .footer-phone {
        font-size: 0.85rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animation Trigger */
.footer-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.footer-animate.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Social Links Hover Effect (if added later) */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}
