/**
 * Lummy CTA - Frontend Styles
 * Version: 1.0.0
 */

/* Container for floating buttons */
.lummy-cta-container {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    max-width: 400px;
    width: auto;
}

/* Individual button styling */
.lummy-cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 32px;
    text-decoration: none;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    margin: 0;
    flex: 1;
    white-space: nowrap;
}

/* Remove margin between buttons */
.lummy-cta-button + .lummy-cta-button {
    margin-left: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* WhatsApp button - WhatsApp green */
.lummy-cta-whatsapp {
    background-color: #075E54;
}

.lummy-cta-whatsapp:hover {
    background-color: #086c60;
    transform: translateY(-2px);
}

.lummy-cta-whatsapp:active {
    background-color: #086c60;
    transform: translateY(0);
}

/* Phone button - Phone green/blue */
.lummy-cta-phone {
    background-color: #25D366;
}

.lummy-cta-phone:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
}

.lummy-cta-phone:active {
    background-color: #20BA5A;
    transform: translateY(0);
}

/* Icon styling */
.lummy-cta-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Text styling */
.lummy-cta-text {
    color: #ffffff;
    font-weight: 600;
}

/* Mobile styles - Full width, edge-to-edge, no rounded corners */
@media (max-width: 768px) {
    .lummy-cta-container {
        left: 0;
        right: 0;
        transform: none;
        max-width: 100%;
        width: 100%;
        border-radius: 0;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .lummy-cta-button {
        padding: 14px 16px;
        font-size: 14px;
        justify-content: center;
    }
    
    .lummy-cta-icon {
        width: 22px;
        height: 22px;
    }
    
    /* Hide text on very small screens to fit better */
    @media (max-width: 360px) {
        .lummy-cta-text {
            display: none;
        }
        
        .lummy-cta-button {
            padding: 14px;
        }
    }
}

/* Desktop styles - Center bottom with rounded edges */
@media (min-width: 769px) {
    .lummy-cta-container {
        bottom: 20px;
        border-radius: 50px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    
    .lummy-cta-button:first-child {
        border-radius: 50px 0 0 50px;
    }
    
    .lummy-cta-button:last-child {
        border-radius: 0 50px 50px 0;
    }
    
    .lummy-cta-button:only-child {
        border-radius: 50px;
    }
    
    /* Enhanced hover effect on desktop */
    .lummy-cta-button:hover {
        box-shadow: inset 0 -2px 8px rgba(0, 0, 0, 0.1);
    }
}

/* Single button styling (when only one is active) */
.lummy-cta-container .lummy-cta-button:only-child {
    border-left: none;
}

/* Accessibility improvements */
.lummy-cta-button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: -3px;
}

.lummy-cta-button:focus:not(:focus-visible) {
    outline: none;
}

.lummy-cta-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: -3px;
}

/* Animation on page load */
@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideUpMobile {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.lummy-cta-container {
    animation: slideUp 0.5s ease-out;
}

@media (max-width: 768px) {
    .lummy-cta-container {
        animation: slideUpMobile 0.5s ease-out;
    }
}

/* Print styles - hide buttons when printing */
@media print {
    .lummy-cta-container {
        display: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .lummy-cta-button {
        border: 2px solid #ffffff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .lummy-cta-container {
        animation: none;
    }
    
    .lummy-cta-button {
        transition: none;
    }
    
    .lummy-cta-button:hover {
        transform: none;
    }
}

