/* ============================================================================
 * MelóPont — Közösség oldal (community.html) stílusa · v2 (2026.09.30)
 * ----------------------------------------------------------------------------
 * Minden szín, lekerekítés, árnyék a melopont-style.css :root tokenjeiből jön.
 * Csak itt definiált, oldal-specifikus tokenek: --cm-*.
 * Olvashatóság: 13px alatti szöveg nincs (számláló-buborék kivétel nélkül).
 * ========================================================================== */

:root {
  --cm-gap: 12px;
  --cm-radius: var(--mp-card-radius, 12px);
  --cm-radius-lg: 16px;
  --cm-soft: #F8FAFC;
  --cm-soft-hover: #EEF2F7;
  --cm-online: #15803D;
  --cm-star: #B45309;
  /* Poszttípus-címkék: halvány háttér + sötét, jól olvasható szöveg (>= 4.5:1) */
  --cm-type-job_offer-bg: #E6F4EC;    --cm-type-job_offer-fg: #04592F;
  --cm-type-job_search-bg: #E8F0FE;   --cm-type-job_search-fg: #0B4F96;
  --cm-type-question-bg: #FFF4E0;     --cm-type-question-fg: #8A4B00;
  --cm-type-announcement-bg: #F1ECFB; --cm-type-announcement-fg: #5B3A9E;
}

.cm-page [hidden], .cm-dialog [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cm-avatar-btn { display: inline-flex; border-radius: 50%; flex-shrink: 0; text-decoration: none; }
.cm-avatar-btn:hover { text-decoration: none; }
.cm-avatar-btn:focus-visible { outline: 3px solid var(--mp-blue); outline-offset: 2px; }
.cm-comment-main { flex: 1; min-width: 0; }

body { background: var(--mp-bg); color: var(--mp-text-primary); min-height: 100dvh; padding-bottom: 80px; }

.cm-page {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--mp-page-top, 24px) 12px 24px;
  display: flex;
  flex-direction: column;
  gap: var(--cm-gap);
}

.cm-card {
  background: var(--mp-white);
  border: 1px solid var(--mp-card-border);
  border-radius: var(--cm-radius-lg);
  box-shadow: var(--mp-card-shadow);
}

/* ── Fejléc-kártya: cím + élő számok ── */
.cm-hero { padding: 20px 20px 16px; }
.cm-hero-top { display: flex; align-items: center; gap: 12px; }
.cm-hero-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--mp-blue-light); color: var(--mp-blue);
}
.cm-hero h1 { font-size: calc(22px * var(--mp-fs, 1)); font-weight: 700; line-height: 1.2; }
.cm-hero p { font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); margin-top: 2px; line-height: 1.45; }
.cm-stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 16px; }   /* STACK-01 (10.12, László: „ahol egymás mellett vannak a kártyák, legyenek egymás alatt”) */
.cm-stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; background: var(--cm-soft); border-radius: 10px; padding: 8px 14px; text-align: left; }
.cm-stat-num { display: block; font-size: calc(20px * var(--mp-fs, 1)); font-weight: 800; line-height: 1.2; color: var(--mp-text-primary); }
.cm-stat-lbl { display: block; font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); }
.cm-stat--live .cm-stat-num { color: var(--cm-online); }
.cm-stat--live .cm-stat-lbl::before {
  content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cm-online); margin-right: 5px; vertical-align: 1px;
}

