/* ============================================
   PREMIUM SHARE MODAL
   ============================================ */

.share-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end; /* Pe mobil se ridică de jos */
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-modal.is-visible { opacity: 1; }
.share-modal[hidden] { display: none !important; }

@media (min-width: 768px) {
  .share-modal { align-items: center; } /* Pe desktop e centrat */
}

.share-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.share-modal-content {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: var(--bg-card, #ffffff);
  border-radius: 28px 28px 0 0;
  padding: 24px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.share-modal.is-visible .share-modal-content {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .share-modal-content {
    border-radius: 28px;
    transform: translateY(20px) scale(0.95);
  }
  .share-modal.is-visible .share-modal-content {
    transform: translateY(0) scale(1);
  }
}

[data-theme="dark"] .share-modal-content {
  background: #1c1c1e;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

/* Header */
.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.share-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.share-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(120, 120, 128, 0.1);
  border: none;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.share-modal-close:hover { background: rgba(120, 120, 128, 0.2); }

/* Preview Card */
.share-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: rgba(120, 120, 128, 0.05);
  border-radius: 16px;
  margin-bottom: 24px;
  border: 1px solid rgba(120, 120, 128, 0.1);
}

[data-theme="dark"] .share-preview {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.share-preview-img {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #e5e5ea;
  flex-shrink: 0;
}

.share-preview-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.share-preview-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.share-preview-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-preview-price {
  font-size: 13px;
  font-weight: 700;
  color: #34c759;
}

/* Grid de butoane */
.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 360px) {
  .share-grid { grid-template-columns: repeat(3, 1fr); }
}

.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.share-btn-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn-icon-wrapper svg {
  width: 24px;
  height: 24px;
}

.share-btn:hover .share-btn-icon-wrapper {
  transform: scale(1.08);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.share-btn span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

/* Culori platforme */
.share-btn-native .share-btn-icon-wrapper { background: linear-gradient(135deg, #007aff, #5ac8fa); }
.share-btn-whatsapp .share-btn-icon-wrapper { background: #25D366; }
.share-btn-facebook .share-btn-icon-wrapper { background: #1877F2; }
.share-btn-twitter .share-btn-icon-wrapper { background: #000000; }
.share-btn-linkedin .share-btn-icon-wrapper { background: #0A66C2; }
.share-btn-telegram .share-btn-icon-wrapper { background: #26A5E4; }
.share-btn-email .share-btn-icon-wrapper { background: #8E8E93; }

/* Input pentru copiere link */
.share-link-row {
  display: flex;
  gap: 8px;
  background: rgba(120, 120, 128, 0.08);
  border-radius: 14px;
  padding: 6px;
}

.share-link-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-muted);
  outline: none;
}

.share-link-copy {
  background: var(--accent, #007aff);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.share-link-copy:hover { background: #0a84ff; }

/* ============================================
   CULORI NOI PENTRU PLATFORME
   ============================================ */

.share-btn-instagram .share-btn-icon-wrapper {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

/* Ajustare grid pentru 5 butoane (pe ecrane mici le punem pe 3 coloane) */
@media (max-width: 360px) {
  .share-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}