/* ========== VUDEV Premium Minimalist Footer ========== */

/* Khai báo biến Tối Giản hỗ trợ Đổi Màu Sáng/Tối */
:root {
    --f-bg: #ffffff; 
    --f-text: #111111;
    --f-text-muted: #666666;
    --f-border: #e2e8f0;
    --f-border-subtle: rgba(0,0,0,0.08);
    
    --f-btn-primary-bg: #0f172a;
    --f-btn-primary-text: #ffffff;
    
    --f-btn-outline-border: #cbd5e1;
    --f-btn-outline-hover: rgba(0,0,0,0.05);
    
    --f-link-hover: #000000;
}

[data-theme="dark"] {
    --f-bg: #030712;
    --f-text: #f5f5f5;
    --f-text-muted: #999999;
    --f-border-subtle: rgba(255,255,255,0.08); /* B&W Premium config */
    
    --f-btn-primary-bg: #f8fafc;
    --f-btn-primary-text: #030712;
    
    --f-btn-outline-border: #334155;
    --f-btn-outline-hover: rgba(255,255,255,0.08);
    
    --f-link-hover: #ffffff;
}

/* Wrapper - Sao chép hiệu ứng Glass Bóng Bóng (Glossy Bubble) từ Header */
.vudev-footer {
    width: calc(100% - 48px);
    max-width: 1280px;
    margin: 32px auto;
    
    background: transparent !important; 
    color: var(--f-text);
    padding: 32px 40px 0 40px; 
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    border: none; /* Khử viền mặc định, thay bằng bóng nổi inset */
    border-radius: 28px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    box-shadow: 
        inset 0 2px 10px rgba(255, 255, 255, 0.4),
        inset 0 -2px 10px rgba(0, 0, 0, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.08);
        
    position: relative;
    overflow: hidden; /* Che viền gradient chạy thừa phía ngoài */
    z-index: 10;
}

/* Premium Hover cho toàn bộ Footer khối Box */
.vudev-footer:hover {
    transform: translateY(-4px);
    box-shadow: 
        inset 0 2px 10px rgba(255, 255, 255, 0.5),
        inset 0 -2px 10px rgba(0, 0, 0, 0.05),
        0 20px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .vudev-footer {
    box-shadow: 
        inset 0 2px 10px rgba(255, 255, 255, 0.05),
        0 10px 40px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .vudev-footer:hover {
    box-shadow: 
        inset 0 2px 10px rgba(255, 255, 255, 0.1),
        0 20px 50px rgba(0, 0, 0, 0.6);
}

/* Lớp nền đặc bên trong chặn màu ngấm từ viền LED */
.vudev-footer::after {
    content: '';
    position: absolute;
    inset: 1.5px; 
    border-radius: 26.5px;
    background: var(--f-bg); /* Màu đặc */
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .vudev-footer::after {
    background: var(--f-bg);
}

/* Viền chạy LED gradient xung quanh (Rotate Border sao chép từ Header) */
.vudev-footer::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250%; 
    height: 500%;
    background: conic-gradient(from 0deg, transparent 65%, red, orange, yellow, green, blue, indigo, violet);
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotateBorder 4s linear infinite;
    z-index: -2;
}

@keyframes rotateBorder {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Lên lớp nội dung nổi ên trên */
.footer-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== 1. Khối CTA Tối Giản ===== */
.footer-cta-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 24px 0; 
    margin-bottom: 0px;
}

.cta-title {
    font-size: 32px; 
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px; 
    line-height: 1.15;
    color: var(--f-text);
    transition: color 0.4s ease;
}

.cta-desc {
    font-size: 15px; 
    color: var(--f-text-muted);
    max-width: 500px;
    line-height: 1.5;
    transition: color 0.4s ease;
}

.cta-actions {
    display: flex;
    gap: 12px; 
}

/* Hover Pill Shape cho Button */
.footer-cta-section .btn {
    padding: 12px 28px; 
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px; 
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-cta-section .btn-primary {
    background-color: var(--f-btn-primary-bg);
    color: var(--f-btn-primary-text);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1; /* Make sure text is above gradient */
}

/* Background gradient ẩn của Zalo */
.footer-cta-section .btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0068ff, #00a2ff); /* Màu Zalo */
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    border-radius: 100px;
}

.footer-cta-section .btn-primary:hover::before {
    opacity: 1; /* Lộ Gradient Zalo */
}

/* Tia sáng xẹt ngang chạy liên tục giống Header */
.footer-cta-section .btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-20deg);
    animation: premiumShine 3s infinite cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2; /* Trên cả background Zalo */
}

