/* ===========================================================
   Honeybloom Minecraft Community Hub — styles.css
   Cute jungle / honeybee theme
   =========================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --honey: #f6b53d;
  --honey-deep: #e09a1e;
  --pink: #f7a8c4;
  --pink-soft: #fcd9e6;
  --leaf: #5fa86a;
  --leaf-deep: #3f7a4c;
  --brown: #7a5230;
  --brown-deep: #5b3c22;
  --cream: #fff7e8;
  --cream-2: #fdeccd;
  --ink: #4a3823;
  --ink-soft: #7c674c;
  --white: #fffdf8;

  --bg: var(--cream);
  --card: var(--white);
  --border: #efd9b0;
  --shadow: 0 10px 30px rgba(122, 82, 48, 0.12);
  --shadow-sm: 0 4px 14px rgba(122, 82, 48, 0.1);

  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;

  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --maxw: 1140px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(247, 168, 196, 0.18), transparent 38%),
    radial-gradient(circle at 88% 4%, rgba(246, 181, 61, 0.18), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(95, 168, 106, 0.12), transparent 45%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--leaf-deep);
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--brown-deep);
  margin: 0 0 0.4em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.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;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  text-align: center;
  line-height: 1;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-honey {
  background: var(--honey);
  color: var(--brown-deep);
  box-shadow: 0 6px 0 var(--honey-deep);
}
.btn-honey:hover {
  box-shadow: 0 8px 0 var(--honey-deep);
}

.btn-pink {
  background: var(--pink);
  color: #7a2e4a;
  box-shadow: 0 6px 0 #e07da0;
}
.btn-pink:hover {
  box-shadow: 0 8px 0 #e07da0;
}

.btn-leaf {
  background: var(--leaf);
  color: var(--white);
  box-shadow: 0 6px 0 var(--leaf-deep);
}
.btn-leaf:hover {
  box-shadow: 0 8px 0 var(--leaf-deep);
}

.btn-ghost {
  background: var(--white);
  color: var(--brown-deep);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-discord {
  background: #5865f2;
  color: #fff;
  box-shadow: 0 6px 0 #3c45c4;
}
.btn-discord:hover {
  box-shadow: 0 8px 0 #3c45c4;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brown-deep);
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  color: var(--honey-deep);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--cream-2);
  color: var(--brown-deep);
}

.nav-cta {
  display: flex;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: 12px;
  width: 46px;
  height: 46px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--brown-deep);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(91, 60, 34, 0.25) 0%, rgba(91, 60, 34, 0.55) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 6rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 247, 232, 0.92);
  color: var(--brown-deep);
  font-weight: 800;
  font-family: var(--font-head);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.8rem, 7vw, 5rem);
  text-shadow: 0 4px 18px rgba(91, 60, 34, 0.6);
  margin: 0;
}

.hero h1 .accent {
  color: var(--honey);
}

.hero-tagline {
  font-size: clamp(1.05rem, 2.5vw, 1.4rem);
  max-width: 42ch;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(91, 60, 34, 0.7);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ---------- IP copy bar ---------- */
.ip-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 253, 248, 0.95);
  border: 2px solid var(--honey);
  border-radius: 999px;
  padding: 0.45rem 0.5rem 0.45rem 1.1rem;
  box-shadow: var(--shadow);
  margin-top: 0.75rem;
}

.ip-bar .ip-label {
  font-weight: 800;
  font-family: var(--font-head);
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.ip-bar .ip-value {
  font-weight: 800;
  color: var(--brown-deep);
  font-size: 1rem;
  letter-spacing: 0.2px;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--honey);
  color: var(--brown-deep);
  border: none;
  font-family: var(--font-head);
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.copy-btn:hover {
  background: var(--honey-deep);
}

.copy-btn.copied {
  background: var(--leaf);
  color: var(--white);
}

.copy-btn svg {
  width: 1.05em;
  height: 1.05em;
}

/* ---------- Sections ---------- */
.section {
  padding-block: 4rem;
}

.section-head {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 2.5rem;
}

.section-head .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  color: var(--honey-deep);
  background: var(--cream-2);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Game mode cards ---------- */
.mode-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.mode-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.mode-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(122, 82, 48, 0.2);
}

