.share-trigger {
  position: absolute;
  top: 20px;
  right: 0px;
  width: 45px;
  height: 45px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 10;
  padding: unset;
}

.share-trigger:focus-visible {
  outline: none;
}

.share-trigger:hover {
  background-color: unset;
  border: none;
  color: var(--secondary-color-hover);
  cursor: pointer;
}

.share-trigger:active {
  transform: scale(0.95);
}

.share-trigger svg {
  width: 20px;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.share-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  max-width: 400px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .share-modal {
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #f1f3f4;
}

.modal-title {
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #95a5a6;
  padding: 5px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #f8f9fa;
  color: #e74c3c;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.share-btn {
  display: flex;
  align-items: center;
  padding: 15px;
  text-decoration: none;
  color: white;
  border-radius: 12px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.share-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.share-btn:hover::before {
  left: 100%;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.share-icon {
  margin-right: 10px;
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.facebook {
  background: linear-gradient(135deg, #1877f2, #0d5ebd);
}

.twitter {
  background: linear-gradient(135deg, #000000, #1a1a1a);
}

.linkedin {
  background: linear-gradient(135deg, #0077b5, #005885);
}

.whatsapp {
  background: linear-gradient(135deg, #25d366, #20b954);
}

.telegram {
  background: linear-gradient(135deg, #0088cc, #006ba3);
}

.email {
  background: linear-gradient(135deg, #444, #222);
}

.copy-link {
  background: linear-gradient(135deg, #6c5ce7, #5a4fcf);
}

.copy-success {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #27ae60;
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  transform: translateY(100px);
  transition: transform 0.3s ease;
  z-index: 10001;
}

.copy-success.show {
  transform: translateY(0);
}

@media (max-width: 480px) {
  .share-grid {
    grid-template-columns: 1fr;
  }

  .share-modal {
    padding: 20px;
  }

  .share-trigger {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
