/*
* Zahya Store - Social Sharing Styles
* Version: 1.0
*/

/*--------------------------------------------------------------
# Social Sharing Section
--------------------------------------------------------------*/
.product-sharing {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.product-sharing h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: var(--text-color);
}

/* Share Button Container */
.social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Individual Share Button */
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.share-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0);
  border-radius: 50%;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.share-btn:hover {
  opacity: 0.9;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
  color: #fff;
}

.share-btn:hover::before {
  display: none;
}

.share-btn:active {
  transform: translateY(0);
}

/* Button Platform-Specific Colors */
.share-facebook {
  background-color: #1877F2;
}

.share-twitter {
  background-color: #1DA1F2;
}

.share-linkedin {
  background-color: #0A66C2;
}

.share-reddit {
  background-color: #FF4500;
}

.share-discord {
  background-color: #5865F2;
}

.share-copy {
  background-color: #6c757d;
}

/* No icon animation */
.share-btn i {
  font-size: 18px;
}

/* Remove tooltips */
.share-btn::after {
  display: none;
}

/* Copy Confirmation Message */
.copy-confirmation {
  background-color: var(--primary-color);
  color: white;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 30px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 100;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}

.copy-confirmation.show {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.copy-confirmation.hide {
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
}

.copy-confirmation i {
  margin-right: 5px;
  color: #8fffbe;
}

/* Dark Theme Support */
.theme-dark .product-sharing {
  border-top-color: #2e2e3e;
}

.theme-dark .product-sharing h4 {
  color: #e0e0e0;
}

.theme-dark .share-btn {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.theme-dark .share-btn:hover {
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/*--------------------------------------------------------------
# Social Share in Product Cards
--------------------------------------------------------------*/
.product-card {
  position: relative;
}

.product-share-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9;
}

.product-card:hover .product-share-overlay {
  opacity: 1;
  visibility: visible;
}

.product-quick-share {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 6px;
  display: flex;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.quick-share-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: white;
  transition: all 0.3s ease;
}

.quick-share-btn:hover {
  opacity: 0.9;
}

/* Dark Theme Support for Product Cards */
.theme-dark .product-quick-share {
  background-color: rgba(31, 31, 44, 0.9);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}