/* ── Szerkesztő (composer) ── */
.cm-composer { padding: 16px; }
.cm-composer-row { display: flex; align-items: center; gap: 12px; }
/* CM-NEWPOST-01 (10.11): cím + magyarázat + teli „Új bejegyzés írása” gomb (a halvány álmező nem látszott gombnak) */
.cm-composer-intro { flex: 1; min-width: 0; }
.cm-composer-title { margin: 0; font-size: calc(17px * var(--mp-fs, 1)); font-weight: 700; line-height: 1.3; color: var(--mp-text-primary); }
.cm-composer-hint { margin: 2px 0 0; font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.45; color: var(--mp-text-muted); }
.cm-composer-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cm-composer-cta .cm-composer-open, .cm-composer-cta .mp-ww-quick { flex: 1 1 100%; min-width: 0; min-height: 48px; justify-content: center; text-align: center; white-space: normal; font-size: calc(15px * var(--mp-fs, 1)); }   /* STACK-01: a két gomb egymás alatt; 320 px-en, 150 %-on az AI-gomb 363 px-ig lógott ki */
.cm-composer-open svg { flex-shrink: 0; }
.cm-composer-form { display: none; margin-top: 14px; }
.cm-composer.is-open .cm-composer-form { display: block; }
.cm-composer.is-open .cm-composer-cta { display: none; }

/* Lebegő „Új bejegyzés” gomb — csak ha a szerkesztő nem látszik (bal lent, a Meló-gombbal nem ütközik) */
.cm-fab {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 900;
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 12px 20px;
  border: 0; border-radius: var(--mp-radius-pill); background: var(--mp-blue); color: var(--mp-white);
  font: inherit; font-size: calc(15px * var(--mp-fs, 1)); font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 20px rgba(10, 102, 194, .35);
}
.cm-fab:hover { background: var(--mp-blue-hover); }
.cm-fab:focus-visible { outline: 3px solid var(--mp-blue-light); outline-offset: 2px; }
.cm-fab[hidden] { display: none; }
@media (max-width: 400px) {   /* keskeny telefonon csak a „+” jel, hogy a jobb alsó „Kérdezd Melót” gombbal ne érjenek össze */
  .cm-fab { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .cm-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* AI-POST-01 (10.12): a szerkesztő három számozott lépésben; a „Munkát keresek” külön, AI-s választás */
.cm-cs { padding: 14px 0 0; }
.cm-cs + .cm-cs { margin-top: 14px; border-top: 1px solid var(--mp-divider); }
.cm-cs-title {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 10px;
  font-size: calc(15px * var(--mp-fs, 1)); font-weight: 700; line-height: 1.35; color: var(--mp-text-primary);
}
.cm-cs-title label { cursor: pointer; }
.cm-cs-n {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: calc(26px * var(--mp-fs, 1)); height: calc(26px * var(--mp-fs, 1)); border-radius: 50%;
  background: var(--mp-blue-light); color: var(--mp-blue); font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700;
}
.cm-cs-opt { font-weight: 500; color: var(--mp-text-muted); font-size: calc(14px * var(--mp-fs, 1)); }
.cm-types { display: grid; gap: 10px; }
.cm-types .cm-type-chips { margin-bottom: 0; }
.cm-type-ai-wrap { display: grid; gap: 8px; }
.cm-type-or {
  display: flex; align-items: center; gap: 10px;
  font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; color: var(--mp-text-muted);
}
.cm-type-or::before, .cm-type-or::after { content: ''; flex: 1; height: 1px; background: var(--mp-card-border); }
.cm-type-chip--ai {
  justify-content: flex-start; gap: 10px; width: 100%; min-height: 56px; padding: 8px 16px; border-radius: 14px; text-align: left;
  border: 2px solid transparent;
  background: linear-gradient(var(--mp-white), var(--mp-white)) padding-box,
              linear-gradient(135deg, var(--mp-ai-from), var(--mp-ai-to)) border-box;
}
.cm-type-chip--ai .mp-ai-tag { flex-shrink: 0; }
.cm-ai-mark::before { content: 'AI'; }   /* felirat ::before-ral: a jelvény a gomb állapotától függetlenül fehér-a-színesen marad */
.cm-type-ai-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cm-type-ai-txt strong { font-size: calc(15px * var(--mp-fs, 1)); color: var(--mp-text-primary); }
.cm-type-ai-txt span { font-size: calc(14px * var(--mp-fs, 1)); font-weight: 500; color: var(--mp-text-muted); }
.cm-type-chip--ai:hover { background: linear-gradient(var(--mp-ai-soft), var(--mp-ai-soft)) padding-box,
                                      linear-gradient(135deg, var(--mp-ai-from), var(--mp-ai-to)) border-box; }
.cm-type-chip.cm-type-chip--ai[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--mp-ai-soft), var(--mp-ai-soft-2)) padding-box,
              linear-gradient(135deg, var(--mp-ai-from), var(--mp-ai-to)) border-box;
  border-color: transparent; color: var(--mp-text-primary);
  box-shadow: 0 0 0 3px var(--mp-blue-light);
}
.cm-ai-slot { margin-top: 12px; }
.cm-ai-slot[hidden] { display: none; }
.cm-ai-slot .mp-jp-ai { margin: 0; }

