/* Stage 2 — the single What’s Cooking social-feed presentation. */

.wc-feed-page,
.wc-seller-page {
  display: grid;
  gap: 0;
  color: var(--color-ink);
}

.wc-feed-hero h1,
.wc-seller-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.055em;
}

.wc-feed-hero p {
  max-width: 570px;
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 1.18rem;
  line-height: 1.42;
}

.wc-feed-tabs {
  display: flex;
  gap: 10px;
  margin: 30px 0 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.wc-feed-tabs::-webkit-scrollbar { display: none; }
.wc-feed-tabs a {
  display: inline-flex;
  min-height: 44px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--eetza-pill-radius, 12px);
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: var(--shadow-card);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}
.wc-feed-tabs a.is-active {
  border-color: var(--color-ink);
  background: var(--color-ink);
  color: var(--color-surface);
  box-shadow: none;
}

.wc-feed-create-prompt {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 34px;
  padding: 0 22px;
  border: 1px solid var(--color-line);
  border-radius: var(--eetza-pill-radius, 12px);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
  font-size: 1.05rem;
  text-decoration: none;
}
.wc-feed-create-prompt b { color: var(--color-brand); font-size: 1.5rem; font-weight: 400; }

.wc-feed-stream { display: grid; gap: 46px; }
.wc-feed-post { min-width: 0; }
.wc-feed-post-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.wc-feed-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-clay);
  color: var(--color-surface);
  font-size: 1.05rem;
  text-decoration: none;
}
.wc-feed-identity { min-width: 0; color: inherit; text-decoration: none; }
.wc-feed-identity strong,
.wc-feed-identity span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wc-feed-identity strong { font-size: 1.05rem; font-weight: 600; letter-spacing: -.02em; }
.wc-feed-identity span { margin-top: 3px; color: var(--color-subtle); font-size: .83rem; }
.wc-feed-follow { margin: 0; }
.wc-feed-follow button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--color-ink);
  border-radius: var(--eetza-pill-radius, 12px);
  background: var(--color-ink);
  color: var(--color-surface);
  box-shadow: none;
  font: inherit;
  font-weight: 500;
}
.wc-feed-follow button[data-following="1"],
.wc-feed-follow input[value="off"] + button {
  border-color: var(--color-line);
  background: var(--color-surface);
  color: var(--color-ink);
}

.wc-feed-photo {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 28px;
  background: var(--color-stone);
}
.wc-feed-photo img { width: 100%; height: 100%; object-fit: cover; }
.wc-feed-photo > span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgb(255 252 248 / .9);
  color: var(--color-sage);
  box-shadow: var(--shadow-card);
  font-size: .78rem;
  font-weight: 600;
  backdrop-filter: blur(12px);
}

.wc-feed-caption { margin: 16px 2px 0; }
.wc-feed-caption p { margin: 0; color: var(--color-ink); font-size: 1.05rem; line-height: 1.5; }

.wc-feed-product {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  margin: 18px 0 0;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--eetza-pill-radius, 12px);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  color: var(--color-ink);
  text-decoration: none;
}
.wc-feed-product img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.wc-feed-product span { min-width: 0; }
.wc-feed-product strong,
.wc-feed-product small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-feed-product strong { font-size: 1rem; font-weight: 600; }
.wc-feed-product small { margin-top: 3px; color: var(--color-muted); font-size: .88rem; }
.wc-feed-product b { font-size: 1.35rem; font-weight: 400; }

