.share-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.share-modal {
  background: var(--bg-primary, #fff);
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
}

.share-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.share-modal-header h3 {
  margin: 0;
  font-size: 1.125rem;
  color: var(--text-primary, #333);
}

.share-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-secondary, #666);
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.share-modal-close:hover {
  color: var(--text-primary, #333);
}

.share-modal-body {
  padding: 1.5rem;
}

.share-url-row {
  display: flex;
  gap: 0.5rem;
}

.share-url-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color, #e0e0e0);
  border-radius: 4px;
  font-size: 0.875rem;
  color: var(--text-primary, #333);
  background: var(--bg-secondary, #f5f5f5);
  min-width: 0;
}

.share-copy-btn {
  white-space: nowrap;
  min-width: 5rem;
}

.share-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.6rem;
  line-height: 1;
}

.share-icon-btn svg {
  display: block;
}

@media (max-width: 480px) {
  .share-modal {
    margin: 0.5rem;
  }

  .share-url-row {
    flex-direction: column;
  }

  .share-copy-btn {
    width: 100%;
  }
}