.cm-type-label { display: block; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; color: var(--mp-text-muted); margin-bottom: 8px; }
.cm-type-label--spaced { margin-top: 10px; }
.cm-feed { display: contents; }
.cm-type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.cm-type-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px;
  border: 1px solid var(--mp-card-border); border-radius: var(--mp-radius-pill);
  background: var(--mp-white); color: var(--mp-text-primary);
  font: inherit; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; cursor: pointer;
}
.cm-type-chip svg { width: 16px; height: 16px; }
.cm-type-chip[aria-pressed="true"] { background: var(--mp-blue); border-color: var(--mp-blue); color: var(--mp-white); }
.cm-textarea {
  width: 100%; min-height: 130px; max-height: 340px; resize: vertical;
  padding: 12px 14px; border: 1px solid var(--mp-card-border); border-radius: var(--cm-radius);
  font: inherit; font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.55; color: var(--mp-text-primary); background: var(--mp-white);
}
.cm-textarea:focus { outline: none; border-color: var(--mp-blue); box-shadow: 0 0 0 3px var(--mp-blue-light); }
.cm-composer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.cm-counter { font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); }
.cm-counter.is-warn { color: var(--cm-type-question-fg); }
.cm-counter.is-danger { color: var(--mp-red); font-weight: 600; }
.cm-composer-actions { display: flex; gap: 8px; }

/* ── Gombok ── */
.cm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 18px; border-radius: var(--mp-radius-pill);
  font: inherit; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.cm-btn:active { transform: scale(.97); }
.cm-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.cm-btn--primary { background: var(--mp-blue); color: var(--mp-white); }
.cm-btn--primary:hover { background: var(--mp-blue-hover); }
.cm-btn--ghost { background: var(--mp-white); color: var(--mp-text-primary); border-color: var(--mp-card-border); }
.cm-btn--ghost:hover { background: var(--cm-soft); }
.cm-btn--danger { background: var(--mp-red); color: var(--mp-white); }
.cm-btn:disabled {
  background: var(--mp-disabled-bg); color: var(--mp-disabled-text);
  border-color: var(--mp-disabled-border); cursor: not-allowed; transform: none;
}

/* ── Szűrők ── */
.cm-filters {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cm-filters::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .cm-filters { flex-wrap: wrap; overflow: visible; } }
.cm-filter {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 6px 16px; border-radius: var(--mp-radius-pill);
  border: 1px solid var(--mp-card-border); background: var(--mp-white); color: var(--mp-text-primary);
  font: inherit; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.cm-filter svg { width: 16px; height: 16px; }
.cm-filter:hover { border-color: var(--mp-blue); color: var(--mp-blue); }
.cm-filter[aria-pressed="true"] { background: var(--mp-text-primary); border-color: var(--mp-text-primary); color: var(--mp-white); }

/* ── Poszt-kártya ── */
.cm-post { padding: 16px 16px 12px; position: relative; animation: cm-in .25s ease-out; }
.cm-post.is-highlight { border-color: var(--mp-blue); box-shadow: 0 0 0 3px var(--mp-blue-light), var(--mp-card-shadow); }
@keyframes cm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cm-post-head { display: flex; align-items: flex-start; gap: 12px; }
.cm-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: calc(16px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-white); background: var(--mp-text-muted);
  cursor: pointer; border: 0; padding: 0;
}
.cm-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cm-avatar--worker { background: var(--mp-blue); }
.cm-avatar--company { background: var(--mp-green); }
.cm-avatar--sm { width: 36px; height: 36px; font-size: calc(14px * var(--mp-fs, 1)); cursor: default; }

