/* ===== Forum · Council Hall ===== */

.fx-page {
  --fx-ink: #f3ebe0;
  --fx-muted: rgba(243, 235, 224, 0.62);
  --fx-gold: #e8c46a;
  --fx-panel: rgba(10, 8, 9, 0.72);
  --fx-line: rgba(232, 196, 106, 0.22);
  position: relative;
  min-height: calc(100vh - 2.5rem - 58px);
  overflow: auto;
  color: var(--fx-ink);
  font-family: "Russo One", "Segoe UI", sans-serif;
}

.fx-page__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
  filter: saturate(1.08) contrast(1.1) brightness(0.58);
  transform: scale(1.03);
  animation: fx-bg-drift 28s ease-in-out infinite alternate;
}

.fx-page__veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 42% at 50% 0%, rgba(196, 18, 47, 0.3), transparent 55%),
    radial-gradient(46% 38% at 88% 78%, rgba(255, 122, 24, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(6, 5, 6, 0.78) 0%, rgba(6, 5, 6, 0.88) 46%, rgba(6, 5, 6, 0.95) 100%);
}

.fx-page__glow {
  position: absolute;
  left: 50%;
  top: 7%;
  width: min(720px, 90vw);
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(232, 196, 106, 0.2), transparent 70%);
  pointer-events: none;
  filter: blur(8px);
  animation: fx-glow-pulse 4.5s ease-in-out infinite;
}

.fx-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 1.1rem;
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(1rem, 2.4vw, 1.85rem);
}

.fx-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: 22px;
  border: 1px solid var(--fx-line);
  background:
    linear-gradient(135deg, rgba(42, 14, 18, 0.8), rgba(8, 7, 8, 0.72)),
    var(--fx-panel);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.35);
  animation: fx-rise 0.55s ease both;
}

.fx-brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
}

.fx-brand__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(232, 196, 106, 0.45);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(196, 18, 47, 0.18);
}

.fx-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fx-gold);
}

.fx-title {
  margin: 0.15rem 0 0.2rem;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 400;
}

.fx-sub,
.fx-muted {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  color: var(--fx-muted);
}

.fx-back,
.fx-btn,
.fx-sub,
.fx-vote,
.fx-x,
.fx-name {
  font: inherit;
  cursor: pointer;
}

.fx-back {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.35);
  color: inherit;
  border-radius: 12px;
  padding: 0.65rem 0.95rem;
}

.fx-btn {
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1.05rem;
  color: #fff8ee;
  background: linear-gradient(120deg, #c4122f, #8a1024 60%, #b8862e 160%);
  box-shadow: 0 10px 24px rgba(196, 18, 47, 0.28);
}

.fx-btn:hover:not(:disabled) {
  filter: brightness(1.06);
}

.fx-btn--ghost {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fx-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.fx-alert,
.fx-notice {
  margin: 0;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.fx-alert {
  background: rgba(196, 18, 47, 0.16);
  border: 1px solid rgba(196, 18, 47, 0.38);
}

.fx-notice {
  background: rgba(240, 180, 41, 0.12);
  border: 1px solid rgba(240, 180, 41, 0.28);
}

.fx-gate {
  padding: 2rem 1.2rem;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(232, 196, 106, 0.22);
}

.fx-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
}

.fx-subs {
  display: flex;
  gap: 0.4rem;
}

.fx-sub {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  color: inherit;
  border-radius: 12px;
  padding: 0.45rem 0.85rem;
  font-size: 0.88rem;
}

.fx-sub.is-on {
  border-color: rgba(232, 196, 106, 0.5);
  background: linear-gradient(120deg, rgba(196, 18, 47, 0.35), rgba(184, 134, 46, 0.18));
}

.fx-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fx-filters select,
.fx-compose input,
.fx-compose select,
.fx-compose textarea,
.fx-mod select {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.38);
  color: inherit;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.fx-compose {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 196, 106, 0.22);
  background: rgba(0, 0, 0, 0.32);
}

.fx-compose__row {
  display: grid;
  grid-template-columns: 1fr 8.5rem;
  gap: 0.5rem;
}

.fx-compose textarea {
  resize: vertical;
  min-height: 5.5rem;
}

.fx-list {
  display: grid;
  gap: 0.55rem;
}

.fx-card {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.7rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.32));
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.fx-card:hover {
  transform: translateY(-1px);
  border-color: rgba(232, 196, 106, 0.32);
}

.fx-card.is-pinned {
  border-color: rgba(232, 196, 106, 0.4);
}

.fx-card__main {
  text-align: left;
  background: none;
  border: 0;
  color: inherit;
  padding: 0;
}

.fx-card__main h3,
.fx-thread h2 {
  margin: 0.2rem 0 0.35rem;
  font-weight: 400;
}

.fx-card__main p,
.fx-thread__body,
.fx-comment p {
  margin: 0;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(247, 241, 230, 0.82);
  white-space: pre-wrap;
}

.fx-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.75rem;
}

.fx-cat,
.fx-pin,
.fx-st {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fx-cat {
  background: rgba(255, 255, 255, 0.08);
}

.fx-pin {
  color: #1a1206;
  background: linear-gradient(145deg, #f0d78a, #d4a84a);
}

.fx-st--open {
  color: #dcecff;
  background: rgba(80, 140, 220, 0.25);
}
.fx-st--planned {
  color: #1a1206;
  background: #e8c46a;
}
.fx-st--done {
  color: #082016;
  background: #5dde9f;
}
.fx-st--rejected {
  color: #ffd4d4;
  background: rgba(196, 18, 47, 0.4);
}

.fx-vote {
  display: grid;
  place-items: center;
  gap: 0.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--fx-muted);
  padding: 0.35rem 0.2rem;
  font-size: 0.78rem;
}

.fx-vote.is-on {
  color: #1a1206;
  border-color: transparent;
  background: linear-gradient(145deg, #f0d78a, #d4a84a);
}

.fx-empty {
  text-align: center;
  color: var(--fx-muted);
  padding: 2rem 1rem;
  font-family: "Segoe UI", system-ui, sans-serif;
}

.fx-thread {
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(232, 196, 106, 0.22);
  background: rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 0.8rem;
}

.fx-thread__head {
  display: grid;
  grid-template-columns: 3.2rem 1fr;
  gap: 0.8rem;
}

.fx-mod {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.fx-comments {
  display: grid;
  gap: 0.55rem;
}

.fx-comments h3 {
  margin: 0.4rem 0 0;
  font-weight: 400;
}

.fx-comment {
  position: relative;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.28);
}

.fx-name {
  background: none;
  border: 0;
  color: var(--fx-gold);
  padding: 0;
}

.fx-comment time {
  display: block;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
  color: var(--fx-muted);
  margin-bottom: 0.3rem;
}

.fx-x {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  background: none;
  border: 0;
  color: var(--fx-muted);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 0.72rem;
}

@keyframes fx-bg-drift {
  from {
    transform: scale(1.03) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(0, -1.2%, 0);
  }
}

@keyframes fx-glow-pulse {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 1;
  }
}

@keyframes fx-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .fx-compose__row {
    grid-template-columns: 1fr;
  }
  .fx-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-page__bg,
  .fx-page__glow,
  .fx-hero {
    animation: none;
  }
}
