/**
 * Floating Buttons CSS
 * Scroll-to-Top and WhatsApp buttons
 */

/* Container for floating buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Left side buttons (WhatsApp) */
.floating-buttons--left {
    left: 20px;
}

/* Right side buttons (Scroll to Top) */
.floating-buttons--right {
    right: 20px;
}

/* Common button styles */
.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    outline: none;
}

/* WhatsApp Button - Larger circular design */
.floating-btn--whatsapp {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 26px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
}

.floating-btn--whatsapp:hover {
    background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
    color: #fff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

.floating-btn--whatsapp:active {
    transform: translateY(-1px) scale(1.02);
}

.floating-btn--whatsapp i {
    animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Scroll to Top Button - Smaller, sleek pill/rounded design */
.floating-btn--scroll-top {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 16px;
    background: #260160;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-btn--scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.floating-btn--scroll-top:hover {
    background: rgba(165, 42, 42, 1);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 26, 26, 0.3);
}

.floating-btn--scroll-top:active {
    transform: translateY(0);
}

.floating-btn--scroll-top i {
    transition: transform 0.2s ease;
}

.floating-btn--scroll-top:hover i {
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 20px;
    }

    .floating-buttons--left {
        left: 15px;
    }

    .floating-buttons--right {
        right: 15px;
    }

    .floating-btn--whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .floating-btn--scroll-top {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .floating-buttons {
        bottom: 15px;
    }

    .floating-buttons--left {
        left: 12px;
    }

    .floating-buttons--right {
        right: 12px;
    }

    .floating-btn--whatsapp {
        width: 48px;
        height: 48px;
        font-size: 22px;
    }

    .floating-btn--scroll-top {
        width: 34px;
        height: 34px;
        font-size: 13px;
        border-radius: 8px;
    }
}