/**
 * One Elementor - One Floating Buttons Widget
 * Beautiful floating buttons with stunning effects
 */

/* ========================================
   Floating Buttons Container
======================================== */
.oe-floating-buttons {
    position: fixed;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    bottom: 100px;
}

.oe-floating-buttons.position-left {
    left: 20px;
}

.oe-floating-buttons.position-right {
    right: 20px;
}

/* ========================================
   Button Item
======================================== */
.oe-floating-button-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--button-bg-color, #0084FF);
    color: var(--button-icon-color, #FFFFFF);
    text-decoration: none;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    margin-bottom: 15px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    animation: slideInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.oe-floating-button-item:last-child {
    margin-bottom: 0;
}

/* Stagger animation for each button */
.oe-floating-button-item[data-delay="0"] {
    animation-delay: 0.1s;
}

.oe-floating-button-item[data-delay="0.1"] {
    animation-delay: 0.2s;
}

.oe-floating-button-item[data-delay="0.2"] {
    animation-delay: 0.3s;
}

.oe-floating-button-item[data-delay="0.3"] {
    animation-delay: 0.4s;
}

.oe-floating-button-item[data-delay="0.4"] {
    animation-delay: 0.5s;
}

/* Slide in animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Hover effects */
.oe-floating-button-item:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.oe-floating-button-item:active {
    transform: translateY(-3px) scale(1.05);
}

/* ========================================
   Icon
======================================== */
.oe-floating-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 28px;
    line-height: 1;
    color: var(--button-icon-color, #FFFFFF);
    transition: transform 0.3s ease;
    z-index: 2;
    position: relative;
}

.oe-floating-button-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    stroke: currentColor;
}

.oe-floating-button-item:hover .oe-floating-button-icon {
    transform: scale(1.1);
}

/* ========================================
   Special Effects
======================================== */

/* Pulse Effect */
.oe-floating-button-item.effect-pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: currentColor;
    opacity: 0;
    animation: pulseEffect 2s infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes pulseEffect {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.oe-floating-button-item.effect-pulse:hover::before {
    animation: none;
}

/* Ripple Effect - Multiple concentric circles */
.oe-floating-button-item.effect-ripple {
    overflow: visible;
}

.oe-floating-button-item.effect-ripple::before,
.oe-floating-button-item.effect-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid currentColor;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.oe-floating-button-item.effect-ripple::before {
    animation: rippleOuter 2s infinite;
}

.oe-floating-button-item.effect-ripple::after {
    animation: rippleOuter 2s infinite 0.5s;
}

.oe-floating-button-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid currentColor;
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    animation: rippleOuter 2s infinite 1s;
}

@keyframes rippleOuter {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.15;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.oe-floating-button-item.effect-ripple:hover::before,
.oe-floating-button-item.effect-ripple:hover::after,
.oe-floating-button-item.effect-ripple:hover .oe-floating-button-ripple {
    animation: none;
}

/* Glow Effect */
.oe-floating-button-item.effect-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.oe-floating-button-item.effect-glow:hover::before {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 1;
}

/* ========================================
   Shimmer Effect on Hover
======================================== */
.oe-floating-button-item::after {
}

.oe-floating-button-item:hover::after {
    left: 200%;
}

/* ========================================
   Responsive Design
======================================== */

/* Tablet */
@media (max-width: 1024px) {
    .oe-floating-buttons {
        bottom: 80px;
    }

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

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

    .oe-floating-button-item {
        width: 55px;
        height: 55px;
    }

    .oe-floating-button-icon {
        font-size: 24px;
    }

    .oe-floating-button-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .oe-floating-buttons {
        bottom: 60px;
    }

    .oe-floating-buttons.position-left {
        left: 10px;
    }

    .oe-floating-buttons.position-right {
        right: 10px;
    }

    .oe-floating-button-item {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }

    .oe-floating-button-icon {
        font-size: 22px;
    }

    .oe-floating-button-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .oe-floating-buttons {
        bottom: 50px;
    }

    .oe-floating-buttons.position-left {
        left: 15px;
        right: auto;
        transform: none;
    }

    .oe-floating-buttons.position-right {
        right: 15px;
        left: auto;
        transform: none;
    }

    .oe-floating-button-item {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .oe-floating-button-icon {
        font-size: 20px;
    }

    .oe-floating-button-icon svg {
        width: 20px;
        height: 20px;
    }
}

/* ========================================
   Accessibility
======================================== */
.oe-floating-button-item:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.oe-floating-button-item:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
}

/* Show in Elementor Editor */
.elementor-editor-active .oe-floating-buttons,
.elementor-editor-preview .oe-floating-buttons {
    opacity: 1 !important;
    visibility: visible !important;
}

.elementor-editor-active .oe-floating-button-item,
.elementor-editor-preview .oe-floating-button-item {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
    animation: none !important;
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .oe-floating-buttons {
        display: none;
    }
}
