/* Floating Social Media Buttons Styles */

.floating-social-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Main Button Styles */
.social-main-button {
    width: 60px;
    height: 60px;
    background: #E80545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(232, 5, 69, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 3px solid #fff;
}

.social-main-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(232, 5, 69, 0.4);
}

.social-main-button.active {
    transform: rotate(45deg);
    background: #E80545;
}

.social-main-icon {
    color: white;
    transition: all 0.3s ease;
}

.social-main-button.active .social-main-icon {
    transform: rotate(-45deg);
}

/* Ripple Wave Animation */
.social-main-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: rgba(232, 5, 69, 0.2);
    border-radius: 50%;
    animation: ripple 2s infinite;
    z-index: -1;
}

.social-main-button::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    background: rgba(232, 5, 69, 0.1);
    border-radius: 50%;
    animation: ripple 2s infinite 0.5s;
    z-index: -2;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

/* Social Buttons Wrapper */
.social-buttons-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.social-buttons-wrapper.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: all;
}

/* Individual Social Buttons */
.social-btn {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid #fff;
}

.social-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-btn svg {
    transition: all 0.3s ease;
    color: white !important;
    fill: white !important;
}

.social-btn:hover svg {
    transform: rotate(360deg);
    color: white !important;
    fill: white !important;
}

/* WhatsApp Button - Top position (0 degrees) */
.whatsapp-btn {
    background: #25D366;
    color: white;
    bottom: 75px;
    left: 15px;
    animation-delay: 0.1s;
}

.whatsapp-btn:hover {
    background: #128C7E;
}

.whatsapp-btn svg {
    color: white;
    fill: white;
}

/* Telegram Button - 45 degrees position */
.telegram-btn {
    background: #0088cc;
    color: white;
    bottom: 53px;
    left: 53px;
    animation-delay: 0.2s;
}

.telegram-btn:hover {
    background: #229ED9;
}

.telegram-btn svg {
    color: white;
    fill: white;
}

/* Instagram Button - 90 degrees position */
.instagram-btn {
    background: linear-gradient(135deg, #E4405F 0%, #F77737 50%, #FCAF45 100%);
    color: white;
    bottom: 15px;
    left: 75px;
    animation-delay: 0.3s;
}

.instagram-btn:hover {
    background: linear-gradient(135deg, #FCAF45 0%, #F77737 50%, #E4405F 100%);
}

.instagram-btn svg {
    color: white;
    fill: white;
}

/* Animation for buttons appearance */
.social-buttons-wrapper.active .social-btn {
    animation: bounceIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(20px);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .floating-social-container {
        bottom: 90px;
        left: 16px;
    }
    
    .social-main-button {
        width: 50px;
        height: 50px;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
    }
    
    .whatsapp-btn {
        bottom: 62px;
        left: 12px;
    }
    
    .telegram-btn {
        bottom: 44px;
        left: 44px;
    }
    
    .instagram-btn {
        bottom: 12px;
        left: 62px;
    }
}

@media (max-width: 480px) {
    
    .social-main-button {
        width: 45px;
        height: 45px;
    }
    
    .social-btn {
        width: 40px;
        height: 40px;
    }
    
    .whatsapp-btn {
        bottom: 55px;
        left: 10px;
    }
    
    .telegram-btn {
        bottom: 38px;
        left: 38px;
    }
    
    .instagram-btn {
        bottom: 10px;
        left: 55px;
    }
}

/* Accessibility */
.social-btn:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .social-btn {
        border-color: rgba(255, 255, 255, 0.1);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .social-btn {
        border-width: 3px;
        border-color: rgba(255, 255, 255, 0.8);
    }
}