.cm-author { flex: 1; min-width: 0; }
.cm-author-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.cm-post .cm-author a.cm-author-name { font-size: calc(16px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-text-primary); text-decoration: none; }
.cm-post .cm-author a.cm-author-name:hover { color: var(--mp-blue); text-decoration: underline; }
.cm-role {
  font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; padding: 1px 10px; border-radius: var(--mp-radius-pill);
  background: var(--mp-blue-light); color: var(--mp-blue-hover);
}
.cm-role--company { background: var(--mp-green-light); color: var(--cm-type-job_offer-fg); }
.cm-online { display: inline-flex; align-items: center; gap: 5px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; color: var(--cm-online); }
.cm-online::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cm-online); }
.cm-rating { display: inline-flex; align-items: center; gap: 3px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; color: var(--cm-star); }
.cm-rating svg { width: 14px; height: 14px; fill: currentColor; }
.cm-author-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 3px;
  font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted);
}
.cm-author-meta span { display: inline-flex; align-items: center; gap: 4px; }
.cm-author-meta svg { width: 14px; height: 14px; flex-shrink: 0; }

.cm-follow {
  min-height: 32px; padding: 4px 12px; font-size: calc(14px * var(--mp-fs, 1));
  border: 1px solid var(--mp-blue); color: var(--mp-blue); background: var(--mp-white);
}
.cm-follow:hover { background: var(--mp-blue-light); }
.cm-follow[aria-pressed="true"] { border-color: var(--mp-card-border); color: var(--mp-text-muted); }

.cm-menu-wrap { position: relative; flex-shrink: 0; }
.cm-icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--mp-text-muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.cm-icon-btn:hover { background: var(--cm-soft-hover); color: var(--mp-text-primary); }
.cm-icon-btn svg { width: 20px; height: 20px; }
.cm-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 190px; overflow: hidden;
  background: var(--mp-white); border: 1px solid var(--mp-card-border); border-radius: var(--cm-radius);
  box-shadow: 0 8px 24px rgba(16,24,40,.12);
}
.cm-menu.is-open { display: block; }
.cm-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 10px 16px;
  border: 0; background: none; font: inherit; font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-primary); text-align: left; cursor: pointer;
}
.cm-menu button:hover { background: var(--cm-soft); }
.cm-menu button svg { width: 16px; height: 16px; }
.cm-menu .is-danger { color: var(--mp-red); }

.cm-type-tag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; padding: 3px 12px; border-radius: var(--mp-radius-pill);
}
.cm-type-tag svg { width: 14px; height: 14px; }
.cm-type-tag--job_offer { background: var(--cm-type-job_offer-bg); color: var(--cm-type-job_offer-fg); }
.cm-type-tag--job_search { background: var(--cm-type-job_search-bg); color: var(--cm-type-job_search-fg); }
.cm-type-tag--question { background: var(--cm-type-question-bg); color: var(--cm-type-question-fg); }
.cm-type-tag--announcement { background: var(--cm-type-announcement-bg); color: var(--cm-type-announcement-fg); }

.cm-content {
  margin-top: 10px; font-size: calc(15px * var(--mp-fs, 1)); line-height: 1.6; color: var(--mp-text-primary);
  white-space: pre-wrap; word-break: break-word;
}
.cm-more { border: 0; background: none; padding: 0; font: inherit; font-weight: 600; color: var(--mp-blue); cursor: pointer; }
.cm-edited { font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); margin-top: 6px; }

