/* =====================================================
   CONTAINER
===================================================== */
.social-fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

/* Hover alanı (kapanma bug fix) */
.social-fab-container::before {
    content: "";
    position: absolute;
    bottom: 60px;
    right: -30px;
    width: 160px;
    height: 220px;
}

/* =====================================================
   MAIN BUTTON
===================================================== */
.fab-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(20,20,20,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
}

/* Logo */
.fab-icon-main {
    width: 60%;
    transition: all 0.35s ease;
    opacity: 1;
}

/* X icon */
.fab-icon-close {
    position: absolute;
    font-size: 26px;
    color: #fff;
    opacity: 0;
    transition: all 0.35s ease;
}

/* =====================================================
   MENU
===================================================== */
.social-menu {
    position: absolute;
    bottom: 75px;
    right: 5px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

/* =====================================================
   SOCIAL BUTTONS (DEFAULT BLACK)
===================================================== */
.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20,20,20,0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;

    opacity: 0;
    transform: translateY(15px) scale(0.85);
    transition: all 0.35s cubic-bezier(0.175,0.885,0.32,1.275);
}

/* =====================================================
   HOVER OPEN
===================================================== */
.social-fab-container:hover .social-btn {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Stagger */
.social-btn:nth-child(1) { transition-delay: 0.2s; }
.social-btn:nth-child(2) { transition-delay: 0.15s; }
.social-btn:nth-child(3) { transition-delay: 0.1s; }
.social-btn:nth-child(4) { transition-delay: 0.05s; }

/* =====================================================
   COLOR ON HOVER (AS YOU WANT)
===================================================== */
.social-btn.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.social-btn.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-btn.instagram:hover {
    background: #e1306c;
    border-color: #e1306c;
}

.social-btn.phone:hover {
    background: #007bff;
    border-color: #007bff;
}

/* =====================================================
   WHATSAPP
===================================================== */
.whatsapp-satellite {
    position: absolute;
    right: 70px;
    bottom: 5px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #25d366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
}

/* =====================================================
   ICON SWITCH
===================================================== */
.social-fab-container:hover .fab-icon-main {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.social-fab-container:hover .fab-icon-close {
    opacity: 1;
    transform: rotate(0) scale(1);
}

/* WhatsApp hover menüyü tetiklemesin */
.whatsapp-satellite {
    pointer-events: auto;
}

/* WhatsApp üzerindeyken menüyü kapat */
.whatsapp-satellite:hover ~ .social-menu .social-btn {
    opacity: 0;
    transform: translateY(15px) scale(0.85);
    pointer-events: none;
}

/* WhatsApp üzerindeyken X ikonuna geçme */
.whatsapp-satellite:hover ~ .fab-toggle .fab-icon-main {
    opacity: 1;
    transform: rotate(0) scale(1);
}

.whatsapp-satellite:hover ~ .fab-toggle .fab-icon-close {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}
