/* =============================================================
   sharing.css — Viral sharing component styles
   Resilience Atlas
   ============================================================= */

/* ── Share Section Container ──────────────────────────────── */
.share-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  text-align: center;
}

.share-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .4rem;
}

.share-section .share-desc {
  font-size: .95rem;
  color: #475569;
  margin-bottom: 1.5rem;
}

/* ── Share Buttons Row ────────────────────────────────────── */
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.btn-share {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 600;
  padding: .6rem 1.25rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 150ms, transform 150ms;
}

.btn-share:hover {
  opacity: .88;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-share-linkedin {
  background: #0A66C2;
  color: #fff;
}

.btn-share-twitter {
  background: #000;
  color: #fff;
}

.btn-share-copy {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.btn-share-copy.copied {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.btn-share-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}

.btn-share-facebook {
  background: #1877F2;
  color: #fff;
}

.btn-share-download {
  background: #4F46E5;
  color: #fff;
}

/* ── Share Icon ───────────────────────────────────────────── */
.share-icon {
  font-size: 1rem;
  line-height: 1;
}

/* ── Share Preview Text ───────────────────────────────────── */
.share-preview-text {
  font-size: .85rem;
  color: #64748b;
  font-style: italic;
  margin-top: .5rem;
  padding: .75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  text-align: left;
  line-height: 1.5;
}

/* ── Invite Section ───────────────────────────────────────── */
.invite-section {
  background: linear-gradient(135deg, #f0f9ff 0%, #e8f4ff 100%);
  border: 1px solid #bae6fd;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  margin-top: 2rem;
  text-align: center;
}

.invite-section h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: .4rem;
}

.invite-section p {
  font-size: .95rem;
  color: #475569;
  margin-bottom: 1.25rem;
}

.invite-form {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.invite-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: .6rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: .95rem;
  background: #fff;
  outline: none;
  transition: border-color 150ms;
}

.invite-form input[type="email"]:focus {
  border-color: #4F46E5;
}

.btn-invite {
  background: #0f2942;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 150ms;
  white-space: nowrap;
}

.btn-invite:hover {
  background: #1a3a5c;
}

.invite-status {
  margin-top: .75rem;
  font-size: .9rem;
  color: #059669;
  font-weight: 600;
  min-height: 1.3em;
}

/* ── Instagram hint ───────────────────────────────────────── */
.share-instagram-hint {
  font-size: .82rem;
  color: #64748b;
  margin-top: .5rem;
}

.share-instagram-hint a {
  color: #bc1888;
  text-decoration: none;
  font-weight: 600;
}

.share-instagram-hint a:hover {
  text-decoration: underline;
}

/* ── Download Toast ───────────────────────────────────────── */
.share-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: #0f172a;
  color: #fff;
  padding: .65rem 1.4rem;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  z-index: 9999;
  pointer-events: none;
  transition: transform 300ms ease;
  white-space: nowrap;
}

.share-toast.visible {
  transform: translateX(-50%) translateY(0);
}
