/* share.css — The Baseline Wire Universal Share Modal */

.share-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(3, 5, 8, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
}

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

.share-modal-dialog {
  width: 100%;
  max-width: 580px;
  background: #090c10;
  background: linear-gradient(180deg, #0e1218 0%, #07090d 100%);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-top: 3px double var(--gold, #d4af37);
  border-radius: 4px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.15);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  color: #e5e7eb;
}

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

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  background: rgba(212, 175, 55, 0.04);
}

.share-modal-title-zone {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.share-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--gold, #d4af37);
  color: var(--gold, #d4af37);
  background: rgba(212, 175, 55, 0.12);
  border-radius: 2px;
}

.share-modal-heading {
  font-family: var(--font-header, 'IM Fell English SC', serif);
  font-size: 1.15rem;
  color: #f3f4f6;
  letter-spacing: 0.04em;
}

.share-modal-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  transition: color 0.15s ease, transform 0.15s ease;
}

.share-modal-close:hover {
  color: #f3f4f6;
  transform: scale(1.1);
}

.share-modal-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.share-article-preview {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 0.85rem 1rem;
}

.share-article-title {
  margin: 0 0 0.75rem 0;
  font-family: var(--font-serif, 'Newsreader', 'Crimson Text', serif);
  font-size: 1.05rem;
  line-height: 1.35;
  color: #f3f4f6;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.share-link-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #05070a;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 3px;
  padding: 0.3rem 0.4rem 0.3rem 0.75rem;
}

.share-link-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cyan, #00ffd2);
  font-size: 0.82rem;
  font-family: var(--font-mono, 'Space Mono', monospace);
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.share-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold, #d4af37);
  color: var(--gold, #d4af37);
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.share-copy-btn:hover {
  background: var(--gold, #d4af37);
  color: #07090d;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.share-copy-btn.copied {
  background: var(--cyan, #00ffd2);
  border-color: var(--cyan, #00ffd2);
  color: #07090d;
  box-shadow: 0 0 12px rgba(0, 255, 210, 0.5);
}

.share-destinations-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--gold, #d4af37);
  font-weight: 700;
  text-transform: uppercase;
}

.share-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

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

.share-channel-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #d1d5db;
  text-decoration: none;
  font-family: var(--font-mono, 'Space Mono', monospace);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.share-channel-btn svg {
  transition: transform 0.2s ease;
}

.share-channel-btn:hover {
  transform: translateY(-2px);
  color: #ffffff;
}

.share-channel-btn:hover svg {
  transform: scale(1.15);
}

/* Specific Channel Hover Styles */
.share-channel-btn.share-reddit:hover {
  background: rgba(255, 69, 0, 0.15);
  border-color: #ff4500;
  color: #ff4500;
  box-shadow: 0 0 14px rgba(255, 69, 0, 0.35);
}

.share-channel-btn.share-x:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

.share-channel-btn.share-facebook:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: #1877f2;
  color: #1877f2;
  box-shadow: 0 0 14px rgba(24, 119, 242, 0.35);
}

.share-channel-btn.share-telegram:hover {
  background: rgba(34, 158, 217, 0.15);
  border-color: #229ed9;
  color: #229ed9;
  box-shadow: 0 0 14px rgba(34, 158, 217, 0.35);
}

.share-channel-btn.share-whatsapp:hover {
  background: rgba(37, 211, 102, 0.15);
  border-color: #25d366;
  color: #25d366;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.35);
}

.share-channel-btn.share-linkedin:hover {
  background: rgba(10, 102, 194, 0.15);
  border-color: #0a66c2;
  color: #0a66c2;
  box-shadow: 0 0 14px rgba(10, 102, 194, 0.35);
}

.share-channel-btn.share-hn:hover {
  background: rgba(255, 102, 0, 0.15);
  border-color: #ff6600;
  color: #ff6600;
  box-shadow: 0 0 14px rgba(255, 102, 0, 0.35);
}

.share-channel-btn.share-email:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold, #d4af37);
  color: var(--gold, #d4af37);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.35);
}

/* Native Device Share Button */
.share-native-wrapper {
  margin-top: 0.25rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 0.85rem;
}

.share-native-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: rgba(0, 255, 210, 0.06);
  border: 1px solid rgba(0, 255, 210, 0.4);
  color: var(--cyan, #00ffd2);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-native-btn:hover {
  background: var(--cyan, #00ffd2);
  color: #07090d;
  box-shadow: 0 0 14px rgba(0, 255, 210, 0.4);
}
