/* Floating Widgets */
.floating-widgets {
    position: fixed;
    bottom: 100px;
    right: var(--spacing-xl);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--spacing-sm);
}

/* Individual Widget */
.floating-widget {
    display: flex;
    align-items: center;
    text-decoration: none;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--btn-transition);
    transform: translateX(80px);
    opacity: 0;
    visibility: hidden;
}

.floating-widget.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.floating-widget:hover {
    transform: translateX(0) scale(1.05);
    box-shadow: var(--shadow-xl);
}

.widget-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--color-bg);
    border-radius: 50%;
    flex-shrink: 0;
}

.widget-label {
    padding: 0 var(--spacing-md) 0 var(--spacing-sm);
    color: var(--color-bg);
    font-weight: var(--font-weight-semibold);
    font-size: var(--font-size-base);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

/* WhatsApp Widget */
.whatsapp-widget .widget-icon {
    background: linear-gradient(135deg, var(--color-whatsapp), var(--color-whatsapp-dark));
}

.whatsapp-widget {
    background: var(--color-whatsapp);
    animation-delay: 0.1s;
}

/* Call Widget */
.call-widget .widget-icon {
    background: linear-gradient(135deg, var(--color-call), var(--color-call-dark));
}

.call-widget {
    background: var(--color-call);
    animation-delay: 0.2s;
}

/* Directions Widget */
.directions-widget .widget-icon {
    background: linear-gradient(135deg, var(--color-directions), var(--color-directions-dark));
}

.directions-widget {
    background: var(--color-directions);
    animation-delay: 0.3s;
}

/* Toggle Button */
.widgets-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #333, #555);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.widgets-toggle:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #444, #666);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.widgets-toggle.active {
    transform: rotate(45deg);
    background: linear-gradient(135deg, #ff4444, var(--color-primary));
}

/* Animation for widgets */
@keyframes slideInFromRight {
    from {
        transform: translateX(80px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.floating-widget.active {
    animation: slideInFromRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-widgets {
        bottom: 80px;
        right: 15px;
    }
    
    .widget-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .widget-label {
        font-size: 14px;
        padding: 0 15px 0 10px;
    }
    
    .widgets-toggle {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    /* Stack widgets vertically on very small screens */
    @media (max-width: 480px) {
        .floating-widgets {
            bottom: 70px;
            right: 10px;
        }
        
        .floating-widget {
            width: auto;
        }
    }
}

/* Hide labels on very small screens for cleaner look */
@media (max-width: 360px) {
    .widget-label {
        display: none;
    }
    
    .floating-widget {
        border-radius: 50%;
        width: 50px;
        height: 50px;
    }
    
    .floating-widget .widget-icon {
        width: 100%;
        height: 100%;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .widgets-toggle {
        background: linear-gradient(135deg, #444, #666);
    }
    
    .widgets-toggle:hover {
        background: linear-gradient(135deg, #555, #777);
    }
}

/* Accessibility - focus styles */
.floating-widget:focus,
.widgets-toggle:focus {
    outline: var(--focus-outline);
    outline-offset: 2px;
}

