/*
* File: social-float.css
* Purpose: Styling for floating social buttons
*/

.social-float-container {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.social-float {
    position: relative;
    width: 60px;
    height: 60px;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

/* WhatsApp button - updated styling */
.social-float.whatsapp {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.4s ease;
}

.social-float.whatsapp:hover {
    background: linear-gradient(135deg, #25d366 0%, #20ba5a 100%);
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    transform: scale(1.05) translateY(-2px);
}

.social-float.whatsapp .icon-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-float.whatsapp .bi-whatsapp {
    font-size: 40px;
    color: #5f6368;
    filter: grayscale(100%);
    transition: transform 0.4s ease, color 0.4s ease, filter 0.4s ease;
    transform: rotate(0deg);
}

.social-float.whatsapp:hover .bi-whatsapp {
    color: #ffffff;
    filter: none;
    transform: rotate(360deg);
}

/* Google Photos button - unchanged styling */
.social-float.google-photos {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.4s ease;
}

.social-float.google-photos:hover {
    background: linear-gradient(135deg, #1e1e2e 0%, #6b00ff 100%);
    box-shadow: 0px 4px 15px rgba(107, 0, 255, 0.4);
    transform: scale(1.05) translateY(-2px);
}

.social-float.google-photos .icon-container {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-float.google-photos .bi-images {
    font-size: 40px;
    color: #5f6368;
    filter: grayscale(100%);
    transition: transform 0.4s ease, color 0.4s ease, filter 0.4s ease;
    transform: rotate(0deg);
}

.social-float.google-photos:hover .bi-images {
    color: #00f7ff;
    filter: none;
    transform: rotate(360deg);
}

.social-float.visible {
    transform: scale(1);
    opacity: 1;
}

.social-float:active {
    transform: scale(0.95);
}

.social-float::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s ease;
}

.social-float:hover::before {
    transform: scale(1.5);
    opacity: 0;
}

.social-float i {
    transition: all 0.4s ease;
}

/* Tooltip styling - updated for WhatsApp */
.social-float.whatsapp .tooltip {
    position: absolute;
    right: 80px;
    background: #ffffff;
    color: #202124;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #25d366;
}

.social-float.whatsapp .tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

/* Tooltip styling - Google Photos */
.social-float.google-photos .tooltip {
    position: absolute;
    right: 80px;
    background: #ffffff;
    color: #202124;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #00f7ff;
}

.social-float.google-photos .tooltip::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #ffffff;
}

.social-float:hover .tooltip {
    visibility: visible;
    opacity: 1;
    right: 75px;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.2);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

.social-float.pulse {
    animation: pulse 1.5s infinite;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .social-float-container {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }
    
    .social-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    
    .social-float .tooltip {
        display: none;
    }
    
    .social-float .icon-container {
        width: 32px;
        height: 32px;
    }
    
    .social-float .bi-whatsapp,
    .social-float .bi-images {
        font-size: 32px;
    }
}