/* ============================================
   FLOATING TELEGRAM BUTTON
   With rotating circular text
   ============================================ */

.floating-btn {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 39;

    /* Remove link styles */
    text-decoration: none;
    cursor: pointer;

    /* Size for the whole component */
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;

    /* Pulse animation */
    animation: floating-pulse 2s ease-in-out infinite;
}

/* Pulse animation */
@keyframes floating-pulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.12);
    }
}

/* Rotating text container */
.floating-btn__text {
    position: absolute;
    width: 65%;
    height: 65%;
    animation: rotate-text 10s linear infinite;
    z-index: 3;
}

.floating-btn__text img {
    width: 100%;
    height: 100%;
}

/* Icon container - centered */
.floating-btn__icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Outer border (accent) */
.floating-btn__outer {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    transition: box-shadow 0.3s ease;
}

/* Middle border (dark) */
.floating-btn__middle {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--color-dark-2);
    border-radius: 50%;
}

/* Inner border (white) */
.floating-btn__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--color-white);
    border-radius: 50%;
}

/* Icon styling */
.floating-btn img {
    display: block;
    border-radius: 50%;
}

/* Rotation animation for text (counter-clockwise) */
@keyframes rotate-text {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/* Hover effect */
.floating-btn:hover {
    animation-play-state: paused;
    transform: translateY(-50%) scale(1.1);
}

.floating-btn:hover .floating-btn__text {
    animation-play-state: paused;
}

.floating-btn:hover .floating-btn__outer {
    box-shadow: 0 0 26px 8px var(--color-accent);
}

/* Large screens - keep button within container */
@media (min-width: 1500px) {
    .floating-btn {
        right: calc((100vw - 1440px) / 2 - 130px);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .floating-btn {
        right: -6px;
        width: 140px;
        height: 140px;
    }

    .floating-btn__text {
        width: 71%;
        height: 71%;
    }
}