[data-theme="dark"] .footer-cta-section .btn-primary::after {
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
}

@keyframes premiumShine {
    0% { left: -100%; }
    50%, 100% { left: 200%; }
}

.footer-cta-section .btn-primary:hover {
    color: #fff !important; /* Áp đảo dark mode */
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 104, 255, 0.4);
    border-color: transparent !important;
}

[data-theme="dark"] .footer-cta-section .btn-primary:hover {
    box-shadow: 0 15px 30px rgba(0, 162, 255, 0.5);
}

.footer-cta-section .btn-outline {
    background-color: transparent;
    color: var(--f-text);
    border: 1px solid var(--f-btn-outline-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Background gradient ẩn của Telegram */
.footer-cta-section .btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0088cc, #00c6ff); /* Màu Telegram */
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    border-radius: 100px;
}

.footer-cta-section .btn-outline:hover::before {
    opacity: 1; /* Lộ Gradient Telegram */
}

.footer-cta-section .btn-outline:hover {
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 136, 204, 0.4);
}

[data-theme="dark"] .footer-cta-section .btn-outline:hover {
    box-shadow: 0 15px 30px rgba(0, 198, 255, 0.5);
}

/* ===== 2. Main Footer Layout ===== */
.footer-divider {
    height: 1px;
    background-color: var(--f-border-subtle);
    margin-bottom: 32px; 
    transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.footer-divider.subtle {
    margin: 32px 0 20px; 
    background-color: var(--f-border-subtle);
}

.footer-main {
    display: grid;
    grid-template-columns: 2.5fr 1fr 1fr 1fr;
    gap: 24px; 
}



/* Branding Logo Minimalist nhưng Màu chạy liên tục */
.footer-logo {
    display: inline-block;
    font-size: 26px; 
    font-weight: 900;
    letter-spacing: -1.5px;
    
    background: linear-gradient(to right, #0ea5e9, #ec4899, #f59e0b, #10b981, #0ea5e9);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    animation: logoColorShift 3s linear infinite;
    
    text-decoration: none;
    margin-bottom: 20px; 
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.4));
}

@keyframes logoColorShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

[data-theme="dark"] .footer-logo:hover {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.brand-desc {
    font-size: 15px; 
    line-height: 1.6;
    color: var(--f-text-muted);
    margin-bottom: 24px; 
    max-width: 320px;
}

/* Hover Hình Oval cho Mạng xã hội */
.social-links {
    display: flex;
    gap: 10px; 
}



.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; 
    height: 28px; 
    border-radius: 100px;
    border: 1px solid var(--f-btn-outline-border);
    color: var(--f-text-muted);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy physics */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Ẩn màu Brand Premium VUDEV đằng sau Social Link */
.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ec4899, #f59e0b); /* Gradient VUDEV Pink/Orange */
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
    border-radius: 100px;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover {
    color: #fff !important;
    border-color: transparent !important;
    transform: translateY(-5px) scale(1.15); /* Nảy mạnh mập mờ */
    box-shadow: 0 12px 24px rgba(236, 72, 153, 0.4); /* Bóng hồng cam sực nức */
}

[data-theme="dark"] .social-links a:hover {
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.5); /* Bóng glow ngả vàng đậm trên nền đen */
}

