/**
 * Frontend styles for SLK Floating Button
 *
 * Provides a clean, accessible, and responsive floating button.
 * No external dependencies, GDPR compliant.
 *
 * @package SLK_Floating_Button
 * @since 1.0.0
 */

/* Floating button container */
.slk-floating-button-container {
    position: fixed;
    bottom: 50px;
    right: 50px;
    width: 50px;
    height: 50px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Hover effect */
.slk-floating-button-container:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Remove outline on click */
.slk-floating-button-container:focus {
    outline: none;
}

/* Focus effect for keyboard navigation only (accessibility) */
.slk-floating-button-container:focus-visible {
    outline: 3px solid #25d366;
    outline-offset: 3px;
}

/* WhatsApp icon styling */
.slk-floating-button-icon {
    width: 32px;
    height: 32px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

/* Icon animation on hover */
.slk-floating-button-container:hover .slk-floating-button-icon {
    transform: rotate(10deg);
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .slk-floating-button-container {
        width: 56px;
        height: 56px;
        bottom: 16px;
        right: 16px;
    }

    .slk-floating-button-icon {
        width: 28px;
        height: 28px;
    }
}

/* Extra small mobile devices */
@media screen and (max-width: 480px) {
    .slk-floating-button-container {
        width: 52px;
        height: 52px;
        bottom: 12px;
        right: 12px;
    }

    .slk-floating-button-icon {
        width: 26px;
        height: 26px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .slk-floating-button-container {
        border: 2px solid #000000;
    }
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {

    .slk-floating-button-container,
    .slk-floating-button-icon {
        transition: none;
    }

    .slk-floating-button-container:hover {
        transform: none;
    }

    .slk-floating-button-container:hover .slk-floating-button-icon {
        transform: none;
    }
}

/* Active/pressed state */
.slk-floating-button-container:active {
    transform: scale(0.95);
}
