/* ==========================================================================
   LINA ARCHITECTURE - FLOATING BUTTONS CSS
   WhatsApp & Phone Floating Action Buttons
   ========================================================================== */

/* --------------------------------------------------------------------------
   FLOATING BUTTONS CONTAINER
   -------------------------------------------------------------------------- */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 30%;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    z-index: var(--z-floating);
    opacity: 0;
    transform: translateX(20px);
    animation: floatingButtonsIn 0.6s ease 1s forwards;
}

@keyframes floatingButtonsIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* --------------------------------------------------------------------------
   FLOATING BUTTON BASE
   -------------------------------------------------------------------------- */
.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    color: var(--color-white);
    font-size: var(--text-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    position: relative;
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
    color: var(--color-white);
}

/* Pulse Animation */
.floating-btn::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: var(--radius-full);
    background: inherit;
    opacity: 0.3;
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   WHATSAPP BUTTON
   -------------------------------------------------------------------------- */
.floating-btn-whatsapp {
    background-color: var(--color-whatsapp);
}

.floating-btn-whatsapp:hover {
    background-color: #20bd5a;
}

/* --------------------------------------------------------------------------
   PHONE BUTTON
   -------------------------------------------------------------------------- */
.floating-btn-phone {
    background-color: var(--color-primary);
}

.floating-btn-phone:hover {
    background-color: #263a4d;
}

/* --------------------------------------------------------------------------
   TOOLTIP
   -------------------------------------------------------------------------- */
.floating-btn-tooltip {
    position: absolute;
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    pointer-events: none;
}

.floating-btn-tooltip::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: var(--color-primary);
}

.floating-btn:hover .floating-btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   RESPONSIVE STYLES
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .floating-buttons {
        right: 16px;
        bottom: 100px;
    }
    
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: var(--text-xl);
    }
    
    .floating-btn-tooltip {
        display: none;
    }
}
