/* ==================== Floating Contact Button ==================== */

/* الزر الرئيسي العائم */
.floating-contact-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #6057DE 0%, #764BA2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(96, 87, 222, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9999;
  border: none;
  outline: none;
}

.floating-contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(96, 87, 222, 0.6);
}

.floating-contact-btn.active {
  transform: rotate(45deg);
}

/* أيقونة الزر */
.contact-icon {
  width: 28px;
  height: 28px;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.floating-contact-btn.active .contact-icon {
  transform: rotate(-45deg);
}

/* قائمة وسائل التواصل */
.contact-menu {
  position: fixed;
  bottom: 100px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 9998;
}

.contact-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* عناصر القائمة */
.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  transform: translateX(100px);
  opacity: 0;
}

.contact-menu.active .contact-item {
  transform: translateX(0);
  opacity: 1;
}

.contact-menu.active .contact-item:nth-child(1) {
  transition-delay: 0.05s;
}

.contact-menu.active .contact-item:nth-child(2) {
  transition-delay: 0.1s;
}

.contact-menu.active .contact-item:nth-child(3) {
  transition-delay: 0.15s;
}

.contact-menu.active .contact-item:nth-child(4) {
  transition-delay: 0.2s;
}

.contact-item:hover {
  transform: translateX(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* أيقونات وسائل التواصل */
.contact-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

/* ألوان كل وسيلة تواصل */
.contact-item.whatsapp .contact-item-icon {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.contact-item.twitter .contact-item-icon {
  background: linear-gradient(135deg, #000000 0%, #14171A 100%);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.contact-item.instagram .contact-item-icon {
  background: linear-gradient(135deg, #833AB4 0%, #FD1D1D 50%, #FCAF45 100%);
  box-shadow: 0 4px 12px rgba(131, 58, 180, 0.4);
}

.contact-item.facebook .contact-item-icon {
  background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.contact-item.email .contact-item-icon {
  background: linear-gradient(135deg, #6057DE 0%, #764BA2 100%);
  box-shadow: 0 4px 12px rgba(96, 87, 222, 0.3);
}

/* تأثيرات hover للأيقونات */
.contact-item:hover .contact-item-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.contact-item-icon {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item-icon svg {
  transition: transform 0.3s ease;
}

.contact-item:hover .contact-item-icon svg {
  transform: scale(1.05);
}

/* نص العنصر */
.contact-item-text {
  font-size: 14px;
  font-weight: 600;
  color: #2d3748;
}

/* Tooltip */
.contact-tooltip {
  position: absolute;
  bottom: 50%;
  right: 75px;
  transform: translateY(50%);
  background: #2d3748;
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.contact-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: #2d3748;
}

.floating-contact-btn:hover .contact-tooltip {
  opacity: 1;
  visibility: visible;
}

/* Responsive */
@media (max-width: 768px) {
  .floating-contact-btn {
    width: 56px;
    height: 56px;
    bottom: 20px;
    right: 20px;
  }

  .contact-icon {
    width: 24px;
    height: 24px;
  }

  .contact-menu {
    bottom: 85px;
    right: 20px;
  }

  .contact-item {
    padding: 10px 14px;
  }

  .contact-item-icon {
    width: 36px;
    height: 36px;
  }

  .contact-item-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-item-text {
    font-size: 13px;
  }

  .contact-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .floating-contact-btn {
    width: 52px;
    height: 52px;
    bottom: 15px;
    right: 15px;
  }

  .contact-menu {
    bottom: 75px;
    right: 15px;
  }
}
