/* AmnesiaRP — Forum (dark / glass / gaming) */
:root {
  --f-bg: #0B0F1A;
  --f-glass: rgba(255, 255, 255, 0.06);
  --f-glass2: rgba(255, 255, 255, 0.09);
  --f-border: rgba(255, 255, 255, 0.1);
  --f-blue: #5865F2;
  --f-violet: #8B5CF6;
  --f-cyan: #22D3EE;
  --f-white: #fff;
  --f-muted: #a8b0c4;
  --f-green: #4ade80;
  --f-red: #f87171;
  --f-yellow: #facc15;
}
* { box-sizing: border-box; }
body.forum-body {
  margin: 0;
  min-height: 100vh;
  background: var(--f-bg);
  color: var(--f-white);
  font-family: "Inter", system-ui, sans-serif;
  overflow-x: hidden;
}
.forum-body .bg-map {
  position: fixed;
  inset: 0;
  background: url("https://i.imgur.com/AcWSCrR.png") center top / cover;
  filter: brightness(0.15) blur(2px);
  transform: scale(1.05);
  z-index: 0;
}
.forum-body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 15% -5%, rgba(88, 101, 242, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse 55% 40% at 90% 100%, rgba(139, 92, 246, 0.15) 0%, transparent 55%),
    linear-gradient(to bottom, rgba(11, 15, 26, 0.4), rgba(11, 15, 26, 0.95));
  pointer-events: none;
  z-index: 1;
}
.f-wrap {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 88px 20px 48px;
}
.f-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(11, 15, 26, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--f-border);
}
.f-nav a {
  color: var(--f-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: 0.2s;
}
.f-nav a:hover,
.f-nav a.active {
  color: var(--f-white);
  background: var(--f-glass);
}
.f-logo {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--f-white);
}
.f-logo span {
  color: var(--f-blue);
}
.f-nav-links {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.f-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}
.f-search {
  flex: 1;
  min-width: 200px;
  display: flex;
  gap: 8px;
}
.f-search input {
  flex: 1;
  background: var(--f-glass);
  border: 1px solid var(--f-border);
  border-radius: 12px;
  padding: 12px 16px;
  color: var(--f-white);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.f-search input:focus {
  border-color: rgba(88, 101, 242, 0.5);
}
.f-btn {
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: 0.2s;
  font-family: inherit;
}
.f-btn-primary {
  background: var(--f-blue);
  color: #fff;
}
.f-btn-primary:hover {
  background: #4752c4;
  box-shadow: 0 4px 24px rgba(88, 101, 242, 0.35);
}
.f-btn-ghost {
  background: var(--f-glass);
  color: var(--f-white);
  border: 1px solid var(--f-border);
}
.f-btn-ghost:hover {
  background: var(--f-glass2);
}
.f-btn-sm {
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 8px;
}
.f-notif-wrap {
  position: relative;
}
.f-notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--f-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.f-card {
  background: var(--f-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--f-border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 16px;
  animation: fFade 0.45s ease both;
}
@keyframes fFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.f-cat-title {
  font-family: "Poppins", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--f-cyan);
}
.f-cat-desc {
  font-size: 13px;
  color: var(--f-muted);
  margin-bottom: 16px;
}
.f-sub {
  display: grid;
  gap: 10px;
}
.f-sub-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--f-border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
.f-sub-row:hover {
  border-color: rgba(88, 101, 242, 0.35);
  background: rgba(88, 101, 242, 0.06);
}
.f-sub-name {
  font-weight: 600;
  font-size: 15px;
}
.f-sub-desc {
  font-size: 12px;
  color: var(--f-muted);
  margin-top: 4px;
}
.f-stats {
  text-align: right;
  font-size: 11px;
  color: var(--f-muted);
  line-height: 1.5;
}
.f-stats strong {
  color: var(--f-white);
  font-size: 13px;
}
.f-topic-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--f-border);
  background: rgba(0, 0, 0, 0.18);
  margin-bottom: 10px;
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
.f-topic-row:hover {
  border-color: rgba(88, 101, 242, 0.4);
}
.f-topic-row.pinned {
  border-color: rgba(250, 204, 21, 0.35);
  background: rgba(250, 204, 21, 0.05);
}
.f-pin {
  font-size: 11px;
  color: var(--f-yellow);
  margin-right: 6px;
}
.f-post {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  border: 1px solid var(--f-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  background: rgba(0, 0, 0, 0.22);
}
.f-post-side {
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border-right: 1px solid var(--f-border);
  text-align: center;
}
.f-post-av {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid var(--f-blue);
  margin: 0 auto 10px;
  display: block;
  background: var(--f-glass);
}
.f-post-name {
  font-weight: 700;
  font-size: 14px;
  word-break: break-word;
}
.f-post-role {
  font-size: 11px;
  color: var(--f-cyan);
  margin-top: 4px;
  font-weight: 600;
}
.f-post-date {
  font-size: 11px;
  color: var(--f-muted);
  margin-top: 8px;
}
.f-post-body {
  padding: 16px 18px;
}
.f-quote {
  border-left: 3px solid var(--f-violet);
  padding: 10px 12px;
  margin-bottom: 12px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--f-muted);
}
.f-quote strong {
  color: var(--f-white);
}
.f-content {
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.f-reactions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--f-border);
}
.f-react-btn {
  background: var(--f-glass);
  border: 1px solid var(--f-border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}
.f-react-btn:hover,
.f-react-btn.on {
  border-color: var(--f-blue);
  background: rgba(88, 101, 242, 0.15);
}
.f-pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.f-pagination a,
.f-pagination span {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--f-muted);
  border: 1px solid var(--f-border);
  background: var(--f-glass);
}
.f-pagination a:hover {
  color: var(--f-white);
  border-color: var(--f-blue);
}
.f-pagination span.cur {
  background: var(--f-blue);
  color: #fff;
  border-color: var(--f-blue);
}
.f-breadcrumb {
  font-size: 13px;
  color: var(--f-muted);
  margin-bottom: 18px;
}
.f-breadcrumb a {
  color: var(--f-cyan);
  text-decoration: none;
}
.f-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.f-modal-bg.on {
  display: flex;
}
.f-modal {
  width: 100%;
  max-width: 480px;
  background: #12172a;
  border: 1px solid var(--f-border);
  border-radius: 16px;
  padding: 24px;
  max-height: 90vh;
  overflow-y: auto;
}
.f-modal h3 {
  font-family: "Poppins", sans-serif;
  margin-bottom: 16px;
}
.f-field {
  margin-bottom: 14px;
}
.f-field label {
  display: block;
  font-size: 12px;
  color: var(--f-muted);
  margin-bottom: 6px;
}
.f-field input,
.f-field textarea {
  width: 100%;
  background: var(--f-glass);
  border: 1px solid var(--f-border);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--f-white);
  font-family: inherit;
  font-size: 14px;
}
.f-field textarea {
  min-height: 120px;
  resize: vertical;
}
.f-err {
  color: var(--f-red);
  font-size: 13px;
  margin-top: 8px;
}
.f-page-title {
  font-family: "Poppins", sans-serif;
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.f-muted {
  color: var(--f-muted);
  font-size: 14px;
}
.f-notif-list {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  width: 320px;
  max-height: 360px;
  overflow-y: auto;
  background: #12172a;
  border: 1px solid var(--f-border);
  border-radius: 12px;
  padding: 8px;
  display: none;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
.f-notif-list.on {
  display: block;
}
.f-notif-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 4px;
  background: var(--f-glass);
}
.f-notif-item.unread {
  border: 1px solid rgba(88, 101, 242, 0.35);
}
.f-notif-item a {
  color: var(--f-cyan);
}
@media (max-width: 720px) {
  .f-post {
    grid-template-columns: 1fr;
  }
  .f-post-side {
    border-right: none;
    border-bottom: 1px solid var(--f-border);
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
  }
  .f-post-av {
    margin: 0;
    width: 56px;
    height: 56px;
  }
  .f-nav-links {
    display: none;
  }
}