/* Cột Navigation */
.col-title {
    font-size: 12px; 
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    color: var(--f-text);
    margin-bottom: 16px; 
    transition: color 0.4s ease;
}

/* Desktop Accordion chevron hidden */
.accordion-title .chevron {
    display: none;
    width: 16px;
    height: 16px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px; 
}



.footer-nav a {
    color: var(--f-text-muted);
    text-decoration: none;
    font-size: 15px; 
    font-weight: 500;
    padding: 6px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* Gạch chân dải màu Gradient (Giống Header 100%) */
.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #0ea5e9, #ec4899);
    border-radius: 2px;
    transition: transform 0.3s ease, width 0.3s ease;
    opacity: 0;
}

.footer-nav a:hover {
    color: #0ea5e9;
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
}

.footer-nav a:hover::after {
    transform: translateX(-50%) scaleX(1);
    width: 100%;
    opacity: 1;
}

/* Cột Contact Details */
.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px; 
}



.contact-info li {
    display: flex;
    flex-direction: column;
    gap: 4px; 
}

.info-label {
    font-size: 12px; 
    color: var(--f-text-muted);
}

.info-text {
    font-size: 15px; 
    font-weight: 500;
    color: var(--f-text);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    width: fit-content;
}

.hover-line {
    position: relative;
    display: inline-block;
    padding: 6px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Gạch chân dải màu Gradient (Giống Header 100%) */
.hover-line::after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #0ea5e9, #ec4899);
    border-radius: 2px;
    transition: transform 0.3s ease, width 0.3s ease;
    opacity: 0;
}

.hover-line:hover {
    color: #0ea5e9;
    text-shadow: 0 0 8px rgba(14, 165, 233, 0.3);
}

.hover-line:hover::after {
    transform: translateX(-50%) scaleX(1);
    width: 100%;
    opacity: 1;
}

/* ===== 3. Footer Bottom ===== */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px; 
    font-size: 13px; 
    color: var(--f-text-muted);
}

.developed-by span {
    font-weight: 600;
    color: var(--f-text);
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 16px; 
}

.legal-links a {
    color: var(--f-text-muted);
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.legal-links a:hover {
    color: var(--f-link-hover);
}

.legal-links .dot {
    color: var(--f-border);
}

/* ===== Responsive Setup ===== */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 60px 40px; 
    }
    
    .footer-cta-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }
}

@media (max-width: 860px) {
    .vudev-footer {
        padding: 32px 24px 0 24px;
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    .footer-cta-section {
        padding: 0 0 24px 0;
    }
}

@media (max-width: 640px) {
    .vudev-footer {
        width: calc(100% - 24px);
        padding: 24px 20px 0 20px;
        border-radius: 20px;
        margin: 20px auto;
    }

    .vudev-footer::after {
        border-radius: 18.5px; 
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 16px; /* Gọn hơn cho Accordion */
    }
    
    /* Mobile Accordion Styles */
    .accordion-col .accordion-title {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        padding: 12px 0;
        margin-bottom: 0;
        border-bottom: 1px solid transparent;
        transition: all 0.3s ease;
    }
    
    .accordion-title .chevron {
        display: block;
    }
    
    .accordion-col.active .accordion-title {
        border-bottom-color: var(--f-border-subtle);
        margin-bottom: 12px;
        padding-bottom: 12px;
    }
    
    .accordion-col.active .chevron {
        transform: rotate(180deg);
    }
    
    .accordion-content {
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .accordion-col.active .accordion-content {
        max-height: 400px;
        opacity: 1;
        margin-top: 8px;
        margin-bottom: 16px;
    }

    .cta-actions {
        flex-direction: row;
        width: 100%;
        gap: 12px;
    }

    .footer-cta-section .btn {
        flex: 1;
        width: auto;
        padding: 12px 4px;
        font-size: 13px;
    }
    
    .cta-title {
        font-size: 28px;
    }
    
    .footer-divider.subtle {
        margin: 16px 0 16px; 
    }
    .footer-divider {
        margin-bottom: 24px;
    }
}
