﻿/* --- PROFESSIONAL FOOTER STYLES --- */

/* Biến màu sắc cục bộ */
:root {
    --footer-bg: #0b1120; /* Màu nền chính: Xanh đen đậm */
    --footer-bg-dark: #070b15; /* Màu nền Copyright */
    --footer-text: #94a3b8; /* Màu chữ xám sáng */
    --footer-primary: #0046ba; /* Màu chủ đạo */
    --footer-accent: #ffd700; /* Màu nhấn (Vàng) */
}

.footer-section {
    position: relative;
    margin-top: 100px; /* Chừa chỗ cho Floating CTA */
    background-color: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.95rem;
}

/* 1. FLOATING CTA CARD */
.cta-floating-card {
    background: linear-gradient(90deg, #01afff 0, #0046ba 100%);
    border-radius: 20px;
    padding: 40px;
    margin-top: -80px; /* Kéo lên đè vào section trước */
    margin-bottom: -40px; /* Đè xuống footer */
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.cta-icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
}

.cta-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.5rem;
}

/* Decor Shape */
.cta-decor-shape {
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: rotate(45deg);
    pointer-events: none;
}

/* 2. FOOTER MAIN */
.footer-main {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.footer-logo {
    max-height: 60px;
    opacity: 0.9;
}

/* Contact Info */
.contact-item .icon {
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Widgets & Links */
.widget-title {
    color: #fff;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

    .widget-title::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 40px;
        height: 3px;
        background: var(--footer-primary);
        border-radius: 2px;
    }

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

.footer-links a {
    color: var(--footer-text);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}

    .footer-links a i {
        font-size: 0.8rem;
        margin-right: 8px;
        color: var(--footer-primary);
        transition: margin-right 0.3s;
    }

    .footer-links a:hover {
        color: #fff;
        padding-left: 5px; /* Hiệu ứng trượt nhẹ */
    }

/* Social Buttons */
.social-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

/* --- PREMIUM SOCIAL BUTTONS --- */

.social-links-wrapper {
    /* Căn giữa nếu cần: justify-content: center; */
}

.social-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.3rem;
    color: #fff !important;
    position: relative;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Hiệu ứng nảy đàn hồi */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: #333; /* Màu nền dự phòng */
}

/* --- MÀU SẮC THƯƠNG HIỆU (GRADIENT) --- */

/* Facebook: Xanh dương chuyển */
.btn-fb {
    background: linear-gradient(45deg, #1877F2, #3b5998);
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

/* Youtube: Đỏ sang cam nhẹ */
.btn-yt {
    background: linear-gradient(45deg, #FF0000, #ff4b1f);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

/* Tiktok: Đen sang xám đậm + Hiệu ứng viền */
.btn-tt {
    background: linear-gradient(45deg, #000000, #2c3e50);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Zalo: Xanh đặc trưng */
.btn-zl {
    background: linear-gradient(45deg, #0068FF, #0041b3);
    box-shadow: 0 5px 15px rgba(0, 104, 255, 0.3);
}

/* --- FONT ZALO GIẢ LOGO --- */
.zalo-font {
    font-family: sans-serif;
    font-weight: 900; /* Cực đậm */
    font-size: 0.8rem;
    letter-spacing: -0.5px; /* Chữ dính sát nhau */
    text-transform: capitalize;
}

/* --- HOVER EFFECTS (Hiệu ứng khi di chuột) --- */

.social-btn:hover {
    transform: translateY(-5px) scale(1.1); /* Bay lên và phóng to */
}

/* Đổi bóng đổ khi hover để tạo cảm giác phát sáng */
.btn-fb:hover {
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.5);
}

.btn-yt:hover {
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.5);
}

.btn-tt:hover {
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    /* Tiktok Glitch Effect */
    animation: glitch-anim 0.3s infinite;
}

.btn-zl:hover {
    box-shadow: 0 10px 25px rgba(0, 104, 255, 0.5);
}

/* Animation rung cho Tiktok */
@keyframes glitch-anim {
    0% {
        transform: translate(0) translateY(-5px) scale(1.1);
    }

    20% {
        transform: translate(-2px, 2px) translateY(-5px) scale(1.1);
    }

    40% {
        transform: translate(-2px, -2px) translateY(-5px) scale(1.1);
    }

    60% {
        transform: translate(2px, 2px) translateY(-5px) scale(1.1);
    }

    80% {
        transform: translate(2px, -2px) translateY(-5px) scale(1.1);
    }

    100% {
        transform: translate(0) translateY(-5px) scale(1.1);
    }
}

/* --- TOOLTIP (Chú thích hiện ra khi hover) --- */

.social-btn::before {
    content: attr(data-tooltip);
    position: absolute;
    top: -40px;
    background: #000;
    color: #fff;
    font-size: 0.75rem;
    padding: 5px 10px;
    border-radius: 5px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    font-weight: 600;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.social-btn::after {
    content: '';
    position: absolute;
    top: -12px;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.social-btn:hover::before,
.social-btn:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* 3. COPYRIGHT */
.footer-bottom {
    background-color: var(--footer-bg-dark);
}

.hover-white:hover {
    color: #fff !important;
}

/* --- MAP CLEAN FRAME --- */
.map-clean-frame {
    position: relative;
    width: 100%;
    height: 190px;
    border-radius: 15px;
    overflow: hidden;
    border: 5px solid #fff; /* Viền trắng tạo cảm giác khung ảnh */
    background: #eee; /* Màu nền chờ khi map chưa load */
    transition: transform 0.3s ease;
}

    /* Can thiệp vào iframe do Google sinh ra */
    .map-clean-frame iframe {
        width: 100% !important;
        height: 100% !important;
        border: none;
        display: block;
    }

    /* Hiệu ứng nhấc lên khi hover */
    .map-clean-frame:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.2) !important;
    }

/* Responsive */
@media (max-width: 991px) {
    .cta-floating-card {
        margin-top: 0;
        text-align: center;
    }

    .cta-icon-box {
        margin: 0 auto 15px;
    }

    .footer-section {
        margin-top: 0;
    }

    .footer-main .container {
        padding-top: 20px !important;
    }
}

