/* ==========================================
   FLOATING CONTACT
========================================== */

.floating-contact {
    position: fixed;

    right: 28px;
    bottom: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;

    gap: 14px;

    z-index: 99999;

    animation: floatingContactShow 0.6s ease forwards;
}


/* ==========================================
   BUTTON BASE
========================================== */

.floating-item {
    width: 62px;
    height: 62px;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    border: none;
    border-radius: 18px;

    color: #ffffff;

    text-decoration: none;

    font-size: 24px;

    cursor: pointer;

    background: linear-gradient(
        135deg,
        #ffb23e,
        #f47b20
    );

    box-shadow:
        0 10px 25px rgba(244, 123, 32, 0.28);

    transition:
        transform 0.3s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.3s ease,
        filter 0.3s ease;
}


/* ==========================================
   HOVER
========================================== */

.floating-item:hover {
    transform: translateY(-6px) scale(1.08);

    color: #ffffff;

    filter: brightness(1.05);

    box-shadow:
        0 18px 35px rgba(244, 123, 32, 0.42);
}


.floating-item:active {
    transform: scale(0.95);
}


/* ==========================================
   HOTLINE EFFECT
========================================== */

.hotline-btn {
    animation: hotlinePulse 2.5s infinite;
}


.hotline-btn::before {
    content: "";

    position: absolute;

    width: 100%;
    height: 100%;

    border-radius: 18px;

    border: 2px solid rgba(255, 150, 50, 0.5);

    animation: hotlineRing 2.5s infinite;

    pointer-events: none;
}


/* ==========================================
   TOOLTIP
========================================== */

.tooltip {
    position: absolute;

    right: 78px;
    top: 50%;

    transform:
        translateY(-50%)
        translateX(15px);

    background: #333333;

    color: #ffffff;

    padding: 9px 15px;

    border-radius: 8px;

    font-size: 13px;

    font-weight: 600;

    white-space: nowrap;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.18);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s;
}


/* TOOLTIP ARROW */

.tooltip::after {
    content: "";

    position: absolute;

    right: -6px;
    top: 50%;

    transform: translateY(-50%);

    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;

    border-left: 6px solid #333333;
}


/* SHOW TOOLTIP */

.floating-item:hover .tooltip {
    opacity: 1;

    visibility: visible;

    transform:
        translateY(-50%)
        translateX(0);
}


/* ==========================================
   FLOATING CONTAINERS
========================================== */

.floating-hotline,
.floating-media {
    position: relative;
}


/* ==========================================
   POPUP BASE
========================================== */

.hotline-list,
.media-list {
    position: absolute;

    right: 78px;
    bottom: 0;

    width: 235px;

    padding: 10px;

    background: rgba(255, 255, 255, 0.98);

    border-radius: 16px;

    border: 1px solid rgba(0, 0, 0, 0.06);

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.20);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateX(20px)
        translateY(5px);

    transition:
        opacity 0.3s ease,
        transform 0.3s cubic-bezier(.2, .8, .2, 1),
        visibility 0.3s;

    z-index: 100000;
}


/* ==========================================
   SHOW POPUP
========================================== */

.floating-hotline.active .hotline-list,
.floating-media.active .media-list {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform:
        translateX(0)
        translateY(0);
}


/* ==========================================
   POPUP TITLE
========================================== */

.hotline-title,
.media-title {
    padding:
        10px 12px
        12px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.8px;

    color: #f47b20;

    border-bottom:
        1px solid #eeeeee;

    margin-bottom: 5px;
}


/* ==========================================
   POPUP LINK
========================================== */

.hotline-list a,
.media-list a {
    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px;

    margin-top: 4px;

    border-radius: 10px;

    text-decoration: none;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


/* ==========================================
   POPUP LINK HOVER
========================================== */

.hotline-list a:hover,
.media-list a:hover {
    background: #fff4e8;

    transform:
        translateX(-4px);
}


/* ==========================================
   POPUP ICON
========================================== */

.hotline-list a i,
.media-list a i {
    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    color: #ffffff;

    background: linear-gradient(
        135deg,
        #ffb23e,
        #f47b20
    );

    font-size: 16px;

    flex-shrink: 0;

    box-shadow:
        0 5px 12px rgba(244, 123, 32, 0.25);
}


/* ==========================================
   POPUP TEXT
========================================== */

.hotline-list strong,
.media-list strong {
    color: #333333;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 0.2px;
}


/* ==========================================
   FLOATING ENTRANCE
========================================== */

@keyframes floatingContactShow {

    from {
        opacity: 0;

        transform:
            translateY(40px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }

}


/* ==========================================
   HOTLINE PULSE
========================================== */

@keyframes hotlinePulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(244, 123, 32, 0.45),
            0 10px 25px rgba(244, 123, 32, 0.28);
    }

    70% {
        box-shadow:
            0 0 0 14px rgba(244, 123, 32, 0),
            0 10px 25px rgba(244, 123, 32, 0.28);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(244, 123, 32, 0),
            0 10px 25px rgba(244, 123, 32, 0.28);
    }

}


/* ==========================================
   HOTLINE RING
========================================== */

@keyframes hotlineRing {

    0% {
        transform: scale(1);

        opacity: 0.6;
    }

    100% {
        transform: scale(1.4);

        opacity: 0;
    }

}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 768px) {

    .floating-contact {

        right: 15px;
        bottom: 20px;

        gap: 10px;

    }


    .floating-item {

        width: 54px;
        height: 54px;

        border-radius: 16px;

        font-size: 21px;

    }


    .hotline-btn::before {

        border-radius: 16px;

    }


    .hotline-list,
    .media-list {

        right: 66px;

        width: 220px;

    }


    .tooltip {

        display: none;

    }


    .hotline-list a,
    .media-list a {

        padding: 11px;

    }

}