/* Fixed Contact Buttons Component */

/* ===================================
   FIXED CONTACT CONTAINER
   =================================== */

.fixed-contact {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.fixed-contact__item {
    position: relative;
}

.fixed-contact__link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    background: white;
    border-radius: 50px;
    padding: 15px 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 80px;
}

.fixed-contact__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.fixed-contact__text {
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    color: #333;
    text-align: center;
    white-space: nowrap;
}

.bt-fixed-contact {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===================================
   BUTTON SPECIFIC STYLES
   =================================== */

/* Zalo button */
.chat-zalo .fixed-contact__link:hover {
    background: #0068FF;
    color: white;
}

.chat-zalo .fixed-contact__link:hover .fixed-contact__text {
    color: white;
}

/* Map direction button */
.map-direction .fixed-contact__link:hover {
    background: #EA4335;
    color: white;
}

.map-direction .fixed-contact__link:hover .fixed-contact__text {
    color: white;
}

/* Hotline button */
.hot-line .fixed-contact__link:hover {
    background: #25D366;
    color: white;
}

.hot-line .fixed-contact__link:hover .fixed-contact__text {
    color: white;
}

/* ===================================
   HOVER EFFECTS FOR SVG ICONS
   =================================== */

.fixed-contact__link:hover svg path:first-child {
    fill: white !important;
}

.fixed-contact__link:hover svg circle:first-child {
    fill: white !important;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 768px) {
    .fixed-contact {
        right: 15px;
        gap: 12px;
    }
    
    .fixed-contact__link {
        padding: 12px 8px;
        min-width: 70px;
    }
    
    .fixed-contact__text {
        font-size: 11px;
        margin-top: 6px;
    }
    
    .bt-fixed-contact svg {
        width: 32px;
        height: 32px;
    }
}

@media (max-width: 480px) {
    .fixed-contact {
        right: 10px;
        gap: 10px;
    }
    
    .fixed-contact__link {
        padding: 10px 6px;
        min-width: 60px;
    }
    
    .fixed-contact__text {
        font-size: 10px;
        margin-top: 5px;
    }
    
    .bt-fixed-contact svg {
        width: 28px;
        height: 28px;
    }
}

/* ===================================
   ANIMATIONS
   =================================== */

/* Animation for new visitors */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.3);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scale(1.05);
    }
    70% {
        transform: translateY(-50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }
}

.fixed-contact {
    animation: bounceIn 0.8s ease-out;
}

/* ===================================
   HOVER TOOLTIP
   =================================== */

.fixed-contact__item {
    position: relative;
}

.fixed-contact__item::before {
    content: attr(data-tooltip);
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 15px;
    z-index: 1001;
}

.fixed-contact__item::after {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-right: 9px;
    z-index: 1001;
}

.fixed-contact__item:hover::before,
.fixed-contact__item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   ACCESSIBILITY
   =================================== */

.fixed-contact__link:focus {
    outline: 2px solid #0068FF;
    outline-offset: 2px;
}

/* ===================================
   PRINT STYLES
   =================================== */

@media print {
    .fixed-contact {
        display: none;
    }
}

