/* asset/css/custom-footer.css */

/* Animation */
@keyframes tooltipBounce {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes arrowPoint {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-3px, -3px); }
}

/* Tooltip */
#zalo-location-tooltip {
    display: none;
    position: fixed;
    bottom: 90px;
    left: 20px;
    z-index: 999999;
    background: linear-gradient(135deg, #0068FF, #0052cc);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 20px rgba(0, 104, 255, 0.35);
    border: 1px solid rgba(255,255,255,0.2);
    max-width: 320px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    animation: tooltipBounce 0.4s ease;
}

/* Email và Zalo float */
.email-float,
.zalo-float {
    position: fixed;
    left: 20px;
    z-index: 9999;
    width: 80px;
    height: 80px;
    display: block;
    text-decoration: none;
}
.email-float {
    bottom: 120px;
    animation: email-ring 1.5s infinite;
}
.zalo-float {
    bottom: 20px;
    animation: zalo-ring 1.5s infinite;
}
.email-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
}
.email-float img,
.zalo-float img {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    box-sizing: border-box;
    display: block;
    transition: transform .3s ease;
}
.email-float img:hover,
.zalo-float img:hover {
    transform: scale(1.1);
}
@keyframes zalo-ring {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(8deg); }
}
@keyframes email-ring {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
    75% { transform: rotate(8deg); }
}
.email-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    background-color: #ff3b30;
    color: #ffffff;
    border-radius: 50%;
    font-size: 13px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 59, 48, 0.4);
    opacity: 0;
    transform: scale(0);
    animation: popBadge 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 5s forwards;
    z-index: 10;
}
@keyframes popBadge {
    to { opacity: 1; transform: scale(1); }
}
.email-text {
    position: fixed;
    left: 112px;
    bottom: 160px;
    z-index: 9998;
    background: #0b6b86;
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border: 1px solid #f0f0f0;
    opacity: 0;
    pointer-events: auto;
    animation: slideText 0.5s ease 5.4s forwards, pulseText 1.5s ease-in-out 5.9s infinite;
}
.email-text .close-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #ffffff;
    color: #000000;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.email-text .close-btn:hover {
    transform: scale(1.2);
    background-color: #e02b21;
}
@keyframes slideText {
    from { opacity: 0; transform: translateY(50%) translateX(-15px) scale(1); }
    to { opacity: 1; transform: translateY(50%) translateX(0) scale(1); }
}
@keyframes pulseText {
    0%, 100% { transform: translateY(50%) scale(1); }
    50% { transform: translateY(50%) scale(1.08); }
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .email-float, .zalo-float {
        left: 10px;
        width: 45px;
        height: 45px;
    }
    .email-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    .email-float img, .zalo-float img {
        width: 45px !important;
        height: 45px !important;
        max-width: 45px !important;
        max-height: 45px !important;
        padding: 6px;
    }
    .zalo-float { bottom: 15px; }
    .email-float { bottom: 70px; }
    .email-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }
    .email-text {
        left: 63px !important;
        bottom: 92px !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        animation: slideTextFloatMobile 0.5s ease 5.4s forwards, pulseTextFloatMobile 1.5s ease-in-out 5.9s infinite !important;
    }
    .email-text .close-btn {
        top: -6px !important;
        right: -6px !important;
        transform: none !important;
        width: 20px !important;
        height: 20px !important;
        font-size: 11px !important;
    }
    @keyframes slideTextFloatMobile {
        from { opacity: 0; transform: translateY(50%) translateX(-15px) scale(1); }
        to { opacity: 1; transform: translateY(50%) scale(1); }
    }
    @keyframes pulseTextFloatMobile {
        0%, 100% { transform: translateY(50%) scale(1); }
        50% { transform: translateY(50%) scale(1.04); }
    }
}