/**
 * SBB Floating WhatsApp - CSS
 * Brand Colors: #90EE90 (light green), #7ED87E (green), #2c2c2c (dark)
 */

.sbb-whatsapp-float {
    position: fixed;
    bottom: 20px;
    z-index: 9999;
    animation: sbb-whatsapp-fade-in 0.5s ease-in-out;
}

.sbb-whatsapp-float.sbb-whatsapp-right {
    right: 20px;
}

.sbb-whatsapp-float.sbb-whatsapp-left {
    left: 20px;
}

.sbb-whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #90EE90 0%, #7ED87E 100%);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(126, 216, 126, 0.4);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sbb-whatsapp-button:hover {
    background: linear-gradient(135deg, #7ED87E 0%, #6BC86B 100%);
    box-shadow: 0 6px 20px rgba(126, 216, 126, 0.6);
    transform: translateY(-3px) scale(1.05);
}

.sbb-whatsapp-button:active {
    transform: translateY(-1px) scale(1.02);
}

.sbb-whatsapp-icon {
    width: 32px;
    height: 32px;
    color: #ffffff;
    z-index: 2;
    position: relative;
}

/* Pulse animation */
.sbb-whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(126, 216, 126, 0.6);
    animation: sbb-whatsapp-pulse 2s infinite;
    z-index: 1;
}

@keyframes sbb-whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes sbb-whatsapp-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .sbb-whatsapp-float {
        bottom: 15px;
    }
    
    .sbb-whatsapp-float.sbb-whatsapp-right {
        right: 15px;
    }
    
    .sbb-whatsapp-float.sbb-whatsapp-left {
        left: 15px;
    }
    
    .sbb-whatsapp-button {
        width: 56px;
        height: 56px;
    }
    
    .sbb-whatsapp-icon {
        width: 28px;
        height: 28px;
    }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .sbb-whatsapp-button {
        width: 58px;
        height: 58px;
    }
    
    .sbb-whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

/* Hover effect untuk desktop */
@media (hover: hover) {
    .sbb-whatsapp-button:hover .sbb-whatsapp-pulse {
        animation-duration: 1.5s;
    }
}

/* Accessibility */
.sbb-whatsapp-button:focus {
    outline: 3px solid rgba(126, 216, 126, 0.5);
    outline-offset: 2px;
}

/* Print - hide button saat print */
@media print {
    .sbb-whatsapp-float {
        display: none !important;
    }
}