.wc-feed-actions {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 18px;
  margin: 14px 2px 0;
}
.wc-feed-actions form { margin: 0; }
.wc-feed-actions button,
.wc-feed-actions > a,
.wc-feed-more summary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  box-shadow: none;
  font: inherit;
  font-size: .9rem;
  text-decoration: none;
}
.wc-feed-actions button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.wc-feed-actions button.is-active { color: var(--color-brand); }
.wc-feed-actions button.is-active svg { fill: var(--color-brand-soft); stroke: var(--color-brand); }
.wc-feed-owner-likes {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  color: var(--color-muted);
  font-size: .9rem;
}
.wc-feed-owner-likes svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.wc-feed-comment-toggle,
.wc-feed-share,
.wc-feed-copy { cursor: pointer; }
.wc-feed-share svg circle,
.wc-feed-share svg path,
.wc-feed-copy svg path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.wc-feed-share-status {
  margin: 4px 2px 0;
  color: var(--color-sage);
  font-size: .78rem;
}
.wc-feed-share-status:empty { display: none; }
.wc-feed-more { position: relative; margin-left: auto; }
.wc-feed-more summary { cursor: pointer; list-style: none; font-size: 1rem; }
.wc-feed-more summary::-webkit-details-marker { display: none; }
.wc-feed-more form {
  position: absolute;
  right: 0;
  bottom: 42px;
  z-index: 5;
  width: max-content;
  padding: 8px 16px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: var(--shadow-lift);
}
.wc-feed-review-note { margin: 4px 2px 0; color: var(--color-subtle); font-size: .78rem; }

.wc-feed-comments[hidden] { display: none; }
.wc-feed-comments {
  display: grid;
  gap: 14px;
  margin: 8px 0 0;
  padding: 16px;
  border-top: 1px solid var(--color-line);
}
.wc-feed-comment-list { display: grid; gap: 14px; }
.wc-feed-comment {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.wc-feed-comment.is-reply { margin-left: 34px; }
.wc-feed-comment-avatar {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--color-stone);
  color: var(--color-muted);
  font-size: .75rem;
  font-weight: 600;
}
.wc-feed-comment > div { min-width: 0; }
.wc-feed-comment header { display: flex; align-items: baseline; gap: 8px; }
.wc-feed-comment header strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; font-weight: 600; }
.wc-feed-comment header span { flex: 0 0 auto; color: var(--color-subtle); font-size: .72rem; }
.wc-feed-comment p { margin: 3px 0 0; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.4; }
.wc-feed-comment-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.wc-feed-comment-actions form { margin: 0; }
.wc-feed-comment-actions button {
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  box-shadow: none;
  font: inherit;
  font-size: .74rem;
  font-weight: 600;
}
.wc-feed-no-comments { margin: 0; color: var(--color-subtle); font-size: .88rem; }
.wc-feed-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
  margin: 0;
}
.wc-feed-comment-form label { min-width: 0; }
.wc-feed-comment-form textarea {
  display: block;
  width: 100%;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  padding: 11px 14px;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-surface);
  color: var(--color-ink);
  font: inherit;
  font-size: .9rem;
  line-height: 1.35;
}
.wc-feed-comment-form > button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--color-ink);
  color: var(--color-surface);
  box-shadow: none;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
}
.wc-feed-replying {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--color-muted);
  font-size: .78rem;
}
.wc-feed-replying[hidden] { display: none; }
.wc-feed-replying button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  box-shadow: none;
  font-size: 1.2rem;
}
.wc-feed-comment-login { color: var(--color-brand); font-size: .88rem; font-weight: 600; text-decoration: none; }

.wc-feed-empty {
  padding: 70px 20px;
  text-align: center;
}
.wc-feed-empty h2,
.wc-feed-empty h3 { margin: 0; font-size: 1.35rem; font-weight: 600; }
.wc-feed-empty p { margin: 8px auto 0; max-width: 390px; }
.wc-feed-empty a { display: inline-flex; margin-top: 18px; color: var(--color-brand); font-weight: 600; }

/* Seller posting surface */
.wc-seller-page { gap: 28px; }
.wc-seller-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.wc-seller-hero p { margin: 0 0 8px; color: var(--color-brand); font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.wc-seller-hero h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
.wc-seller-hero span { display: block; max-width: 510px; margin-top: 14px; color: var(--color-muted); line-height: 1.45; }
.wc-seller-hero > a {
  flex: 0 0 auto;
  padding-bottom: 3px;
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: none;
}

.wc-post-composer {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--color-line);
  border-radius: 28px;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}
