/* ==========================================================================
   Anonymous public share landing (/s/{token}).
   Owning feature: share-links
   Load order is defined in Views/Shared/_CssIncludes.cshtml — do not reorder.
   ========================================================================== */

.fh-public-share-body {
  margin: 0;
  background: var(--fh-bg);
  font-family: var(--fh-font-sans);
  color: var(--fh-text);
}

.fh-public-share {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

.fh-public-share-bar {
  display: flex;
  align-items: center;
  padding: 0.875rem var(--fh-gutter);
  background: #fff;
  border-bottom: 1px solid var(--fh-border);
}

.fh-public-share-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: var(--fh-weight-semibold);
}

.fh-public-share-logo {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
  border-radius: 0.35rem;
}

.fh-public-share-main {
  flex: 1;
  padding: 1.5rem var(--fh-gutter) 2.5rem;
  width: 100%;
  max-width: var(--fh-read-max, 72rem);
  margin: 0 auto;
}

.fh-public-share-card {
  background: #fff;
  border: 1px solid var(--fh-border);
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.fh-public-share-meta {
  padding: 1.25rem 1.5rem;
}

.fh-public-share-name {
  font-size: var(--fh-text-xl, 1.25rem);
  font-weight: var(--fh-weight-semibold);
  margin: 0 0 0.35rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fh-public-share-sub {
  margin: 0 0 1rem;
  font-size: var(--fh-text-sm, 0.875rem);
}

.fh-public-share-preview {
  border-top: 1px solid var(--fh-border);
  background: var(--fh-soft);
  min-height: 12rem;
}

.fh-public-share-status {
  text-align: center;
  padding: 3rem 1.5rem;
}

.fh-public-share-status i {
  font-size: 2rem;
  color: var(--fh-muted);
  margin-bottom: 1rem;
  display: block;
}

.fh-public-share-status h1 {
  font-size: var(--fh-text-lg, 1.125rem);
  font-weight: var(--fh-weight-semibold);
  margin: 0;
}

.fh-share-link-box {
  display: flex;
  gap: 0.5rem;
}

.fh-share-link-box input {
  flex: 1;
  min-width: 0;
  font-family: var(--fh-font-mono, ui-monospace, monospace);
  font-size: 0.875rem;
}

/* --- Share Link modal --------------------------------------------------
   Owning feature: share-links. Centered, link-only dialog (Google-Drive
   style). Styles here ride on top of the generic .modal restyle in
   components/modals.css using app tokens so it matches the rest of the UI. */
#shareModal .fh-share-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--fh-text);
  font-weight: var(--fh-weight-semibold);
}

#shareModal .fh-share-item > i {
  color: var(--fh-primary);
  font-size: 1rem;
}

#shareModal .fh-share-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#shareModal .fh-share-status {
  display: flex;
  align-items: center;
}

#shareModal .fh-share-status .badge {
  font-size: 0.75rem;
  font-weight: var(--fh-weight-semibold);
}

#shareModal .fh-share-link-box .btn {
  white-space: nowrap;
  flex-shrink: 0;
}
