/* Feed da comunidade — mobile primeiro. Colunas só a partir de 960px. */
.feed-page { padding:22px var(--gutter) 64px; display:grid; gap:16px; max-width:1060px; min-width:0; }
.feed-layout { display:grid; gap:16px; grid-template-columns:minmax(0,1fr); align-items:start; }
.feed-main { display:grid; gap:14px; min-width:0; }
.feed-side { display:grid; gap:14px; min-width:0; }
.feed-side-card { padding:16px; display:grid; gap:10px; }
.feed-side-card h2 { margin:0; font-size:1rem; display:flex; align-items:center; gap:8px; }
.feed-side-card h2 .icon { width:18px; height:18px; color:var(--accent-text); }
.feed-side-card ul { margin:0; padding-left:18px; display:grid; gap:7px; color:var(--text-soft); font-size:.9rem; }
.feed-side-links { display:grid; gap:4px; }
.feed-side-links a { display:flex; gap:9px; align-items:center; padding:9px 10px; border-radius:10px; color:var(--text); text-decoration:none; }
.feed-side-links a:hover { background:var(--accent-soft); color:var(--accent-text); }
.feed-side-links .icon { width:18px; height:18px; }

/* Barra da equipe */
.feed-staffbar { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:12px 14px; border:1px solid var(--accent); border-radius:14px; background:var(--accent-soft); color:var(--text); font-size:.9rem; }
.feed-staffbar > span { display:flex; gap:8px; align-items:flex-start; min-width:0; flex:1 1 260px; }
.feed-staffbar .icon { width:18px; height:18px; flex:none; margin-top:2px; color:var(--accent-text); }
.feed-muted { display:flex; gap:10px; align-items:flex-start; padding:14px 16px; border-left:4px solid var(--danger, #d33); }
.feed-muted .icon { width:20px; height:20px; flex:none; color:var(--danger, #d33); }

/* Abas */
.feed-tabs { display:flex; gap:6px; flex-wrap:wrap; }
.feed-tab { display:inline-flex; align-items:center; gap:7px; min-height:40px; padding:7px 14px; border:1px solid var(--border); border-radius:999px; background:var(--surface); color:var(--text-soft); text-decoration:none; font-weight:600; font-size:.9rem; }
.feed-tab .icon { width:16px; height:16px; }
.feed-tab:hover { color:var(--accent-text); border-color:var(--accent); }
.feed-tab.is-active { background:var(--accent); border-color:var(--accent); color:var(--accent-ink, #fff); }
.feed-tab-help { margin:-4px 2px 0; color:var(--muted); font-size:.85rem; }

/* Compositor */
.feed-composer { display:grid; gap:12px; padding:14px; }
.feed-composer-top { display:flex; gap:10px; align-items:flex-start; }
.feed-composer-field { flex:1; min-width:0; }
.feed-composer textarea { width:100%; min-height:56px; max-height:240px; resize:none; }
.feed-composer-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.feed-composer-actions .btn--primary { margin-left:auto; }
.feed-photo-button { cursor:pointer; }
.feed-count { color:var(--muted); font-size:.8rem; font-variant-numeric:tabular-nums; }
.feed-count.is-near { color:var(--warning, #c77700); font-weight:700; }
.feed-preview { position:relative; margin:0; border-radius:14px; overflow:hidden; background:var(--surface-2); max-height:260px; }
.feed-preview[hidden] { display:none; }
.feed-preview img { display:block; width:100%; max-height:260px; object-fit:cover; }
.feed-preview .btn { position:absolute; top:8px; right:8px; background:rgba(0,0,0,.55); color:#fff; }
.feed-spoiler-option { display:inline-flex; gap:7px; align-items:center; font-size:.88rem; cursor:pointer; }
.feed-spoiler-option input { accent-color:var(--accent); }
.feed-guest { display:flex; gap:12px; align-items:center; flex-wrap:wrap; padding:16px; }
.feed-guest span { color:var(--muted); flex:1 1 200px; }

/* Lista e publicações */
.feed-list { display:grid; gap:14px; min-width:0; }
.feed-list--pinned { padding-bottom:2px; }
.feed-post { display:grid; gap:12px; padding:16px; overflow:visible; min-width:0; transition:border-color .15s, box-shadow .15s; }
.feed-post:hover { border-color:color-mix(in srgb, var(--accent) 35%, var(--border)); }
.feed-post.is-pinned { border-color:var(--accent); box-shadow:0 0 0 1px var(--accent) inset; }
.feed-post.is-hidden { opacity:.78; border-style:dashed; }
.feed-post-head { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.feed-author { display:flex; gap:10px; align-items:center; min-width:0; color:var(--text); text-decoration:none; }
.feed-author > span:last-child { display:grid; min-width:0; }
.feed-author strong { overflow-wrap:anywhere; }
.feed-author small { color:var(--muted); overflow-wrap:anywhere; }
.feed-edited { font-style:italic; }
.feed-post-tools { display:flex; align-items:center; gap:2px; flex:none; position:relative; }
.feed-flags { display:flex; gap:6px; flex-wrap:wrap; }
.feed-flag { display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:999px; background:var(--surface-2); color:var(--text-soft); font-size:.76rem; font-weight:700; }
.feed-flag .icon { width:13px; height:13px; }
.feed-flag--pin { background:var(--accent-soft); color:var(--accent-text); }
.feed-flag--hidden,.feed-flag--report { background:rgba(214,60,60,.14); color:var(--danger, #d33); }
.feed-flag--spoiler { background:rgba(214,150,0,.16); color:var(--warning, #b87400); }
.feed-post-body { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.6; font-size:1rem; }
.feed-spoiler { border:1px solid var(--border); border-radius:12px; padding:10px 12px; background:var(--surface-2); }
.feed-spoiler summary { cursor:pointer; color:var(--accent-text); font-weight:700; }
.feed-spoiler[open] { display:grid; gap:12px; }
.feed-photo { display:block; max-height:620px; overflow:hidden; border-radius:14px; background:var(--surface-2); }
.feed-photo img { display:block; width:100%; max-height:620px; object-fit:cover; }
.feed-post-actions { display:flex; align-items:center; gap:4px; padding-top:8px; border-top:1px solid var(--border); flex-wrap:wrap; }
.feed-actions-end { margin-left:auto; }
.feed-icon-action { display:inline-flex; gap:6px; align-items:center; justify-content:center; min-width:42px; min-height:40px; padding:6px 10px; border:0; border-radius:10px; background:transparent; color:var(--text-soft); text-decoration:none; cursor:pointer; list-style:none; }
.feed-icon-action::-webkit-details-marker { display:none; }
.feed-icon-action:hover,.feed-icon-action.is-active { color:var(--accent-text); background:var(--accent-soft); }
.feed-icon-action.is-active .icon { fill:currentColor; }
.feed-icon-action .icon { width:19px; height:19px; }
.feed-icon-action--tool { min-width:38px; min-height:38px; padding:6px; }

/* Menu ⋯ */
.feed-menu { position:relative; }
.feed-menu > summary { list-style:none; }
.feed-menu-panel { position:absolute; right:0; top:calc(100% + 4px); z-index:30; min-width:230px; max-width:min(300px, calc(100vw - 32px)); display:grid; padding:6px; border:1px solid var(--border); border-radius:14px; background:var(--surface); box-shadow:0 18px 50px rgba(0,0,0,.28); }
.feed-menu-panel button { display:flex; gap:10px; align-items:center; width:100%; min-height:42px; padding:8px 12px; border:0; border-radius:10px; background:transparent; color:var(--text); font:inherit; font-size:.92rem; text-align:left; cursor:pointer; }
.feed-menu-panel button:hover { background:var(--accent-soft); color:var(--accent-text); }
.feed-menu-panel button.is-danger { color:var(--danger, #d33); }
.feed-menu-panel button.is-danger:hover { background:rgba(214,60,60,.12); }
.feed-menu-panel .icon { width:17px; height:17px; flex:none; }

/* Edição */
.feed-edit { display:grid; gap:8px; }
.feed-edit textarea { width:100%; min-height:96px; }
.feed-edit-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

/* Comentários */
.feed-comments { display:grid; gap:8px; }
.feed-comment-list { display:grid; gap:7px; }
.feed-comment { display:flex; gap:8px; align-items:flex-start; }
.feed-comment-avatar { width:28px; height:28px; flex:none; overflow:hidden; display:grid; place-items:center; border-radius:50%; background:var(--surface-3); color:var(--text-soft); font-size:.7rem; font-weight:700; }
.feed-comment-avatar img { width:100%; height:100%; object-fit:cover; }
.feed-comment p { margin:0; padding:7px 10px; border-radius:12px; background:var(--surface-2); overflow-wrap:anywhere; font-size:.9rem; min-width:0; flex:0 1 auto; }
.feed-comment-badges { margin-left:4px; }
.feed-comment-del { flex:none; width:30px; height:30px; margin-left:-2px; display:grid; place-items:center; border:0; border-radius:50%; background:transparent; color:var(--muted); cursor:pointer; font-size:1.1rem; line-height:1; opacity:.55; }
.feed-comment-del .icon { width:14px; height:14px; }
.feed-comment:hover .feed-comment-del,.feed-comment-del:focus-visible { opacity:1; }
.feed-comment-del:hover { background:rgba(214,60,60,.14); color:var(--danger, #d33); }
.feed-more-comments { justify-self:start; padding:4px 2px; border:0; background:transparent; color:var(--accent-text); font:inherit; font-size:.88rem; font-weight:700; cursor:pointer; }
.feed-more-comments:hover { text-decoration:underline; }
.feed-lock-note { display:flex; gap:7px; align-items:center; margin:0; color:var(--muted); font-size:.85rem; }
.feed-lock-note .icon { width:15px; height:15px; }
.feed-comment-form { display:flex; gap:6px; position:relative; flex-wrap:wrap; }
.feed-comment-form .input { flex:1; min-width:0; }
.feed-status { color:var(--muted); font-size:.78rem; }
.feed-comment-form .feed-status { flex-basis:100%; }

/* Paginação */
.feed-pager { display:flex; gap:10px; align-items:center; justify-content:space-between; flex-wrap:wrap; }
.feed-pager-page { color:var(--muted); font-size:.88rem; }

/* Diálogos e aviso rápido */
.feed-gift-dialog { width:min(540px,calc(100vw - 24px)); max-height:82vh; padding:0; border:1px solid var(--border); border-radius:18px; color:var(--text); background:var(--surface); box-shadow:0 24px 80px rgba(0,0,0,.3); }
.feed-gift-dialog::backdrop { background:rgba(17,14,28,.58); backdrop-filter:blur(3px); }
.feed-gift-head { display:flex; justify-content:space-between; align-items:center; padding:14px 16px; border-bottom:1px solid var(--border); }
.feed-gift-dialog form { display:grid; gap:12px; padding:14px; }
.feed-gift-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:8px; max-height:48vh; overflow:auto; }
.feed-gift-option { display:grid; justify-items:center; gap:5px; padding:9px; border:1px solid var(--border); border-radius:12px; background:var(--surface-2); text-align:center; cursor:pointer; }
.feed-gift-option img,.feed-gift-empty { width:58px; height:58px; object-fit:contain; display:grid; place-items:center; border-radius:10px; background:var(--surface); font-size:1.7rem; }
.feed-gift-option strong { font-size:.87rem; }
.feed-gift-option small { color:var(--muted); font-size:.74rem; }
.feed-gift-dialog form > .btn { justify-self:end; }
.feed-ask-dialog { width:min(440px,calc(100vw - 24px)); }
.feed-ask-text { margin:0; color:var(--text-soft); font-size:.92rem; }
.feed-ask-actions { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; }
.feed-toast { position:fixed; left:50%; bottom:22px; z-index:200; transform:translate(-50%,20px); max-width:min(92vw,440px); padding:11px 18px; border-radius:12px; background:var(--text); color:var(--bg); font-size:.92rem; font-weight:600; opacity:0; pointer-events:none; transition:opacity .2s, transform .2s; box-shadow:0 12px 36px rgba(0,0,0,.3); }
.feed-toast.is-visible { opacity:1; transform:translate(-50%,0); }
.feed-toast.is-error { background:var(--danger, #c0392b); color:#fff; }

/* Central de moderação */
.feed-mod-grid { display:grid; gap:16px; grid-template-columns:minmax(0,1fr); align-items:start; }
.feed-mod-main { display:grid; gap:12px; min-width:0; }
.feed-mod-side { display:grid; gap:14px; min-width:0; }
.feed-mod-title { margin:0; font-size:1.1rem; display:flex; gap:8px; align-items:center; }
.feed-mod-title .icon { width:20px; height:20px; color:var(--danger, #d33); }
.feed-mod-note { margin:0; color:var(--muted); font-size:.85rem; }
.feed-muted-list,.feed-log { list-style:none; margin:0; padding:0; display:grid; gap:8px; }
.feed-muted-list li { display:flex; gap:10px; justify-content:space-between; align-items:center; flex-wrap:wrap; padding-bottom:8px; border-bottom:1px solid var(--border); }
.feed-muted-list small,.feed-log small { display:block; color:var(--muted); font-size:.78rem; overflow-wrap:anywhere; }
.feed-log li { padding-bottom:8px; border-bottom:1px dashed var(--border); font-size:.9rem; }
.feed-log li:last-child,.feed-muted-list li:last-child { border-bottom:0; }

@media (min-width:960px) {
  .feed-layout { grid-template-columns:minmax(0,1fr) 280px; }
  .feed-side { position:sticky; top:84px; }
  .feed-mod-grid { grid-template-columns:minmax(0,1fr) 340px; }
}
@media (max-width:600px) {
  .feed-post { padding:13px; }
  .feed-page { padding-top:16px; }
  .feed-photo img { max-height:480px; }
  .feed-composer-actions .btn--primary { margin-left:0; flex:1 1 100%; justify-content:center; }
  .feed-tab { padding:6px 12px; min-height:38px; }
  .feed-menu-panel { right:-6px; }
}

/* ==================================================================
   Feed social — ajustes (alpha.115 revisão 7): cartões com borda e
   sombra sutil, botões em pílula, autor com cor de destaque na linha.
   Só visual. Nada no HTML.
   ================================================================== */
.feed-page { max-width: 1120px; }
.feed-side-card {
  border-radius: 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 4%, var(--surface)) 0, var(--surface) 70%);
  border: 1px solid color-mix(in srgb, var(--accent) 10%, var(--border));
  box-shadow: 0 10px 22px -18px color-mix(in srgb, var(--accent) 24%, rgba(0, 0, 0, .35));
}
.feed-side-links a { transition: background .15s ease, color .15s ease, transform .1s ease; }
.feed-side-links a:hover { transform: translateX(3px); }

.feed-staffbar {
  border-radius: 18px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 24%, var(--surface)), color-mix(in srgb, var(--accent) 10%, var(--surface)));
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 14px 24px -18px color-mix(in srgb, var(--accent) 35%, transparent);
}
