Files
sorsfonalak/services/frontend/src/app/forum/forum.css
T

546 lines
34 KiB
CSS
Raw Normal View History

/* The forum: phones first (most members write from a phone), big touch
targets and text for the 50+ readers. Light by default, dark on request
(data-theme on .forum, from a cookie): both redefine the site's colour
tokens for the forum's part of the page, so the shared .btn, .inp, .hint
and links follow. */
/* --- themes --- */
.forum {
/* Colour emoji wherever the system has them (no monochrome symbol fonts). */
--font-body: var(--font-inter), Inter, system-ui, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
font-family: var(--font-body);
--f-hover: rgba(255, 255, 255, 0.04);
--f-tint: rgba(217, 180, 106, 0.1);
--f-tint-strong: rgba(217, 180, 106, 0.14);
--f-nav-bg: rgba(13, 18, 32, 0.97);
--f-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
--f-border-hover: #5a6790;
--f-online: #9fd8b0;
--f-blue-tint: rgba(127, 176, 224, 0.12);
--f-orange-tint: rgba(240, 163, 94, 0.12);
--f-red-tint: rgba(242, 160, 160, 0.08);
--f-green-tint: rgba(159, 216, 176, 0.12);
--r-with_you: #e58aa6;
--r-thanks: #d9b46a;
--r-me_too: #7fb0e0;
--r-insight: #c3a6f0;
color: var(--ink);
}
.forum[data-theme="light"] {
--bg: #f6f3ed;
--panel: #ffffff;
--panel-2: #faf8f4;
--line: #e6dfd2;
--line-2: #d3c9b6;
--ink: #1b2236;
--ink-2: #3a4259;
--muted: #5c6376;
--gold: #8a6a24;
--gold-hover: #6e5419;
--gold-ink: #ffffff;
--danger: #b03a3a;
--ok: #2d7a4c;
--harmonic: #2c66a0;
--square: #9c520e;
--f-hover: rgba(27, 34, 54, 0.04);
--f-tint: rgba(167, 128, 47, 0.09);
--f-tint-strong: rgba(167, 128, 47, 0.14);
--f-nav-bg: rgba(255, 255, 255, 0.97);
--f-shadow: 0 12px 32px rgba(27, 34, 54, 0.14);
--f-border-hover: #a99d86;
--f-online: #2fa865;
--f-blue-tint: rgba(44, 102, 160, 0.09);
--f-orange-tint: rgba(156, 82, 14, 0.09);
--f-red-tint: rgba(176, 58, 58, 0.07);
--f-green-tint: rgba(45, 122, 76, 0.1);
--r-with_you: #b4466a;
--r-thanks: #8a6a24;
--r-me_too: #2c66a0;
--r-insight: #6b4fa0;
color-scheme: light;
}
/* The light forum takes the whole page between the (dark) header and footer
(the body rule; the background here is for browsers without :has). */
.forum[data-theme="light"] { background: var(--bg); min-height: 70vh; }
body:has(.forum[data-theme="light"]) { background: #f6f3ed; }
body:has(.forum[data-theme="light"]) .night-sky { display: none; }
body:has(.forum[data-theme="light"]) .site-footer { background: #0d1220; }
.forum[data-theme="light"] .inp:focus { background-color: var(--panel); box-shadow: 0 0 0 3px rgba(167, 128, 47, 0.22); }
.forum[data-theme="light"] .inp::placeholder { color: #8b8f9c; }
.forum[data-theme="light"] .btn:hover { border-color: var(--f-border-hover); background: var(--f-hover); }
.forum[data-theme="light"] .moon-phase-icon .moon-dark { fill: #ebe5d8; stroke: #b99550; }
.forum[data-theme="light"] .moon-phase-icon .moon-lit { fill: #d9b46a; }
/* --- frame --- */
.forum-inner { max-width: 1180px; margin: 0 auto; padding: 8px 16px 104px; }
.forum-main { display: flex; flex-direction: column; }
.forum h1, .forum h2 { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.forum-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin-bottom: 8px; }
.forum-mark { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); text-decoration: none; }
.forum-mark:hover { color: var(--gold); }
.forum-theme {
display: inline-flex; align-items: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 10px; justify-content: center;
border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); color: var(--ink-2);
font: 500 14px var(--font-body); cursor: pointer;
}
.forum-theme:hover { color: var(--gold); border-color: var(--f-border-hover); }
.forum-theme svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.forum-theme-label { display: none; }
/* The forum's menu: a bar at the bottom on phones, tabs in the forum bar on wider screens. */
.forum-nav {
position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
background: var(--f-nav-bg); border-top: 1px solid var(--line);
padding-bottom: env(safe-area-inset-bottom);
box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}
.fn-item {
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
min-height: 62px; color: var(--ink-2); text-decoration: none; font-size: 12px;
}
.fn-item[aria-current="page"] { color: var(--gold); font-weight: 600; }
.fn-item:hover { color: var(--gold); }
.fn-icon-wrap { position: relative; display: inline-flex; }
.fn-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fn-badge {
position: absolute; top: -6px; right: -11px; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box;
border-radius: 999px; background: var(--gold); color: var(--gold-ink); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
}
@media (min-width: 760px) {
.forum-inner { padding: 20px 24px 64px; }
.forum-bar {
gap: 16px; margin-bottom: 24px; padding: 6px 6px 6px 18px;
background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
}
.forum-nav {
position: static; flex: 1; display: flex; gap: 4px; padding: 0;
background: none; border: 0; box-shadow: none;
}
.fn-item { flex-direction: row; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 15px; }
.fn-item[aria-current="page"] { background: var(--f-tint); }
.fn-icon { width: 20px; height: 20px; }
.forum-theme { padding: 0 14px; }
.forum-theme-label { display: inline; }
}
/* --- avatars and the author line --- */
.av { position: relative; display: inline-flex; flex: none; --av-bg: #1c2540; --av-ink: #d9b46a; }
.av svg { display: block; }
.av-lila { --av-bg: #2a2342; }
.av-tenger { --av-bg: #1d3038; }
.av-borostyan { --av-bg: #33291c; }
.av-rozsa { --av-bg: #3a2230; }
.av-erdo { --av-bg: #1f3326; }
/* Light theme: a pale tint and a darker glyph (a night circle read as a black blot). */
.forum[data-theme="light"] .av-ejkek { --av-bg: #e4e8f3; --av-ink: #2f3d6b; }
.forum[data-theme="light"] .av-lila { --av-bg: #ece6f5; --av-ink: #5b4691; }
.forum[data-theme="light"] .av-tenger { --av-bg: #e0eff0; --av-ink: #2a6670; }
.forum[data-theme="light"] .av-borostyan { --av-bg: #f5ead7; --av-ink: #8a6a24; }
.forum[data-theme="light"] .av-rozsa { --av-bg: #f6e3ea; --av-ink: #9b3f5f; }
.forum[data-theme="light"] .av-erdo { --av-bg: #e2efe4; --av-ink: #3d6b47; }
.av-bg { fill: var(--av-bg); }
.av-glyph { fill: none; stroke: var(--av-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.av-glyph .av-fill { fill: var(--av-ink); stroke: none; }
.av-online {
position: absolute; right: -1px; bottom: -1px; width: 28%; height: 28%; min-width: 9px; min-height: 9px;
border-radius: 50%; background: var(--f-online); border: 2px solid var(--panel); box-sizing: border-box;
}
.fa-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.fa-avatar { display: inline-flex; }
.fa-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fa-names { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.fa-name { font-size: 16px; font-weight: 600; color: var(--ink); text-decoration: none; }
.fa-name:hover { color: var(--gold); }
.fa-rank { font-size: 12px; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 6px; }
.fa-badge { font-size: 12px; border-radius: 6px; padding: 0 6px; }
.fa-badge-mod { color: var(--ok); background: var(--f-green-tint); }
.fa-badge-starter { color: var(--gold); border: 1px solid var(--line-2); }
.fa-badge-new { color: var(--gold-ink); background: var(--gold); font-weight: 600; }
.fa-sub { font-size: 13px; color: var(--muted); }
/* --- cards, banners, sections --- */
.fh { display: flex; flex-direction: column; gap: 22px; }
.fh-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.forum[data-theme="light"] .fh-card { box-shadow: 0 1px 2px rgba(27, 34, 54, 0.04); }
.fh-flush { padding: 0; overflow: hidden; }
.fh-empty { color: var(--muted); }
.fh-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.fh-intro { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fh-intro h1 { font-size: 36px; }
.fh-banner {
display: flex; align-items: center; gap: 12px; justify-content: space-between;
min-height: 52px; padding: 12px 14px; border-radius: 12px;
background: var(--f-tint); border: 1px solid var(--line-2); color: var(--ink); text-decoration: none;
}
.fh-banner strong { color: var(--gold); font-weight: 600; }
.fh-banner:hover { color: var(--ink); background: var(--f-tint-strong); }
.fh-banner-warn { background: var(--f-red-tint); border-color: var(--danger); }
.fh-section { display: flex; flex-direction: column; gap: 12px; }
.fh-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fh-section-head h2 { font-size: 24px; }
.fh-sky-body { display: flex; gap: 16px; align-items: flex-start; }
.fh-moon .moon-phase-icon { width: 56px; height: 56px; }
.fh-sky-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fh-sky-text h2 { font-size: 24px; line-height: 1.15; }
.fh-sky-text p { color: var(--ink-2); font-size: 16px; }
.fh-sky-link, .fh-side-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-size: 15px; }
.fh-waiting-grid { display: grid; gap: 12px; }
@media (min-width: 760px) { .fh-waiting-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); } }
.fh-me { display: flex; flex-direction: column; gap: 14px; }
.fh-me-head { display: flex; align-items: center; gap: 12px; }
.fh-me-names { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.fh-me-actions { display: flex; gap: 8px; flex-wrap: wrap; }
/* Front page: one column on phones in reading order (the two columns'
blocks interleave), main column and sidebar from 1024 px. */
.fh-home .fh-col { display: contents; }
.o-1 { order: 1; } .o-2 { order: 2; } .o-3 { order: 3; } .o-4 { order: 4; }
.o-5 { order: 5; } .o-6 { order: 6; } .o-7 { order: 7; } .o-8 { order: 8; }
@media (min-width: 1024px) {
.fh-home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.fh-home .fh-col { display: flex; flex-direction: column; gap: 22px; }
.fh-home .fh-col-side { position: sticky; top: 88px; }
}
/* --- topics --- */
.fh-topics { list-style: none; margin: 0; }
.fh-topics li + li { border-top: 1px solid var(--line); }
.fh-topic { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 76px; color: var(--ink); text-decoration: none; }
.fh-topic:hover { color: var(--ink); background: var(--f-hover); }
.fh-topic-icon {
flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--f-tint);
display: inline-flex; align-items: center; justify-content: center;
}
.topic-icon { width: 24px; height: 24px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fh-topic-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.fh-topic-name { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }
.fh-lock { width: 14px; height: 14px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.fh-topic-desc { font-size: 14px; color: var(--muted); }
.fh-topic-last { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.fh-topic-count { display: none; flex: none; font-size: 14px; color: var(--muted); text-align: right; min-width: 64px; }
.fh-topic-count strong { color: var(--ink); font-weight: 600; }
@media (min-width: 640px) { .fh-topic-count { display: block; } }
/* --- thread lists: a meta line on phones, columns on wider screens --- */
.ft-list { list-style: none; margin: 0; padding: 0; }
.ft-list li + li { border-top: 1px solid var(--line); }
.ft-row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; color: var(--ink); text-decoration: none; }
.ft-row:hover { color: var(--ink); background: var(--f-hover); }
.ft-main { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.ft-title { font-size: 17px; font-weight: 600; line-height: 1.35; }
.ft-row:hover .ft-title { color: var(--gold); }
.ft-excerpt { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ft-meta { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.ft-col { display: none; }
.ft-new {
flex: none; font-size: 13px; font-weight: 600; color: var(--gold-ink); background: var(--gold);
border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.ft-read { flex: none; font-size: 13px; color: var(--muted); }
@media (min-width: 760px) {
.ft-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 100px 72px; gap: 16px; padding: 14px 20px; }
.ft-m-narrow { display: none; }
.ft-col { display: flex; flex-direction: column; align-items: flex-end; font-size: 14px; color: var(--muted); }
.ft-col strong { color: var(--ink); font-weight: 600; font-size: 16px; }
.ft-col-replies { flex-direction: row; gap: 4px; align-items: baseline; justify-content: flex-end; flex-wrap: wrap; }
.ft-col-replies .hint { flex-basis: 100%; text-align: right; }
.ft-new, .ft-read { justify-self: end; }
}
.ft-pin {
display: inline-block; margin-right: 8px; vertical-align: 2px; font-size: 12px; font-weight: 500;
color: var(--ink-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 6px;
}
.ft-intent { align-self: flex-start; font-size: 13px; font-weight: 500; border-radius: 999px; padding: 3px 10px; }
.ft-intent-listen { color: var(--harmonic); background: var(--f-blue-tint); }
.ft-intent-advice { color: var(--square); background: var(--f-orange-tint); }
.ft-waiting {
display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px;
background: var(--panel); border: 1px solid var(--line);
}
.ft-waiting-title { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); text-decoration: none; }
.ft-waiting-title:hover { color: var(--gold); }
.ft-answer { align-self: flex-start; min-height: 44px; border-color: var(--gold); color: var(--gold); margin-top: auto; }
/* --- topic page and the other headings --- */
.forum-crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.forum-crumbs a { color: var(--ink-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.forum-crumbs a:hover { color: var(--gold); }
.ftopic-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ftopic-head h1, .fpage-title { font-size: 34px; line-height: 1.1; }
.ftopic-head > div { display: flex; flex-direction: column; gap: 6px; max-width: 620px; }
.forum-pager { display: flex; justify-content: space-between; align-items: center; min-height: 44px; }
/* --- thread view --- */
.ftv { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 980px; margin: 0 auto; }
.ftv-toolbar { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.ftv-toolbar:empty { display: none; }
.ftv-mod { position: relative; }
.ftv-mod summary { list-style: none; cursor: pointer; }
.ftv-mod summary::-webkit-details-marker { display: none; }
.ftv-mod-menu {
position: absolute; right: 0; top: calc(100% + 6px); z-index: 10; min-width: 200px; padding: 6px;
display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px;
box-shadow: var(--f-shadow);
}
.ftv-mod-menu button {
min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--ink);
font: inherit; font-size: 15px; text-align: left; cursor: pointer;
}
.ftv-mod-menu button:hover { background: var(--f-hover); color: var(--gold); }
.ftv-mod-menu button.danger { color: var(--danger); }
.ftv-intent {
display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px;
background: var(--f-blue-tint); font-size: 14px; line-height: 1.45; color: var(--ink-2);
}
.ftv-intent strong { color: var(--harmonic); font-weight: 600; }
.ftv-intent-advice { background: var(--f-orange-tint); }
.ftv-intent-advice strong { color: var(--square); }
.ftv-title { font-size: 30px; line-height: 1.12; }
.ftv-intent-line { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: -4px; font-size: 14px; color: var(--muted); }
.ftv-intent-line .ft-intent { align-self: center; padding: 1px 10px; font-weight: 600; }
.ftv-count { display: flex; justify-content: space-between; align-items: baseline; padding-top: 6px; }
.ftv .ftv-count h2 { font-family: var(--font-body); font-size: 15px; color: var(--ink-2); }
.ftv-branch { display: flex; flex-direction: column; }
.ftv-children { margin-left: 17px; padding-left: 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; }
.ftv-marker { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; color: var(--gold); font-size: 13px; font-weight: 600; }
.ftv-marker::before, .ftv-marker::after { content: ""; flex: 1; height: 1px; background: var(--gold); opacity: 0.5; }
.ftv-incoming {
position: sticky; bottom: 84px; align-self: center; z-index: 5;
display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
background: var(--gold); color: var(--gold-ink); font: 600 15px var(--font-body); cursor: pointer;
box-shadow: var(--f-shadow);
}
.ftv-compose { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.ftv-hint { font-size: 14px; color: var(--harmonic); }
.ftv-replyto { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); }
.ftv-gate { padding: 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
/* --- posts: a one-line head (avatar, name, rank, signs, time), the text, a
small action row; on wide screens the text lines up under the name --- */
.fp {
display: grid; grid-template-columns: auto minmax(0, 1fr);
grid-template-areas: "av head" "body body" "actions actions" "report report";
column-gap: 10px; row-gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px;
}
.fp-av { grid-area: av; display: inline-flex; align-self: center; }
.fp-av a { display: inline-flex; }
.fp-head { grid-area: head; display: flex; align-items: center; gap: 8px; min-width: 0; }
.fp-names { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; flex: 1; min-width: 0; }
.fp-names .fa-name { font-size: 15px; }
.fp-signs { font-size: 13px; color: var(--muted); letter-spacing: 0.5px; }
.fp-time { flex: none; font-size: 13px; color: var(--muted); }
.fp-content { grid-area: body; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fp-actions { grid-area: actions; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fp-report { grid-area: report; }
.fp-opening { padding-top: 10px; padding-bottom: 14px; }
.fp-opening .fp-names .fa-name { font-size: 16px; }
.ftv-children .fp:last-child { border-bottom: 0; }
.fp-nested { padding: 8px 0; row-gap: 4px; }
.fp-nested .fp-body { font-size: 15px; }
.fp-body { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; color: var(--ink); }
.fp-body p + p { margin-top: 8px; }
.fp.fp-removed { display: flex; flex-direction: column; }
.fp-removed {
gap: 4px; margin: 10px 0; padding: 12px 14px; border: 1px dashed var(--line-2);
border-radius: 12px; color: var(--ink-2); font-size: 15px;
}
.fp-mod-note { font-size: 13px; color: var(--danger); }
.fp-collapsed {
align-self: flex-start; min-height: 40px; padding: 0; border: 0; background: none; color: var(--muted);
font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer;
}
.fp-helped { display: inline-flex; align-items: center; gap: 4px; margin-right: 2px; font-size: 12px; font-weight: 500; color: var(--ok); }
.fp-helped svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.fp-spacer { flex: 1; }
.fp-reply {
display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 8px; border: 0; border-radius: 8px;
background: none; color: var(--ink-2); font: 500 13px var(--font-body); cursor: pointer;
}
.fp-reply:hover { color: var(--gold); background: var(--f-hover); }
.fp-reply svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.fp-more {
display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 0; border-radius: 8px;
background: none; color: var(--muted); cursor: pointer;
}
.fp-more:hover, .fp-more[aria-expanded="true"] { color: var(--ink); background: var(--f-hover); }
.fp-more svg { width: 18px; height: 18px; fill: currentColor; }
@media (min-width: 760px) {
.fp { grid-template-columns: 44px minmax(0, 1fr); grid-template-areas: "av head" ". body" ". actions" ". report"; column-gap: 14px; }
.fp-av { justify-content: center; }
.fp-nested { grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; }
.ftv-incoming { bottom: 20px; }
}
/* --- reactions: the forum's own marks, an icon and a count --- */
.ri { fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ri-with_you { stroke: var(--r-with_you); }
.ri-thanks { stroke: var(--r-thanks); }
.ri-me_too { stroke: var(--r-me_too); }
.ri-insight { stroke: var(--r-insight); }
.ri-filled.ri-with_you { fill: color-mix(in srgb, var(--r-with_you) 28%, transparent); }
.ri-filled.ri-thanks { fill: color-mix(in srgb, var(--r-thanks) 28%, transparent); }
.ri-filled.ri-me_too { fill: color-mix(in srgb, var(--r-me_too) 24%, transparent); }
.ri-filled.ri-insight { fill: color-mix(in srgb, var(--r-insight) 28%, transparent); }
.ri-filled .ri-line { fill: none; }
.fr-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fr-chip {
display: inline-flex; align-items: center; gap: 5px; min-height: 32px; min-width: 32px; padding: 0 10px; box-sizing: border-box;
border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--ink);
font: 500 13px var(--font-body); cursor: pointer; justify-content: center;
}
.fp-nested .fr-chip { min-height: 30px; }
.fr-chip:disabled { cursor: default; }
.fr-chip:hover:not(:disabled) { border-color: var(--line-2); }
.fr-chip[aria-pressed="true"]:has(.ri-with_you) { border-color: var(--r-with_you); background: color-mix(in srgb, var(--r-with_you) 9%, var(--panel)); }
.fr-chip[aria-pressed="true"]:has(.ri-thanks) { border-color: var(--r-thanks); background: color-mix(in srgb, var(--r-thanks) 9%, var(--panel)); }
.fr-chip[aria-pressed="true"]:has(.ri-me_too) { border-color: var(--r-me_too); background: color-mix(in srgb, var(--r-me_too) 9%, var(--panel)); }
.fr-chip[aria-pressed="true"]:has(.ri-insight) { border-color: var(--r-insight); background: color-mix(in srgb, var(--r-insight) 9%, var(--panel)); }
.fr-add { padding: 0; border-style: dashed; border-color: var(--line-2); background: none; color: var(--muted); }
.fr-add svg, .fr-down svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fr-down { padding: 0; border-color: transparent; background: none; color: var(--muted); }
.fr-down svg { width: 18px; height: 18px; }
.fr-down[aria-pressed="true"] { background: var(--f-hover); color: var(--ink); }
/* --- small menus (the + of reactions, the ⋯ of a post) --- */
.fpop-wrap { position: relative; display: inline-flex; }
.fpop {
position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; min-width: 210px; padding: 6px;
display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 12px;
box-shadow: var(--f-shadow);
}
.fpop-right { left: auto; right: 0; }
.fpop-item {
display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border: 0; border-radius: 8px;
background: none; color: var(--ink); font: 400 15px var(--font-body); text-align: left; cursor: pointer; white-space: nowrap;
}
.fpop-item:hover, .fpop-item[aria-pressed="true"] { background: var(--f-hover); }
.fpop-danger { color: var(--danger); }
/* --- composer --- */
.fc { display: flex; flex-direction: column; gap: 8px; }
.fc-text {
width: 100%; min-height: 96px; box-sizing: border-box; padding: 12px 14px; border-radius: 12px;
border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font: 400 16px/1.45 var(--font-body);
resize: vertical; caret-color: var(--gold);
}
.fc-text::placeholder { color: var(--muted); }
.fc-text:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--f-tint-strong); background: var(--panel); }
.fc-actions { display: flex; align-items: center; gap: 8px; }
.fc-spacer { flex: 1; }
.fc-icon-btn {
width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center;
border: 0; border-radius: 10px; background: none; color: var(--ink-2); cursor: pointer;
}
.fc-icon-btn:hover, .fc-icon-btn[aria-expanded="true"] { color: var(--gold); background: var(--f-tint); }
.fc-icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
/* --- new thread and profile forms --- */
.fnew, .fprof { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 760px; }
.fnew-set { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fnew-set legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.fnew-topics, .fnew-intents { display: grid; gap: 8px; }
@media (min-width: 640px) { .fnew-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fnew-topic, .fnew-intent, .fprof-check {
display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line-2);
border-radius: 12px; cursor: pointer; background: var(--panel);
}
.fnew-topic:has(input:checked), .fnew-intent:has(input:checked) { border-color: var(--gold); background: var(--f-tint); }
.fnew-topic > span, .fnew-intent > span, .fprof-check > span { display: flex; flex-direction: column; gap: 2px; }
.fnew-topic input, .fnew-intent input, .fprof-check input { margin-top: 4px; accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.fprof-avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)); gap: 6px; }
.fprof-avatar {
display: inline-flex; align-items: center; justify-content: center; padding: 3px; border-radius: 50%;
border: 2px solid transparent; cursor: pointer; justify-self: center;
}
.fprof-avatar:has(input:checked) { border-color: var(--gold); }
.fprof-avatar:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.fprof-rank { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
/* --- member page (two columns on wide screens) and moderation --- */
.fmember { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.fmember-head { display: flex; align-items: center; gap: 16px; }
.fmember-names { display: flex; flex-direction: column; gap: 4px; }
.fmember-names h1 { font-size: 30px; line-height: 1.1; }
.fmember-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.fmember-signs { color: var(--ink-2); }
@media (min-width: 900px) {
.fh-member { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; }
.fh-member .fmember { position: sticky; top: 88px; }
}
.fban { align-self: stretch; }
.fban summary { list-style: none; cursor: pointer; display: inline-flex; }
.fban summary::-webkit-details-marker { display: none; }
.fban-body { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; }
.fmodlog { list-style: none; margin: 0; }
.fmodlog li { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; }
.fmodlog li + li { border-top: 1px solid var(--line); }
/* --- reports --- */
.frep { flex-basis: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); }
.frep-kind { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; cursor: pointer; }
.frep-kind input { accent-color: var(--gold); width: 18px; height: 18px; flex: none; }
.frep-crisis { padding: 10px 12px; border-radius: 10px; background: var(--f-blue-tint); color: var(--ink); font-size: 15px; line-height: 1.45; }
.frep-crisis strong { color: var(--harmonic); }
.forum-modchip {
display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
background: var(--f-red-tint); border: 1px solid var(--danger); color: var(--danger); font-size: 14px; font-weight: 600;
text-decoration: none; white-space: nowrap;
}
.forum-modchip:hover { color: var(--danger); background: var(--f-tint); }
@media (max-width: 759px) { .forum-bar { flex-wrap: wrap; } .forum-modchip { order: 3; } }
/* --- moderation page --- */
.fmod-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); align-self: flex-start; }
.fmod-tabs a { min-height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.fmod-tabs a[aria-current="page"] { background: var(--f-tint-strong); color: var(--gold); }
.fmod-report { display: flex; flex-direction: column; gap: 10px; }
.fmod-crisis { border-color: var(--harmonic); box-shadow: 0 0 0 1px var(--harmonic); }
.fmod-report-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.fmod-note { color: var(--ink-2); font-style: italic; }
.fmod-target { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.fmod-target .fp-body { font-size: 15px; }
.fmod-chat { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.fmod-chat-reported { padding: 4px 8px; border-radius: 6px; background: var(--f-red-tint); }
/* --- private messages --- */
.fmsg-h { font-family: var(--font-body) !important; font-size: 16px; font-weight: 600; color: var(--ink-2); }
.fmsg-request { display: flex; flex-direction: column; gap: 12px; }
.fmsg-intro { font-style: italic; color: var(--ink-2); }
.fmsg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-row.fmsg-row { display: flex; }
.fmsg-when { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; color: var(--muted); flex: none; }
.freq { display: flex; flex-direction: column; gap: 8px; align-self: stretch; }
.freq label { font-size: 14px; font-weight: 500; }
.fchat { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 820px; margin: 0 auto; }
.fchat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.fchat-who { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; flex: 1; min-width: 0; }
.fchat-intro { font-size: 15px; color: var(--ink-2); font-style: italic; }
.fchat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.fchat-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 86%; }
.fchat-mine { align-self: flex-end; align-items: flex-end; }
.fchat-bubble { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--panel); border: 1px solid var(--line); }
.fchat-mine .fchat-bubble { border-radius: 16px 16px 4px 16px; background: var(--f-tint-strong); border-color: transparent; }
.fchat-bubble .fp-body { font-size: 16px; line-height: 1.5; }
.fchat-meta { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.fchat-report { min-height: 32px; padding: 0 6px; border: 0; background: none; color: var(--muted); font: 400 12px var(--font-body); cursor: pointer; }
.fchat-report:hover { color: var(--danger); }
.fchat-msg .frep { width: min(420px, 86vw); }
.fchat-compose { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .forum-nav .fn-item { padding: 0 12px; } }
/* --- e-mail settings --- */
.fprof-mail { display: grid; gap: 6px; }
.fprof-mail label { font-size: 14px; font-weight: 500; margin-top: 8px; }
.fprof-mail label:first-child { margin-top: 0; }
/* --- "… gépel" --- */
.ftyping { min-height: 22px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin: 0; }
.ftyping-dots { display: inline-flex; gap: 3px; }
.ftyping-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); animation: ftyping 1.2s infinite ease-in-out; }
.ftyping-dots span:nth-child(2) { animation-delay: 0.15s; }
.ftyping-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ftyping { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ftyping-dots span { animation: none; opacity: 0.6; } }
.fp-link { min-height: 32px; padding: 0 8px; border: 0; background: none; color: var(--gold); font: 500 15px var(--font-body); cursor: pointer; }
.fp-link:hover { color: var(--gold-hover); }