/* ============================================================
   My Feed — customer_feed_v2.html

   Geometry from the refined Claude Design prototype's My Feed screen.
   The cards themselves are in feed.css, shared with the model profile;
   this file is only the page around them.
   ============================================================ */

/* ------------------------------------------------------------------
   HEAD
   Title and subtitle, scope pills, layout switch. Wraps rather than
   compresses: on a phone the pills drop to their own line and stay
   full-size, since they are the page's primary control.
   ------------------------------------------------------------------ */
.feed-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.feed-head__titles {
  flex: 1;
  min-width: 220px;
}

.feed-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 23px;
  letter-spacing: -.3px;
}

.feed-sub {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* ---- scope pills -------------------------------------------------- */
.feed-scopes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.feed-scope {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--line);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast),
              color var(--dur-fast);
}
.feed-scope:hover { border-color: var(--brand); color: var(--ink); }

.feed-scope.is-on {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* Hidden by the template until a real count arrives. */
.feed-scope__count {
  min-width: 16px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: var(--card-alt);
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.feed-scope.is-on .feed-scope__count {
  background: rgba(255, 255, 255, .25);
  color: #fff;
}

/* ---- all-models audience ----------------------------------------- */
.feed-audience-filter {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  margin: -10px 0 22px auto;
  align-items: center;
  gap: 10px;
}

.feed-audience-filter[hidden] { display: none; }

.feed-filter-label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.feed-filter-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card-alt);
}

.feed-filter-option {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
}

.feed-filter-option:hover,
.feed-filter-option:focus-visible {
  color: var(--ink);
}

.feed-filter-option.is-on {
  background: var(--card);
  color: var(--brand);
  box-shadow: var(--shadow);
}

/* Public-only is meaningful for Subscriptions. All models is already public
   by contract and Unlocked contains purchased extras, so JS hides it there. */
.feed-public-filter {
  display: flex;
  width: max-content;
  max-width: 100%;
  min-height: 44px;
  margin: -10px 0 22px auto;
  padding: 0 15px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
}

.feed-public-filter[hidden] { display: none; }

.feed-public-filter__mark {
  position: relative;
  width: 18px;
  height: 18px;
  flex: none;
  border: 1.5px solid var(--ink-soft);
  border-radius: 6px;
}

.feed-public-filter.is-on {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  color: var(--brand);
}

.feed-public-filter.is-on .feed-public-filter__mark {
  border-color: var(--brand);
  background: var(--brand);
}

.feed-public-filter.is-on .feed-public-filter__mark::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ------------------------------------------------------------------
   EMPTY STATE
   A card rather than a bare line, because it carries an action. Shown
   only once a request has come back empty — see feed.js.
   ------------------------------------------------------------------ */
.feed-empty {
  max-width: 480px;
  margin: 40px auto;
  padding: 44px 30px;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.feed-empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
}

.feed-empty__title {
  margin: 0 0 5px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}

.feed-empty__note {
  margin: 0 0 18px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------
   LIST
   A single narrow column, per the prototype. A post card carries a
   description and a tag row, so wide lines would be hard to read.
   ------------------------------------------------------------------ */
.feed-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 620px;
  margin: 0 auto;
}

.feed-foot {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.feed-sentinel {
  width: 100%;
  height: 1px;
  margin-top: 1px;
}

.feed-memory-note {
  max-width: 620px;
  margin: 0 auto 18px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--ink-soft);
  font-size: 11.5px;
  text-align: center;
}

.feed-memory-note__button {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.feed-memory-note__button:hover,
.feed-memory-note__button:focus-visible {
  text-decoration: underline;
}

/* The grid layout reuses .vault-grid from feed.css unchanged. */

@media (max-width: 620px) {
  .feed-head { gap: var(--space-3); }
  .feed-audience-filter {
    display: grid;
    width: 100%;
    margin: -2px 0 18px;
    gap: 7px;
  }
  .feed-filter-options {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .feed-filter-option {
    min-width: 0;
    min-height: 44px;
    padding: 0 8px;
  }
  .feed-public-filter {
    width: 100%;
    margin: -2px 0 18px;
    justify-content: center;
  }
  .feed-empty { margin: 24px auto; padding: 32px 22px; }
}
