﻿/* =========================================================================
   Component: _fab-premium.css
   Phong cách: Hyper-Glass Neon & Floating Phone Tag
   ========================================================================= */

.fab-master-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* --- Nhãn số điện thoại lơ lửng --- */
.phone-display-tag {
    position: absolute;
    right: 80px;
    top: 12px;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 193, 7, 0.3);
    padding: 8px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
    white-space: nowrap;
}

    .phone-display-tag .number {
        color: #fff;
        font-weight: 900;
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #00E676;
    border-radius: 50%;
    box-shadow: 0 0 10px #00E676;
    animation: dot-pulse 1.5s infinite;
}

/* --- Nút bấm pha lê chính --- */
.fab-trigger-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    text-decoration: none !important;
}

.glass-surface {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 65, 108, 0.9), rgba(255, 75, 43, 0.9));
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 15px 35px rgba(255, 75, 43, 0.4);
}

/* Tia sáng chạy quanh viền */
.neon-border-track {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 70%, #ffc107 100%);
    animation: rotate-neon 2s linear infinite;
    z-index: 0;
}

.icon-wrap {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 1.5rem;
}

.close-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0) rotate(-90deg);
    opacity: 0;
    transition: all 0.4s ease;
}

/* --- Menu mở rộng --- */
.fab-expand-menu {
    position: absolute;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.expand-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    position: relative;
    text-decoration: none !important;
}

    .expand-item .label {
        position: absolute;
        right: 65px;
        background: #222;
        padding: 4px 12px;
        border-radius: 6px;
        font-size: 0.8rem;
        white-space: nowrap;
        opacity: 0;
        transition: 0.3s;
    }

    .expand-item:hover .label {
        opacity: 1;
    }

    .expand-item.zalo {
        color: #0084FF;
    }

    .expand-item.maps {
        color: #EA4335;
    }

/* --- Trạng thái Active --- */
.fab-master-container.active .phone-display-tag {
    opacity: 0;
    transform: translateX(20px);
}

.fab-master-container.active .fab-expand-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.fab-master-container.active .phone-icon {
    opacity: 0;
    transform: scale(0);
}

.fab-master-container.active .close-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(0);
}

/* Animations */
@keyframes rotate-neon {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dot-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(0, 230, 118, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
    }
}

@media (max-width: 768px) {
    .fab-master-container {
        bottom: 30px;
        right: 20px;
    }

    .phone-display-tag {
        right: 75px;
        padding: 6px 14px;
    }

        .phone-display-tag .number {
            font-size: 0.95rem;
        }
}

/* =========================================================================
   Component: _navigation-hub.css
   Phong cách: Aero-Glass Matrix (Hotline + BackToTop)
   ========================================================================= */

.navigation-hub {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

/* --- Nút chung --- */
.hub-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* --- Nút Quay về đầu trang --- */
.btn-back-to-top {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 1.2rem;
    opacity: 0;
    transform: scale(0.5);
    visibility: hidden;
}

    .btn-back-to-top.show {
        opacity: 1;
        transform: scale(1);
        visibility: visible;
    }

    .btn-back-to-top:hover {
        background: rgba(255, 255, 255, 0.15);
        color: var(--brand-yellow);
    }

/* --- Hotline Ribbon (Dải số điện thoại) --- */
.hub-main {
    display: flex;
    align-items: center;
    position: relative;
}

.hotline-ribbon {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 45px 10px 20px;
    border-radius: 100px;
    margin-right: -35px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hotline-number {
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: hub-blink 1.5s infinite;
}

/* --- Nút Trigger chính --- */
.btn-trigger {
    background: linear-gradient(135deg, #FF416C, #FF4B2B);
    color: #fff;
    font-size: 1.4rem;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(255, 75, 43, 0.3);
}

.icon-box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg) scale(0);
    transition: all 0.4s;
}

/* --- Laser Ring Effect --- */
.laser-ring {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 60%, var(--brand-yellow) 100%);
    animation: rotate-hub 2s linear infinite;
    z-index: -1;
}

/* --- Menu hành động --- */
.hub-menu {
    position: absolute;
    bottom: 140px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hub-item {
    width: 50px;
    height: 50px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
}

    .hub-item.zalo {
        color: #0084FF;
        transition-delay: 0.1s;
    }

    .hub-item.maps {
        color: #FFD600;
        transition-delay: 0.2s;
    }

/* --- States (Trạng thái) --- */
.navigation-hub.active .btn-trigger {
    background: #222;
}

.navigation-hub.active .icon-call {
    opacity: 0;
    transform: scale(0);
}

.navigation-hub.active .icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.navigation-hub.active .hub-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.navigation-hub.active .hotline-ribbon {
    opacity: 0;
    transform: translateX(20px);
    pointer-events: none;
}

@keyframes hub-blink {
    50% {
        opacity: 0.2;
    }
}

@keyframes rotate-hub {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 576px) {
    .navigation-hub {
        bottom: 30px;
        right: 20px;
    }

    .hotline-ribbon {
        padding: 8px 40px 8px 15px;
    }

    .hotline-number {
        font-size: 1rem;
    }
}