/* Frontend Custom Styles */

/* Browse Button Active State */
a[href*="/browse"] {
    background-color: #2563eb !important;
    color: white;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    animation: bounce 1.5s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.whatsapp-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* WhatsApp CTA Message */
.whatsapp-cta-message {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 998;
    width: 250px;
    background-color: #fefefe;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.whatsapp-cta-message.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Bounce Animation */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* Smooth transitions for dropdown */
.group:hover .group-hover\:visible {
    visibility: visible;
    opacity: 1;
}

.group .invisible {
    visibility: hidden;
    opacity: 0;
}

/* Mobile dropdown animation */
#dropdown-arrow {
    transition: transform 0.3s ease;
}

#dropdown-arrow.rotate-180 {
    transform: rotate(180deg);
}

/* Mobile navbar toggler animation */
#navbarToggler span {
    transition: all 0.3s ease;
}

#navbarToggler.navbarTogglerActive span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#navbarToggler.navbarTogglerActive span:nth-child(2) {
    opacity: 0;
}

#navbarToggler.navbarTogglerActive span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
