/* ── Share Modal — arch-share-* ──────────────────────────────────────────
 * Extends the site-wide arch-modal-hero pattern with the site gold accent tone.
 * All colours are hardcoded (not CSS vars) so the preview card + canvas
 * export look identical regardless of light / dark theme.
 * ───────────────────────────────────────────────────────────────────── */

/* Gold is-info tone (extends the danger / success set in style.css) ----- */
.arch-modal-icon.is-info {
  background: rgba(205,161,44,.15);
  color: var(--accent);
  filter: drop-shadow(0 4px 14px rgba(205,161,44,.42));
}
.arch-modal-eyebrow.is-info { color: var(--accent); }

/* Glassy gold-tinted modal shell --------------------------------------- */
#archShareModal .modal-content {
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  background: linear-gradient(
    180deg,
    rgba(205,161,44,.16) 0%,
    rgba(13,20,35,.90)  55%
  ) !important;
  border: 1px solid rgba(205,161,44,.28) !important;
  box-shadow:
    0 0 0 1px rgba(205,161,44,.10) inset,
    0 32px 80px rgba(0,0,0,.55);
}
/* radial glow behind the icon */
#archShareModal .modal-content::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(205,161,44,.22) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
/* keep all children above the pseudo glow */
#archShareModal .arch-modal-hero,
#archShareModal .arch-share-card,
#archShareModal .arch-share-networks,
#archShareModal .arch-modal-actions,
#archShareModal .arch-share-tagline {
  position: relative;
  z-index: 1;
}

/* Light-theme override: lighter tint so the glassy look still reads ---- */
[data-theme="light"] #archShareModal .modal-content {
  background: linear-gradient(
    180deg,
    rgba(205,161,44,.12) 0%,
    rgba(255,255,255,.88) 55%
  ) !important;
}

/* Preview card --------------------------------------------------------- */
.arch-share-card {
  position: relative;
  margin: 0 22px 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(205,161,44,.22);
  background: #0d1423;
}
.arch-share-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.arch-share-card-placeholder {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(205,161,44,.18) 0%, #0d1423 100%);
}
.arch-share-card-placeholder i {
  font-size: 44px;
  color: rgba(255,255,255,.22);
}
.arch-share-card-body { padding: 11px 14px 14px; }
.arch-share-card-eyebrow {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 4px;
}
.arch-share-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.arch-share-card-desc {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.arch-share-card-brand {
  position: absolute;
  top: 9px;
  right: 10px;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 10px;
  color: #fff;
  font-weight: 700;
  letter-spacing: .06em;
  pointer-events: none;
}

/* Network buttons — smaller horizontal row ----------------------------- */
.arch-share-networks {
  display: flex;
  gap: 8px;
  margin: 0 22px 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.arch-share-net-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: filter .18s ease, transform .14s ease, box-shadow .18s ease;
  user-select: none;
  flex-shrink: 0;
}
.arch-share-net-btn:hover,
.arch-share-net-btn:focus-visible {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.15);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.30);
  outline: none;
}
.arch-share-net-btn:active { transform: translateY(0); filter: brightness(.95); }
.arch-share-net-btn i { font-size: 14px; line-height: 1; }
.arch-share-net-btn--fb { background: #1877F2; }
.arch-share-net-btn--x  { background: #0f0f0f; }
.arch-share-net-btn--li { background: #0A66C2; }

/* Copy-link row -------------------------------------------------------- */
.arch-share-copy-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  width: 100%;
}
.arch-share-copy-input {
  flex: 1;
  min-width: 0;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(205,161,44,.22);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: default;
}
[data-theme="light"] .arch-share-copy-input {
  background: rgba(0,0,0,.05);
  color: rgba(0,0,0,.55);
}
.arch-share-copy-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .18s, transform .14s;
}
.arch-share-copy-btn:hover  { opacity: .88; transform: translateY(-1px); }
.arch-share-copy-btn:active { opacity: 1;   transform: none; }
.arch-share-copy-btn.is-copied { background: var(--accent); }

/* Tagline -------------------------------------------------------------- */
.arch-share-tagline {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  margin: 0;
  padding: 0 22px 20px;
  letter-spacing: .04em;
  position: relative;
  z-index: 1;
}
[data-theme="light"] .arch-share-tagline { color: rgba(0,0,0,.35); }
