/* ========================================
   SOCIAL SIDEBAR - شريط التواصل الجانبي
   website/assets/css/social-sidebar.css
   ======================================== */

.social-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.social-sidebar-item {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--white);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-left: 4px solid transparent;
}

/* خلفيات الأيقونات */
.social-sidebar-item.scroll-top {
    background: linear-gradient(135deg, #6B6B6B 0%, #4A4A4A 100%);
}

.social-sidebar-item.email {
    background: linear-gradient(135deg, #B8B8B8 0%, #8E8E8E 100%);
}

.social-sidebar-item.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.social-sidebar-item.skype {
    background: linear-gradient(135deg, #00AFF0 0%, #0078D4 100%);
}

.social-sidebar-item.wechat {
    background: linear-gradient(135deg, #09B83E 0%, #07A038 100%);
}

/* تأثير Hover */
.social-sidebar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s;
}

.social-sidebar-item:hover::before {
    left: 100%;
}

.social-sidebar-item:hover {
    width: 70px;
    border-left-color: var(--white);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
}

/* الأيقونات */
.social-sidebar-item i {
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.social-sidebar-item:hover i {
    transform: scale(1.15) rotate(5deg);
}

/* Tooltip عند Hover */
.social-sidebar-item::after {
    content: attr(data-tooltip);
    position: absolute;
    right: 70px;
    background: rgba(0, 0, 0, 0.9);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    font-weight: 500;
}

.social-sidebar-item:hover::after {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

/* تأثير النبض للواتساب */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
}

.social-sidebar-item.whatsapp {
    animation: pulse 2s infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .social-sidebar {
        right: 0;
        gap: 0;
    }
    
    .social-sidebar-item {
        width: 50px;
        height: 50px;
    }
    
    .social-sidebar-item i {
        font-size: 1.25rem;
    }
    
    .social-sidebar-item:hover {
        width: 55px;
    }
    
    /* إخفاء Tooltip على الموبايل */
    .social-sidebar-item::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .social-sidebar-item {
        width: 45px;
        height: 45px;
    }
    
    .social-sidebar-item i {
        font-size: 1.125rem;
    }
}

/* زر العودة للأعلى - إظهار عند السكرول */
.social-sidebar-item.scroll-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.social-sidebar-item.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

/* تأثير خاص للبريد الإلكتروني */
.social-sidebar-item.email:hover {
    background: linear-gradient(135deg, #EA4335 0%, #C5221F 100%);
}

/* ألوان مخصصة للأيقونات */
.social-sidebar-item.scroll-top i {
    color: #FFFFFF;
}

.social-sidebar-item.email i {
    color: #FFFFFF;
}

.social-sidebar-item.whatsapp i {
    color: #FFFFFF;
}

.social-sidebar-item.skype i {
    color: #FFFFFF;
}

.social-sidebar-item.wechat i {
    color: #FFFFFF;
}