.cm-counts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); }
.cm-counts span { display: inline-flex; align-items: center; gap: 5px; }
.cm-counts svg { width: 14px; height: 14px; }

.cm-actions {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px;
  margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--mp-divider);
}
.cm-action {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 6px 8px;
  border: 0; border-radius: 10px; background: transparent; color: var(--mp-text-muted);
  font: inherit; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 600; cursor: pointer; white-space: nowrap;
}
.cm-action svg { width: 18px; height: 18px; flex-shrink: 0; }
.cm-action:hover { background: var(--cm-soft); color: var(--mp-text-primary); }
.cm-action.is-active { color: var(--mp-blue); }
.cm-action.is-active svg { fill: var(--mp-blue-light); }
.cm-action--message { color: var(--mp-blue); }
.cm-action--message:hover { background: var(--mp-blue-light); color: var(--mp-blue-hover); }
.cm-action.is-pop svg { animation: cm-pop .3s ease-out; }
@keyframes cm-pop { 50% { transform: scale(1.35); } }

/* ── Hozzászólások ── */
.cm-comments { display: none; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--mp-divider); }
.cm-comments.is-open { display: block; }
.cm-comment { display: flex; gap: 10px; margin-bottom: 12px; }
.cm-comment-bubble { flex: 1; background: var(--cm-soft); border-radius: 12px; padding: 8px 12px; }
.cm-comment-name { font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cm-comment-text { font-size: calc(14px * var(--mp-fs, 1)); line-height: 1.5; margin-top: 2px; white-space: pre-wrap; word-break: break-word; }
.cm-comment-time { font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); margin: 4px 0 0 4px; }
.cm-comment-note { font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); text-align: center; padding: 6px 0 10px; }
.cm-comment-note.is-error { color: var(--mp-red); }
.cm-comment-form { display: flex; gap: 8px; align-items: center; }
.cm-comment-form[hidden] { display: none; }
.cm-comment-input {
  flex: 1; min-height: 44px; padding: 10px 16px; border: 1px solid var(--mp-card-border);
  border-radius: var(--mp-radius-pill); font: inherit; font-size: calc(14px * var(--mp-fs, 1)); background: var(--mp-white);
}
.cm-comment-input:focus { outline: none; border-color: var(--mp-blue); box-shadow: 0 0 0 3px var(--mp-blue-light); }
.cm-send { width: 44px; height: 44px; padding: 0; flex-shrink: 0; }

/* ── Állapotok ── */
.cm-empty { padding: 36px 20px; text-align: center; }
.cm-empty-icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; background: var(--mp-blue-light); color: var(--mp-blue);
}
.cm-empty-icon svg { width: 28px; height: 28px; }
.cm-empty h3 { font-size: calc(17px * var(--mp-fs, 1)); margin-bottom: 6px; }
.cm-empty p { font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); margin-bottom: 14px; }
.cm-status { text-align: center; font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); padding: 12px; }
.cm-status.is-error { color: var(--mp-red); }
.cm-spinner {
  width: 26px; height: 26px; margin: 8px auto; border-radius: 50%;
  border: 3px solid var(--mp-card-border); border-top-color: var(--mp-blue); animation: cm-spin .8s linear infinite;
}
@keyframes cm-spin { to { transform: rotate(360deg); } }
.cm-skel { padding: 16px; }
.cm-skel-line { height: 14px; border-radius: 6px; margin-bottom: 10px; background: linear-gradient(90deg, var(--mp-card-border) 25%, var(--cm-soft) 50%, var(--mp-card-border) 75%); background-size: 200% 100%; animation: cm-shimmer 1.4s infinite; }
.cm-skel-line.w40 { width: 40%; } .cm-skel-line.w70 { width: 70%; } .cm-skel-line.h60 { height: 60px; }
@keyframes cm-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── Jelentés párbeszéd ── */
.cm-dialog { border: 0; border-radius: var(--cm-radius-lg); padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(16,24,40,.25); }
.cm-dialog::backdrop { background: rgba(16,24,40,.45); }
.cm-dialog form { padding: 20px; }
.cm-dialog h2 { font-size: calc(18px * var(--mp-fs, 1)); margin-bottom: 4px; }
.cm-dialog-sub { font-size: calc(14px * var(--mp-fs, 1)); color: var(--mp-text-muted); margin-bottom: 14px; }
.cm-reason { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--mp-card-border); border-radius: 10px; margin-bottom: 8px; font-size: calc(15px * var(--mp-fs, 1)); cursor: pointer; }
.cm-reason:has(input:checked) { border-color: var(--mp-blue); background: var(--mp-blue-light); }
.cm-reason input { width: 18px; height: 18px; accent-color: var(--mp-blue); }
.cm-dialog textarea { min-height: 80px; margin-top: 4px; }
.cm-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