.mode-card .thumb {
  position: relative;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.mode-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mode-card .tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: var(--white);
  color: var(--brown-deep);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

.mode-card .body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.mode-card h3 {
  font-size: 1.4rem;
  margin: 0;
}

.mode-card p {
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.mode-card .features {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mode-card .features li {
  background: var(--cream-2);
  color: var(--brown);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}

/* ---------- Feature strip ---------- */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.feature {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.feature .icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 0.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--honey-deep);
}

.feature .icon svg {
  width: 26px;
  height: 26px;
}

.feature h3 {
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

/* ---------- Page hero (sub-pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--cream-2), var(--pink-soft));
  border-bottom: 2px solid var(--border);
  text-align: center;
  padding-block: 3.2rem;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 0.4rem;
}

.page-hero p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  max-width: 55ch;
  margin: 0 auto;
}

.breadcrumb {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.6rem;
}

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.post-card-link {
  color: inherit;
}

.post-card-link:focus-visible,
.thread-link:focus-visible,
.footer-bottom a:focus-visible {
  outline: 3px solid rgba(246, 181, 61, 0.45);
  outline-offset: 4px;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.post-thumb {
  overflow: hidden;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--cream-2);
  aspect-ratio: 16 / 9;
  margin-bottom: 0.25rem;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.post-card:hover .post-thumb img {
  transform: scale(1.03);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.pill {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}

.pill-announcements { background: #ffe2c2; color: #a35a17; }
.pill-survival { background: #d4f0d8; color: var(--leaf-deep); }
.pill-skyblock { background: #d6ecff; color: #2b6aa3; }
.pill-factions { background: #ffd7d7; color: #b23b3b; }
.pill-suggestions { background: #fde0ef; color: #b23877; }
.pill-support { background: #efe2ff; color: #7a4ec0; }
.pill-rules { background: #fff0c2; color: var(--honey-deep); }
.pill-event { background: var(--pink-soft); color: #b23877; }
.pill-update { background: var(--cream-2); color: var(--honey-deep); }

.post-card h3 {
  font-size: 1.3rem;
  margin: 0;
}

.post-card .excerpt {
  color: var(--ink-soft);
  margin: 0;
  flex: 1;
}

.read-more {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--honey-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.loading,
.empty {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 700;
  padding: 2rem;
}

/* ---------- Forum ---------- */
.forum-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.forum-cat {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.forum-cat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--honey);
}

.forum-cat .cat-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--white);
}

.forum-cat .cat-icon svg {
  width: 28px;
  height: 28px;
}

.forum-cat .cat-main {
  flex: 1;
  min-width: 0;
}

.forum-cat .cat-main h3 {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
}

.forum-cat .cat-main p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.forum-cat .cat-stats {
  text-align: right;
  flex-shrink: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 700;
}

.forum-cat .cat-stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.3rem;
  color: var(--brown-deep);
}

.forum-cat .cat-last {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* category accent colors */
.ic-announcements { background: #f0a948; }
.ic-rules { background: var(--honey-deep); }
.ic-survival { background: var(--leaf); }
.ic-skyblock { background: #4a93d4; }
.ic-factions { background: #d45a5a; }
.ic-suggestions { background: var(--pink); }
.ic-support { background: #9b6fd4; }

/* ---------- Threads preview in forum ---------- */
.thread-list {
  margin-top: 0.9rem;
  border-top: 1px dashed var(--border);
  padding-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.thread {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
  border-radius: 10px;
}

.thread .t-title {
  font-weight: 700;
  color: var(--brown-deep);
}

.thread .t-meta {
  color: var(--ink-soft);
  white-space: nowrap;
}

.thread-link {
  color: inherit;
  padding: 0.25rem 0.35rem;
  margin-inline: -0.35rem;
  transition: background-color 0.15s ease;
}

.thread-link:hover {
  background: var(--cream-2);
}

/* ---------- Rules ---------- */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.rule-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
}

.rule-card .num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--honey);
  color: var(--brown-deep);
  font-family: var(--font-head);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.rule-card h3 {
  font-size: 1.2rem;
  margin: 0 0 0.3rem;
}

.rule-card p {
  margin: 0;
  color: var(--ink-soft);
}

.callout {
  background: var(--pink-soft);
  border: 2px solid var(--pink);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  margin-top: 2rem;
  color: #7a2e4a;
}

.callout strong {
  color: #7a2e4a;
}

/* ---------- Staff ---------- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}

.staff-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.staff-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.staff-card .avatar {
  width: 92px;
  height: 92px;
  margin: 0 auto 0.8rem;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2rem;
  color: var(--white);
  background-image: linear-gradient(135deg, var(--honey), var(--pink));
  image-rendering: pixelated;
}

.staff-card h3 {
  margin: 0 0 0.1rem;
  font-size: 1.25rem;
}

.staff-role {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.role-owner { background: var(--honey); color: var(--brown-deep); }
.role-admin { background: #ffd7d7; color: #b23b3b; }
.role-mod { background: #d4f0d8; color: var(--leaf-deep); }
.role-builder { background: #d6ecff; color: #2b6aa3; }
.role-helper { background: var(--pink-soft); color: #b23877; }

.staff-card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.92rem;
}

/* ---------- Join page ---------- */
.join-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.steps li {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 1.2rem 4rem;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--honey);
  color: var(--brown-deep);
  font-family: var(--font-head);
  font-weight: 800;
}

.steps li h3 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}

.steps li p {
  margin: 0;
  color: var(--ink-soft);
}

.join-card {
  background: var(--card);
  border: 2px solid var(--honey);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 90px;
}

.join-card h3 {
  margin-top: 0;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--border);
}

.info-row:last-of-type {
  border-bottom: none;
}

.info-row .label {
  font-weight: 800;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.info-row .value {
  font-weight: 800;
  color: var(--brown-deep);
}

.join-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ---------- Report form ---------- */
.report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.75fr);
  gap: 2rem;
  align-items: start;
}

