/* Share Modal Styles */
.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.share-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 360px;
  width: 100%;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-modal-overlay.open .share-modal {
  transform: translateY(0) scale(1);
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.share-modal-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.share-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #f1f5f9;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.share-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.share-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.share-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-option:hover {
  border-color: #c026d3;
  background: #fdf4ff;
  transform: translateY(-2px);
}

.share-option-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-option-icon img {
  width: 24px;
  height: 24px;
}

.share-option-icon.facebook { background: #1877F2; }
.share-option-icon.twitter { background: #000; }
.share-option-icon.whatsapp { background: #25D366; }
.share-option-icon.telegram { background: #26A5E4; }
.share-option-icon.email { background: #EA4335; }
.share-option-icon.copy { background: #6366f1; }

.share-option-icon img {
  filter: brightness(0) invert(1);
}

.share-option-label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.share-url-box {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.share-url-input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #64748b;
  outline: none;
  min-width: 0;
}

.share-url-copy {
  padding: 8px 16px;
  background: linear-gradient(135deg, #c026d3, #a855f7);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}

.share-url-copy:hover {
  transform: scale(1.02);
}

.share-url-copy.copied {
  background: #22c55e;
}

/* Share Button */
.btn-share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #c026d3, #a855f7) !important;
  color: #fff !important;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-share:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(192, 38, 211, 0.4);
}

.btn-share img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

/* Toast */
.share-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.4);
  z-index: 1100;
  animation: toastSlideUp 0.3s ease;
}

@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@media (max-width: 400px) {
  .share-options {
    grid-template-columns: repeat(3, 1fr);
  }
}