@media (prefers-reduced-motion: reduce) {
  .cm-post, .cm-action.is-pop svg, .cm-skel-line, .cm-spinner { animation: none; }
}

/* ── Mobil ── */
@media (max-width: 520px) {
  .cm-page { padding: 12px 8px 24px; gap: var(--mp-card-gap, 12px); }
  .cm-hero { padding: 16px 14px 14px; }
  .cm-hero h1 { font-size: calc(20px * var(--mp-fs, 1)); }
  .cm-stats { gap: 6px; }
  .cm-stat-num { font-size: calc(18px * var(--mp-fs, 1)); }
  .cm-post { padding: 14px 12px 10px; }
  .cm-avatar { width: 44px; height: 44px; }
  .cm-action { flex-direction: column; gap: 2px; min-height: 52px; padding: 6px 2px; font-size: calc(14px * var(--mp-fs, 1)); }   /* 2px oldalt: a „Hozzászólás” 360 px-en is elfér */
}

/* SHARE-FEED-01: a MelóPont saját linkjei a posztban kattinthatók (community.js linkify) */
.cm-link { color: var(--mp-text-link, #0A66C2); font-weight: 600; text-decoration: underline; word-break: break-all; }
.cm-link:hover { text-decoration: none; }

/* FEED-CARDS-01 (10.05): a hozzászólás-rész saját fejlécet kap, hogy ne olvadjon össze a bejegyzés szövegével
   (a bejegyzés szövege fölötte van; ez alatt a MÁSOK hozzászólásai). */
.cm-comments-head { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: calc(14px * var(--mp-fs, 1)); font-weight: 700; color: var(--mp-text-secondary); }
.cm-comments-head svg { width: 16px; height: 16px; flex: 0 0 auto; }
.cm-comments-n { font-weight: 600; color: var(--mp-text-muted); }

/* FONT-SCALE-02 (10.11, László: „ha mind a négy ikon alul ki van helyezve, összecsúsznak”): nagyobb betűnél a
   műveletgombok nem férnek négyen egy sorba — asztalon annyi oszlop, amennyi kifér, telefonon 2 × 2 rács. */
html[data-mp-fs] .cm-actions { grid-template-columns: repeat(auto-fit, minmax(min(100%, calc(118px * var(--mp-fs, 1))), 1fr)); }
html[data-mp-fs] .cm-action { min-width: 0; }
html[data-mp-fs] .cm-action span { min-width: 0; white-space: normal; text-align: center; }
@media (max-width: 520px) {
  html[data-mp-fs] .cm-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-mp-fs] .cm-action { flex-direction: column; gap: 2px; min-height: 52px; padding: 6px 4px; }
}
/* BOX-FIT-01 (10.27): 150 %-on 360 px alatt a „Hozzászólások” egy szóként sem fér el a fél sorban — egymás alatt */
@media (max-width: 380px) {
  html[data-mp-fs="1.5"] .cm-actions { grid-template-columns: minmax(0, 1fr); }
  html[data-mp-fs="1.5"] .cm-action { flex-direction: row; min-height: 44px; }
}