.report-form,
.report-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.report-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.report-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 800;
  color: var(--brown-deep);
}

.report-form input,
.report-form select,
.report-form textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 0.85rem;
}

.report-form textarea {
  resize: vertical;
  min-height: 170px;
}

.report-form input:focus,
.report-form select:focus,
.report-form textarea:focus {
  outline: 3px solid rgba(246, 181, 61, 0.28);
  border-color: var(--honey);
}

.optional {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.85rem;
}

.form-alert {
  border: 2px solid;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-weight: 800;
}

.form-alert ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.form-alert-success {
  background: #dff3e2;
  border-color: var(--leaf);
  color: var(--leaf-deep);
}

.form-alert-error {
  background: #ffe1df;
  border-color: #e36a5c;
  color: #8b2d25;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.report-card {
  border-color: var(--honey);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.report-card h2 {
  margin-top: 0;
}

.report-card p {
  color: var(--ink-soft);
}

.report-card .btn {
  width: 100%;
  margin-top: 0.8rem;
}

/* ---------- Stat band ---------- */
.stat-band {
  background: var(--brown-deep);
  color: var(--cream);
}

.stat-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-block: 2.5rem;
  text-align: center;
}

.stat .num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--honey);
  display: block;
}

.stat .lbl {
  color: var(--cream-2);
  font-weight: 700;
  font-size: 0.9rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--honey), var(--pink));
  text-align: center;
}

.cta-band .container {
  padding-block: 3.5rem;
}

.cta-band h2 {
  color: var(--brown-deep);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.cta-band p {
  color: #6e4a2a;
  font-weight: 600;
  max-width: 50ch;
  margin: 0 auto 1.5rem;
}

.cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-deep);
  color: var(--cream-2);
  padding-block: 3rem 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.6rem;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

.site-footer p {
  color: #d8c3a8;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--honey);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-col a {
  color: #d8c3a8;
  font-weight: 600;
}

.footer-col a:hover {
  color: var(--honey);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 247, 232, 0.15);
  text-align: center;
  font-size: 0.85rem;
  color: #b89c7d;
}

.footer-bottom p {
  margin: 0.2rem 0;
}

.site-credit {
  color: #c8ad8c;
  font-size: 0.85rem;
}

.site-credit a {
  color: var(--honey);
  font-weight: 800;
}

.site-credit a:hover {
  color: var(--cream);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%) translateY(20px);
  background: var(--brown-deep);
  color: var(--cream);
  font-weight: 700;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 100;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Article (single post readability) ---------- */
.prose {
  max-width: 70ch;
  margin-inline: auto;
}

.prose h2 {
  margin-top: 1.6rem;
}

.article-wrap {
  max-width: 860px;
  margin-inline: auto;
}

.article-card,
.reply-section {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.article-card {
  padding: clamp(1.4rem, 4vw, 2.2rem);
}

.article-empty {
  text-align: center;
}

.article-empty p {
  color: var(--ink-soft);
}

.article-meta {
  margin-bottom: 1.2rem;
}

.article-image {
  margin: 0 0 1.5rem;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: var(--cream-2);
  box-shadow: var(--shadow-sm);
}

.article-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.article-content {
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.article-actions {
  margin-top: 1.25rem;
}

.reply-section {
  margin-top: 1.5rem;
  padding: clamp(1.2rem, 3vw, 1.7rem);
}

.reply-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reply-head h2 {
  margin: 0;
}

.reply-head span,
.reply-meta span {
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 0.9rem;
}

.reply-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.reply-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.reply-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.reply-content {
  font-size: 0.98rem;
}

.reply-empty {
  background: var(--cream);
  border-radius: var(--radius);
  margin: 0;
}

/* ---------- Admin portal ---------- */
.admin-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: rgba(255, 253, 248, 0.96);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 60;
}

.admin-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.admin-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: var(--cream-2);
  color: var(--brown-deep);
}

.admin-main {
  flex: 1;
  padding-block: 2rem 3rem;
}

