/* ===================================
   Layout – Header • Footer • Grid
   =================================== */

/* HEADER */

.vx-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(255, 255, 255, 0.88) 100%
    );
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8),
        0 8px 32px rgba(14, 165, 233, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06),
        inset 0 -1px 0 rgba(var(--vz-sky-100-rgb), 0.5);
    border-bottom: 1px solid rgba(var(--vz-sky-200-rgb), 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.vx-header-left {
    display: flex;
    align-items: center;
    gap: 48px;
    min-width: 0;
}

.vx-logo a {
    font-weight: 900;
    letter-spacing: -0.03em;
    font-size: 26px;
    padding: 8px 16px;
    background: linear-gradient(135deg,
        var(--vz-sky-600) 0%,
        var(--vz-sky-700) 30%,
        #0369a1 60%,
        var(--vz-sunset-500) 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 12px;
    animation: gradientShift 8s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.vx-logo a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 2px;
    background: linear-gradient(135deg,
        var(--vz-sky-400) 0%,
        var(--vz-sky-600) 50%,
        var(--vz-sunset-400) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.vx-logo a:hover::before {
    opacity: 1;
}

.vx-logo a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--vz-sky-500),
        var(--vz-sunset-400),
        transparent
    );
    border-radius: 2px;
    filter: blur(1px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vx-logo a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.vx-logo a:hover {
    background-position: 100% 50%;
    transform: translateY(-1px);
}

.vx-nav {
    font-size: 15px;
}

.vx-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.vx-menu a {
    padding: 10px 18px;
    color: var(--vx-text-soft);
    position: relative;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.vx-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(var(--vz-sky-100-rgb), 0.7),
        rgba(var(--vz-sky-50-rgb), 0.9)
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.vx-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        var(--vz-sky-500),
        var(--vz-sunset-400),
        transparent
    );
    border-radius: 2px 2px 0 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: blur(0.5px);
}

.vx-menu a:hover {
    color: var(--vz-sky-700);
    transform: translateY(-2px);
    box-shadow:
        0 4px 12px rgba(var(--vz-sky-200-rgb), 0.3),
        0 2px 4px rgba(0, 0, 0, 0.06);
}

.vx-menu a:hover::before {
    opacity: 1;
}

.vx-menu a:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.vx-menu a.current-menu-item,
.vx-menu a.vx-menu-active {
    color: var(--vz-sky-700);
    font-weight: 700;
    background: linear-gradient(135deg,
        rgba(var(--vz-sky-100-rgb), 0.8),
        rgba(var(--vz-sky-50-rgb), 0.95)
    );
    box-shadow:
        0 2px 8px rgba(var(--vz-sky-200-rgb), 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.vx-menu a.current-menu-item::after,
.vx-menu a.vx-menu-active::after {
    transform: translateX(-50%) scaleX(1);
}

/* HEADER RIGHT */

.vx-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.vx-header-right .vx-btn--primary {
    padding: 11px 28px;
    font-size: 15px;
    font-weight: 800;
    color: #ffffff !important;
    box-shadow: 0 0 0 0 rgba(251, 113, 133, 0.4),
                0 8px 20px rgba(244, 63, 94, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 30%, #be123c 70%, #9f1239 100%) !important;
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.vx-header-right .vx-btn--primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.vx-header-right .vx-btn--primary:hover::before {
    left: 100%;
}

.vx-header-right .vx-btn--primary:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 30%, #be123c 70%, #9f1239 100%) !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.35),
                0 12px 28px rgba(244, 63, 94, 0.5),
                0 0 40px rgba(244, 63, 94, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 4px rgba(251, 113, 133, 0.35),
                    0 12px 28px rgba(244, 63, 94, 0.5),
                    0 0 40px rgba(244, 63, 94, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(251, 113, 133, 0.25),
                    0 16px 36px rgba(244, 63, 94, 0.6),
                    0 0 60px rgba(244, 63, 94, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.6);
    }
}

.vx-header-right .vx-btn--primary:active {
    transform: translateY(0) scale(0.98);
}



/* MAIN */

.vx-main {
    min-height: calc(100vh - 64px - 80px);
}

/* FOOTER */

.vx-footer {
    padding: 24px 0;
    border-top: 1px solid rgba(var(--vz-sky-200-rgb), 0.2);
    background: transparent;
    margin-top: auto;
}

.vx-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--vx-text-mute);
}

.vx-footer-text {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vx-footer-text:hover .vx-footer-flag {
    animation-play-state: running;
    transform: scale(1.1);
}

.vx-footer-text:hover .vx-footer-heart {
    animation-play-state: running;
    transform: scale(1.2);
}

.vx-footer-flag {
    font-size: 17px;
    display: inline-block;
    animation: wave 3s ease-in-out infinite;
    animation-play-state: paused;
    transition: transform 0.3s ease;
}

.vx-footer-heart {
    color: #f43f5e;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
    animation-play-state: paused;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.vx-footer-year {
    font-weight: 700;
    background: linear-gradient(135deg, var(--vz-sky-600), var(--vz-sky-700), var(--vz-sunset-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: opacity 0.3s ease;
}

.vx-footer-text:hover .vx-footer-year {
    opacity: 0.8;
}

.vx-footer-divider {
    opacity: 0.25;
    margin: 0 4px;
}

/* Animations */

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.2); }
    20%, 40% { transform: scale(1); }
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
}

/* GRID & SECTION */

.vx-section {
    padding: 28px 0;
}

.vx-grid {
    display: grid;
    gap: 20px;
}

.vx-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.vx-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* RESPONSIVE */

@media (max-width: 767.98px) {
    .vx-header-inner {
        height: 56px;
    }

    .vx-nav--desktop {
        display: none;
    }

    .vx-header-actions {
        display: none;
    }

    .vx-nav--mobile {
        display: none;
    }

    .vx-nav--mobile.is-open {
        display: block;
    }
}

@media (min-width: 768px) {
    .vx-nav-toggle {
        display: none;
    }
}

@media (max-width: 1023.98px) {
    .vx-grid--3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 639.98px) {
    .vx-grid--2,
    .vx-grid--3 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ===================================
   BOTTOM NAVIGATION BAR (Mobile)
   =================================== */

.vx-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .vx-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        display: flex;
        justify-content: space-around;
        align-items: center;
        background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.98) 0%,
            rgba(255, 255, 255, 0.95) 100%
        );
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        border-top: 1px solid rgba(var(--vz-sky-200-rgb), 0.3);
        padding: 8px 0 max(8px, env(safe-area-inset-bottom));
        box-shadow:
            0 -1px 0 rgba(255, 255, 255, 0.8),
            0 -8px 32px rgba(14, 165, 233, 0.08),
            0 -1px 3px rgba(0, 0, 0, 0.06);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .vx-bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 6px 12px;
        min-width: 64px;
        text-decoration: none;
        color: var(--vz-navy-600);
        border-radius: 12px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
    }

    .vx-bottom-nav-item::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 32px;
        height: 3px;
        border-radius: 0 0 3px 3px;
        background: linear-gradient(90deg,
            var(--vz-sky-500),
            var(--vz-sky-600)
        );
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .vx-bottom-nav-item:active {
        transform: scale(0.95);
    }

    .vx-bottom-nav-icon {
        font-size: 22px;
        line-height: 1;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        filter: grayscale(0.3);
    }

    .vx-bottom-nav-icon--large {
        font-size: 26px;
    }

    .vx-bottom-nav-label {
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        transition: all 0.3s ease;
    }

    /* Active state */
    .vx-bottom-nav-item.is-active {
        color: var(--vz-sky-700);
    }

    .vx-bottom-nav-item.is-active::before {
        transform: translateX(-50%) scaleX(1);
    }

    .vx-bottom-nav-item.is-active .vx-bottom-nav-icon {
        filter: grayscale(0);
        transform: scale(1.1);
    }

    .vx-bottom-nav-item.is-active .vx-bottom-nav-label {
        color: var(--vz-sky-700);
        font-weight: 700;
    }

    /* Primary action (center button) */
    .vx-bottom-nav-item--primary {
        background: linear-gradient(135deg,
            var(--vz-sky-500),
            var(--vz-sky-600)
        );
        color: white;
        margin: 0 4px;
        padding: 10px 16px;
        box-shadow:
            0 4px 16px rgba(14, 165, 233, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .vx-bottom-nav-item--primary::before {
        display: none;
    }

    .vx-bottom-nav-item--primary .vx-bottom-nav-icon {
        filter: none;
    }

    .vx-bottom-nav-item--primary .vx-bottom-nav-label {
        color: white;
        font-weight: 700;
    }

    .vx-bottom-nav-item--primary:active {
        transform: scale(0.92);
        box-shadow:
            0 2px 8px rgba(14, 165, 233, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    /* Adjustments for bottom nav */
    .vx-main {
        padding-bottom: 80px;
    }

    .vx-footer {
        margin-bottom: 72px;
    }

    .vx-filter-toggle-btn {
        bottom: 88px !important;
    }

    .vx-header-right .vx-btn--primary {
        padding: 9px 20px;
        font-size: 14px;
    }

    .vx-logo a {
        font-size: 22px;
        padding: 6px 12px;
    }
}
/* ============================================
   VietAZ – Footer Legal Links
   ============================================ */

.vx-footer {
    padding: 24px 0 32px;
}

.vx-footer-inner {
    text-align: center;
}

.vx-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
}

.vx-legal-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: #2563eb;
    text-decoration: none;
    transition: color 0.18s ease, transform 0.15s ease;
}

.vx-legal-item:hover {
    color: #1d4ed8;
    transform: translateY(-1px);
}

.vx-legal-ico {
    font-size: 16px;
    line-height: 1;
}

.vx-footer-meta {
    margin-top: 16px;
    font-size: 14px;
    color: #6b7280;
}
/* ==== VietAZ Header – Logo gần menu hơn ==== */

/* Giảm khoảng cách giữa logo và menu */
.vx-header-left {
    gap: 20px;          /* mặc định đang 48px, bạn có thể thử 16–24 tùy mắt */
}

/* Nếu muốn logo gọn hơn một chút để không chiếm quá nhiều chiều ngang */
.vx-logo a {
    padding: 6px 12px;  /* trước là 8px 16px – thu nhỏ nhẹ */
    font-size: 24px;    /* từ 26px xuống 24px cho thanh header thoáng hơn */
}