.wc-post-composer fieldset { display: flex; min-width: 0; max-width: 100%; gap: 8px; margin: 0; padding: 0; border: 0; }
.wc-post-composer legend { margin-bottom: 10px; color: var(--color-muted); font-size: .82rem; font-weight: 600; }
.wc-post-composer fieldset label { min-width: 0; flex: 1 1 0; }
.wc-post-composer fieldset input[type="radio"] {
  position: absolute;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.wc-post-composer fieldset span {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--eetza-pill-radius, 12px);
  color: var(--color-muted);
  font-size: .85rem;
  text-align: center;
}
.wc-post-composer fieldset input:checked + span { border-color: var(--color-ink); background: var(--color-ink); color: var(--color-surface); }
.wc-post-composer > label { display: grid; gap: 8px; color: var(--color-muted); font-size: .82rem; font-weight: 600; }
.wc-post-composer .wc-composer-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.wc-post-composer textarea,
.wc-post-composer select {
  position: static;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: var(--color-surface);
}
.wc-post-composer textarea { min-height: 118px; padding: 15px; resize: vertical; color: var(--color-ink); font-size: 1rem; line-height: 1.45; }
.wc-post-composer select { min-height: 48px; padding: 0 14px; color: var(--color-ink); font-size: .95rem; }
.wc-composer-caption { position: relative; }
.wc-composer-caption small { position: absolute; right: 12px; bottom: 10px; color: var(--color-subtle); font-weight: 400; }
.wc-composer-photo {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  padding: 18px;
  border: 1px dashed var(--color-stone);
  border-radius: 18px;
  background: var(--color-canvas);
}
.wc-composer-photo .wc-composer-file-button {
  display: inline-flex;
  width: max-content;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
}
.wc-composer-photo .wc-composer-file-status { min-width: 0; overflow-wrap: anywhere; color: var(--color-subtle); font-weight: 400; }
.wc-publish-button {
  min-height: 50px;
  border: 0;
  border-radius: var(--eetza-pill-radius, 12px);
  background: var(--color-ink);
  color: var(--color-surface);
  box-shadow: none;
  font: inherit;
  font-weight: 600;
}

.wc-your-posts { display: grid; gap: 14px; padding-top: 10px; }
.wc-your-posts-head { display: flex; align-items: center; justify-content: space-between; }
.wc-your-posts-head h2 { margin: 0; font-size: 1.55rem; font-weight: 600; }
.wc-your-posts-head span { color: var(--color-subtle); }
.wc-seller-post-list { display: grid; gap: 10px; }
.wc-seller-post-list article {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: var(--color-surface);
}
.wc-seller-post-list img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.wc-seller-post-list div { min-width: 0; }
.wc-seller-post-list small,
.wc-seller-post-list span { display: block; color: var(--color-subtle); font-size: .78rem; }
.wc-seller-post-list p { margin: 4px 0; overflow: hidden; color: var(--color-ink); text-overflow: ellipsis; white-space: nowrap; }
.wc-seller-post-list button { border: 0; background: transparent; color: var(--color-brand); box-shadow: none; font: inherit; font-size: .82rem; font-weight: 600; }

@media (max-width: 560px) {
  .wc-feed-hero h1 { font-size: 2.7rem; }
  .wc-feed-hero p { margin-top: 16px; font-size: 1.05rem; }
  .wc-feed-tabs { margin-top: 24px; gap: 8px; }
  .wc-feed-tabs a { min-height: 42px; padding: 0 18px; font-size: .92rem; }
  .wc-feed-stream { gap: 38px; }
  .wc-feed-photo { border-radius: 24px; }
  .wc-seller-hero { display: grid; }
  .wc-post-composer { padding: 18px; border-radius: 24px; }
  .wc-post-composer > *,
  .wc-post-composer label,
  .wc-post-composer select,
  .wc-post-composer textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .wc-post-composer fieldset {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wc-post-composer fieldset label { width: auto; min-width: 0; }
  .wc-post-composer fieldset label:last-child { grid-column: 1 / -1; }
  .wc-composer-photo .wc-composer-file-button { max-width: 100%; }
  .wc-seller-post-list article { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .wc-seller-post-list article:not(:has(> img)) { grid-template-columns: minmax(0, 1fr) auto; }
  .wc-seller-post-list img { width: 56px; height: 56px; }
}
