/**
 * Frontend Base Styles for Floating Action Buttons
 */

/* Container */
.fab-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

.fab-container * {
    pointer-events: all;
}

/* Base Button Styles */
.fab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: fixed;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1;
    will-change: transform;
    -webkit-tap-highlight-color: transparent;
}

.fab-button:hover {
    text-decoration: none;
    transform: scale(1.05);
}

.fab-button:active {
    transform: scale(0.95);
}

.fab-button:focus {
    outline: 3px solid rgba(66, 153, 225, 0.5);
    outline-offset: 2px;
}

/* Icon */
.fab-button i {
    font-size: inherit;
    line-height: 1;
}

/* Label */
.fab-label {
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

/* Shapes */
.fab-shape-circle {
    border-radius: 50%;
}

.fab-shape-rounded {
    border-radius: 12px;
}

.fab-shape-square {
    border-radius: 0;
}

/* Sizes */
.fab-size-small {
    width: 50px;
    height: 50px;
    font-size: 20px;
}

.fab-size-small .fab-label {
    font-size: 12px;
}

.fab-size-medium {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.fab-size-medium .fab-label {
    font-size: 14px;
}

.fab-size-large {
    width: 70px;
    height: 70px;
    font-size: 28px;
}

.fab-size-large .fab-label {
    font-size: 16px;
}

/* With Label - Adjust width */
.fab-button.fab-shape-rounded:has(.fab-label),
.fab-button.fab-shape-square:has(.fab-label) {
    width: auto;
    padding: 0 20px;
    min-width: 60px;
}

/* Position Presets */
.fab-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.fab-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.fab-position-top-right {
    top: 20px;
    right: 20px;
}

.fab-position-top-left {
    top: 20px;
    left: 20px;
}

/* Hover Animations */
.fab-hover-grow:hover {
    transform: scale(1.15);
}

.fab-hover-shrink:hover {
    transform: scale(0.90);
}

.fab-hover-rotate:hover {
    transform: rotate(15deg);
}

/* Mobile Specific */
@media screen and (max-width: 768px) {
    .fab-size-small {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .fab-size-medium {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    .fab-size-large {
        width: 65px;
        height: 65px;
        font-size: 26px;
    }

    /* Ensure buttons don't overlap with mobile UI */
    .fab-position-bottom-right,
    .fab-position-bottom-left {
        bottom: 80px;
        /* Account for mobile browser bars */
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .fab-button {
        transition: none;
        animation: none !important;
    }
}

/* Print */
@media print {
    .fab-button {
        display: none !important;
    }
}