/* Share dialog and toast (templates/partials/share-modal.php), shared by
   articles and job postings. */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 15, 29, 0.6);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
  opacity: 0; transition: opacity 0.25s ease;
}
.modal-overlay[hidden] { display: none; }
.modal-overlay.active { opacity: 1; }
.share-modal {
  background: var(--white); border-radius: var(--radius-lg); padding: 24px; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg); transform: translateY(16px); transition: transform 0.25s ease;
}
.modal-overlay.active .share-modal { transform: translateY(0); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.close-btn { font-size: 1.5rem; color: var(--slate); padding: 4px 8px; line-height: 1; border-radius: var(--radius-sm); }
.close-btn:hover { color: var(--navy); background: var(--panel); }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.share-option {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px;
  border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--panel);
}
.share-option[hidden] { display: none; }
.share-option:hover { border-color: var(--primary); background: var(--primary-light); transform: translateY(-2px); }
.share-icon-wrap { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--white); }
.share-icon-wrap svg { width: 18px; height: 18px; fill: currentColor; }
.share-label { font-size: 0.75rem; font-weight: 600; color: var(--ink); }
.icon-whatsapp { background: #25D366; }
.icon-x { background: #0F1419; }
.icon-linkedin { background: #0A66C2; }
.icon-facebook { background: #1877F2; }
.icon-email { background: #64748B; }
.icon-more { background: var(--navy-card); }
.copy-link-box { display: flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); padding: 6px 6px 6px 12px; border-radius: var(--radius-md); }
.copy-link-input { border: none; background: none; width: 100%; font-size: 0.85rem; color: var(--slate); outline: none; font-family: var(--body); }
.share-copy-btn { background: var(--primary); color: var(--white); font-size: 0.8rem; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-sm); white-space: nowrap; }
.share-copy-btn:hover { background: var(--primary-hover); }

.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--navy-card); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.15); padding: 10px 18px; border-radius: var(--radius-md);
  font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(10px); transition: all 0.25s ease; pointer-events: none; z-index: 1100;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* "Share this role" trigger on a job posting. On the dark hero it is an
   outline button under Apply; in the light sidebar it uses the outline
   style from jobs.css. */
.share-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 44px; margin-top: 12px; padding: 10px 18px;
  border-radius: 10px; font-weight: 700; font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.06); color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.share-trigger svg { width: 16px; height: 16px; fill: currentColor; flex: 0 0 auto; }
.share-trigger:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.36); }
.share-trigger-light { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.share-trigger-light:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary-ink); }