.admin-footer {
  border-top: 2px solid var(--border);
  background: var(--white);
  color: var(--ink-soft);
  padding-block: 1rem;
  font-weight: 700;
}

.admin-footer .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.admin-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-page-head h1,
.admin-auth-card h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.admin-page-head p,
.admin-auth-card p,
.admin-muted {
  color: var(--ink-soft);
}

.admin-head-actions,
.admin-form-actions,
.admin-check-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.admin-auth-card,
.admin-card-form,
.admin-table-card,
.admin-action-card,
.admin-stat-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.admin-auth-card {
  max-width: 460px;
  margin: 2rem auto;
  padding: 1.6rem;
}

.admin-card-form,
.admin-table-card {
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.admin-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-weight: 800;
  color: var(--brown-deep);
}

.admin-form input[type="text"],
.admin-form input[type="password"],
.admin-form input[type="number"],
.admin-form input[type="file"],
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  padding: 0.75rem 0.85rem;
}

.admin-form textarea {
  resize: vertical;
  min-height: 110px;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
  outline: 3px solid rgba(246, 181, 61, 0.28);
  border-color: var(--honey);
}

.admin-check {
  flex-direction: row !important;
  align-items: center;
  color: var(--ink) !important;
}

.admin-check input {
  width: 1.1rem;
  height: 1.1rem;
}

.admin-alert {
  border: 2px solid;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.admin-alert-error {
  background: #ffe1df;
  border-color: #e36a5c;
  color: #8b2d25;
}

.admin-alert-success {
  background: #dff3e2;
  border-color: var(--leaf);
  color: var(--leaf-deep);
}

.admin-alert-warning {
  background: #fff0c2;
  border-color: var(--honey);
  color: var(--brown-deep);
}

.admin-stat-grid,
.admin-actions-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-stat-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-actions-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-stat-card {
  padding: 1.1rem;
}

.admin-stat-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--honey-deep);
  line-height: 1;
}

.admin-stat-card span {
  display: block;
  color: var(--ink-soft);
  font-weight: 800;
  margin-top: 0.35rem;
}

.admin-action-card {
  padding: 1.2rem;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-action-card:hover {
  transform: translateY(-3px);
  border-color: var(--honey);
  box-shadow: var(--shadow);
}

.admin-action-card p {
  margin: 0;
  color: var(--ink-soft);
}

.admin-table-card {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  font-family: var(--font-head);
  color: var(--brown-deep);
  font-size: 0.95rem;
}

.admin-table-actions {
  width: 1%;
  white-space: nowrap;
}

.admin-link,
.admin-inline-form button {
  border: 0;
  background: transparent;
  color: var(--leaf-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  padding: 0;
}

.admin-inline-form {
  display: inline;
  margin-left: 0.55rem;
}

.admin-inline-form button.danger {
  color: #b23b3b;
}

.admin-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-weight: 900;
  font-size: 0.8rem;
}

.admin-status.is-published {
  background: #dff3e2;
  color: var(--leaf-deep);
}

.admin-status.is-draft {
  background: var(--cream-2);
  color: var(--brown);
}

.admin-muted {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.admin-image-field {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-image-preview {
  display: grid;
  grid-template-columns: minmax(180px, 320px) 1fr;
  gap: 1rem;
  align-items: center;
  background: var(--cream);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.admin-image-preview img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .feature-strip { grid-template-columns: 1fr 1fr; }
  .join-wrap { grid-template-columns: 1fr; }
  .join-card { position: static; }
  .report-layout { grid-template-columns: 1fr; }
  .report-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-band .container { grid-template-columns: 1fr 1fr; }
  .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-actions-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 2px solid var(--border);
    padding: 0.75rem 1.25rem 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }
  .nav.open .nav-cta {
    display: flex;
    position: absolute;
    top: calc(100% + 0px);
    left: 0;
    right: 0;
    transform: translateY(100%);
    background: var(--white);
    padding: 0 1.25rem 1rem;
    flex-direction: column;
  }
  .nav.open .nav-cta { display: none; }
  .ip-bar { flex-direction: column; gap: 0.5rem; padding: 0.8rem 1rem; }
  .forum-cat { flex-wrap: wrap; }
  .forum-cat .cat-stats { text-align: left; }
  .admin-topbar-inner,
  .admin-page-head {
    flex-direction: column;
  }
  .admin-nav {
    justify-content: flex-start;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
  .admin-image-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .mode-grid { grid-template-columns: 1fr; }
  .feature-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-band .container { grid-template-columns: 1fr 1fr; }
  .hero-inner { padding-block: 4rem 3rem; }
  .admin-stat-grid { grid-template-columns: 1fr; }
}
