﻿/* Footer Styles - Tập đoàn Phú Tài Đức */

/* Đảm bảo Font Awesome hoạt động */
.fa, .fas, .fab, .far {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands", "Font Awesome 6 Solid" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

.fab {
    font-weight: 400 !important;
}

/* Fallback icons nếu Font Awesome không load được */
.social-icon[title="Facebook"] i::before { content: "f"; }
.social-icon[title="Twitter"] i::before { content: "t"; }
.social-icon[title="Instagram"] i::before { content: "i"; }
.social-icon[title="YouTube"] i::before { content: "y"; }
.social-icon[title="LinkedIn"] i::before { content: "l"; }

.contact-item .fa-phone::before { content: "📞"; }
.contact-item .fa-envelope::before { content: "✉️"; }
.contact-item .fa-map-marker-alt::before { content: "📍"; }

/* Footer Container */
.custom-footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    padding: 60px 0 30px;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Khoảng cách với nội dung chính */
}

.custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #cc0000, #ff4444, #cc0000);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Footer Logo Section */
.footer-logo-section {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    /* Loại bỏ filter để logo hiển thị bình thường */
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Đảm bảo logo hiển thị rõ ràng */
.footer-logo {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
}

.footer-tagline {
    font-size: 16px;
    color: #cccccc;
    font-weight: 300;
    margin: 0;
    font-family: Arial, sans-serif;
}

/* Footer Links Section */
.footer-links-section {
    margin-bottom: 40px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    font-family: Arial, sans-serif;
}

.footer-link:hover {
    color: #cc0000;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    text-decoration: none;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #cc0000;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.footer-link:hover::after {
    width: 80%;
}

/* Social Media Section */
.social-section {
    text-align: center;
    margin-bottom: 40px;
}

.social-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    /* Đảm bảo icon hiển thị */
    position: relative;
}

.social-icon i {
    display: block !important;
    font-size: 18px !important;
    color: #ffffff !important;
    line-height: 1 !important;
    width: auto !important;
    height: auto !important;
    min-width: 18px !important;
    min-height: 18px !important;
}

.social-icon:hover {
    background: #cc0000;
    border-color: #cc0000;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(204,0,0,0.4);
    color: #ffffff;
    text-decoration: none;
}

/* Contact Info Section */
.contact-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.1);
}

.contact-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cccccc;
    cursor: pointer;
    transition: color 0.3s ease;
}

.contact-item:hover {
    color: #ffffff;
}

.contact-item i {
    color: #cc0000;
    font-size: 18px;
    /* Đảm bảo icon hiển thị */
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

/* Copyright Section */
.copyright-section {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright-text {
    color: #999999;
    font-size: 14px;
    margin: 0;
}

.copyright-text a {
    color: #cc0000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.copyright-text a:hover {
    text-decoration: underline;
    color: #ff4444;
}

/* Responsive Design */
@media (max-width: 768px) {
    .custom-footer {
        padding: 40px 0 20px;
        margin-top: 60px;
    }
    
    .footer-links {
        gap: 20px;
        justify-content: center;
    }
    
    .footer-link {
        font-size: 14px;
        padding: 6px 12px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-item i {
        font-size: 16px !important;
    }
    
    .social-links {
        gap: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .social-icon i {
        font-size: 16px !important;
        min-width: 16px !important;
        min-height: 16px !important;
    }
    
    .footer-logo {
        max-width: 250px;
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-links {
        gap: 15px;
    }
    
    .footer-link {
        font-size: 13px;
        padding: 5px 10px;
    }
    
    .footer-logo {
        max-width: 200px;
        padding: 8px;
    }
    
    .contact-section {
        padding: 20px 15px;
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .social-icon i {
        font-size: 14px !important;
        min-width: 14px !important;
        min-height: 14px !important;
    }
}

/* Animation for footer elements */
.footer-logo,
.footer-link,
.social-icon {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover effects for better interactivity */
.footer-link:hover {
    color: #cc0000;
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.social-icon:hover {
    background: #cc0000;
    border-color: #cc0000;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(204,0,0,0.4);
}

/* Special effects for Mica branding */
.footer-tagline {
    background: linear-gradient(45deg, #cc0000, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
}

/* Loading state */
.footer-loading {
    text-align: center;
    padding: 40px 20px;
    color: #999999;
}

.footer-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #cc0000;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error state */
.footer-error {
    text-align: center;
    padding: 40px 20px;
    color: #cc0000;
    background: rgba(204,0,0,0.1);
    border-radius: 8px;
    margin: 20px;
}

/* Back to top button integration */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #cc0000;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #ff4444;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(204,0,0,0.4);
}

/* Print styles */
@media print {
    .custom-footer {
        background: #ffffff !important;
        color: #000000 !important;
        border-top: 2px solid #000000;
    }
    
    .footer-logo {
        filter: none !important;
    }
    
    .social-section,
    .contact-section {
        display: none;
    }
}

