/* ÆternaRP — Estilo editorial HarryPotterHead */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Cinzel+Decorative:wght@400;700&family=Raleway:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0a0a0c;
  --bg-elevated: #141418;
  --bg-surface: #1a1a20;
  --gold: #c9a227;
  --gold-light: #e8c547;
  --gold-dark: #917849;
  --white: #ffffff;
  --cream: #f5f0e8;
  --text: #d4d4d8;
  --text-muted: #969696;
  --accent-purple: #514A92;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --font-display: 'Cinzel', serif;
  --font-display-decor: 'Cinzel Decorative', 'Cinzel', serif;
  --font-body: 'Raleway', system-ui, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.45);
  --transition: 0.25s ease;
  /* Aliases for forums / legacy */
  --ww-purple: var(--accent-purple);
  --ww-purple-dark: #141418;
  --ww-purple-deep: var(--bg);
  --ww-gold: var(--gold);
  --ww-gold-light: var(--gold-light);
  --ww-white: var(--white);
  --ww-cream: var(--cream);
  --ww-text: var(--text);
  --ww-text-muted: var(--text-muted);
  --ww-surface: var(--bg-elevated);
  --ww-surface-2: var(--bg-surface);
  --font-serif: var(--font-display);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition), opacity var(--transition); }
a:hover { color: var(--gold-light); }

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

/* Iconos UI (assets/ui/icons/*.png) */
.ui-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.btn .ui-icon {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

.container {
  width: min(1280px, 92vw);
  margin: 0 auto;
}

/* ── HEADER ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10, 10, 12, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin-left: auto;
}

.header-auth-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.header-admin-btn {
  white-space: nowrap;
  padding: 0.5rem 0.85rem;
  font-size: 0.68rem;
  line-height: 1;
}

.header-admin-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  flex-shrink: 0;
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(201, 162, 39, 0.06);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.header-admin-icon:hover {
  color: var(--white);
  border-color: var(--gold);
  background: rgba(201, 162, 39, 0.14);
}

.header-admin-icon-svg {
  display: block;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-link img {
  height: 44px;
  width: auto;
}

.logo-text {
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.14em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.main-nav > a,
.nav-dropdown-trigger {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  line-height: 1.2;
  padding-bottom: 0.2rem;
}

.main-nav > a::after,
.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.main-nav > a:hover,
.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger,
.main-nav > a.active,
.nav-dropdown-trigger.active {
  color: var(--white);
}

.main-nav > a:hover::after,
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after,
.main-nav > a.active::after,
.nav-dropdown-trigger.active::after {
  width: 100%;
}

.main-nav > a.active,
.nav-dropdown-trigger.active {
  font-weight: 600;
  color: var(--gold-light);
}

.main-nav .nav-icon {
  width: 18px;
  height: 18px;
  opacity: 0.85;
}

.main-nav a:has(.nav-icon) {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.main-nav a:has(.nav-icon)::after {
  display: none;
}

.main-nav a:hover .nav-icon,
.main-nav a.active .nav-icon {
  opacity: 1;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 14px;
  z-index: 1099;
}

.nav-dropdown-trigger {
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 168px;
  padding: 0.4rem 0;
  background: rgba(12, 12, 16, 0.98);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 1200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-dropdown-menu a::after {
  display: none;
}

.nav-dropdown-menu a:hover {
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.btn-outline-gold {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
}

.btn-outline-gold:hover {
  background: rgba(201, 162, 39, 0.12);
  color: var(--gold-light);
}

.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border: 1px solid var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg);
  transform: translateY(-1px);
}

.btn-gold {
  background-color: transparent;
  background-image: url('../assets/ui/botones/btn-primary.png');
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  color: var(--bg);
  border: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-gold:hover {
  background-image: url('../assets/ui/botones/btn-primary-hover.png');
  color: var(--bg);
}

.menu-toggle:has(.ui-icon) {
  padding: 0.4rem;
  flex-direction: row;
  gap: 0;
}

.menu-toggle:has(.ui-icon) .ui-icon {
  filter: none;
  width: 100%;
  height: 100%;
}

.btn-sm { padding: 0.5rem 1rem; font-size: 0.72rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  width: 40px;
  height: 40px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold-light);
  margin: 0 auto;
  transition: var(--transition);
}

.page-home .menu-toggle .ui-icon {
  display: none;
}

/* ── HOME (HP Head) ── */
.home-hero {
  position: relative;
  min-height: clamp(520px, 88vh, 780px);
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/aeterna/hero.png') center 25% / cover no-repeat;
}

.home-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.home-hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 12, 0.55) 0%, rgba(10, 10, 12, 0.92) 75%, var(--bg) 100%);
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-video { display: none; }
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  padding: 4rem 0 5rem;
  max-width: 820px;
}

.home-hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.home-hero-title {
  font-family: var(--font-display-decor);
  font-weight: 700;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
}

.home-hero-title span {
  display: block;
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  letter-spacing: 0.04em;
}

.home-hero-lead {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 2.25rem;
  font-weight: 400;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.home-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.home-link:hover {
  color: var(--white);
}

.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.home-featured-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.home-featured-card:hover {
  border-color: rgba(201, 162, 39, 0.35);
  box-shadow: var(--shadow-card);
}

.home-featured-image {
  min-height: 280px;
  overflow: hidden;
}

.home-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.home-featured-card:hover .home-featured-image img {
  transform: scale(1.03);
}

.home-featured-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.home-featured-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.home-featured-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.home-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.home-platforms-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border-subtle);
}

.home-platform {
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.home-platform-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.home-platform-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.06em;
}

.home-platform ul {
  list-style: none;
  display: grid;
  gap: 0.5rem;
  max-width: 720px;
}

.home-platform li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-left: 1.25rem;
  position: relative;
}

.home-platform li::before {
  content: '●';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.5rem;
  top: 0.55em;
}

.home-marquee {
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  padding: 1.1rem 0;
}

.home-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.home-marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  color: var(--gold-dark);
  padding: 0 2rem;
  white-space: nowrap;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.home-cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.home-cta-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.65;
}

.tag-text {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.65rem;
}

/* ── SECTIONS ── */
.section {
  padding: 4rem 0;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.section-header-row .section-title { margin-bottom: 0; }

.link-arrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  white-space: nowrap;
}

.link-arrow:hover { opacity: 0.85; color: var(--gold-light); }

.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(201, 162, 39, 0.25);
  margin-bottom: 0.65rem;
}

/* ── CARD GRID (noticias / quizzes estilo HP.com) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.content-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.content-card:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 162, 39, 0.25);
  box-shadow: var(--shadow-card);
}

.content-card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.content-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.content-card:hover .content-card-image img {
  transform: scale(1.04);
}

.content-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.content-card-body .tag {
  margin-bottom: 0.65rem;
  font-size: 0.62rem;
  padding: 0.25rem 0.55rem;
}

.content-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 0.5rem;
  flex: 1;
}

.content-card-body h3 a:hover { color: var(--gold-light); }

.content-card-body .meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── SERVERS (Discover the Wizarding World style) ── */
.discover-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.discover-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: var(--ww-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.discover-tab .tab-icon {
  width: 18px;
  height: 18px;
}

.discover-tab:hover,
.discover-tab.active {
  background: var(--ww-purple);
  border-color: var(--ww-purple);
  color: var(--ww-white);
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.server-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--ww-surface);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition);
}

.server-card:hover { transform: translateY(-4px); }

.server-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.server-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-card-image .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,23,51,0.85) 0%, transparent 55%);
}

.server-card-body {
  padding: 1.5rem;
}

.server-card-body h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ww-white);
  margin-bottom: 0.6rem;
}

.server-card-body p {
  font-size: 0.9rem;
  color: var(--ww-text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.server-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.player-count {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gold-light);
}

.player-count .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px #4ade80;
}

/* ── FOOTER ── */
.site-footer {
  background: #080809;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 0 1.5rem;
  margin-top: 0;
}

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

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 340px;
  line-height: 1.7;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── FORUMS ── */
.page-hero {
  padding: 110px 0 3rem;
  text-align: center;
  background:
    linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border-subtle);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1rem;
}

.forum-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  justify-content: center;
}

.forum-tab {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: var(--ww-text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.forum-tab:hover,
.forum-tab.active {
  background: rgba(201, 162, 39, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

.forum-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.forum-empty-state a { color: var(--gold); }

.forum-category[hidden] { display: none !important; }

.forum-category {
  margin-bottom: 2.5rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.forum-category-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.forum-category-header h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.1em;
}

.forum-table { width: 100%; border-collapse: collapse; }

.forum-table thead th {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ww-text-muted);
  padding: 0.75rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.forum-table thead th:not(:first-child) { text-align: center; width: 100px; }
.forum-table thead th:last-child { text-align: right; width: 200px; }

.forum-row {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background var(--transition);
}

.forum-row:hover { background: rgba(201, 162, 39, 0.06); }
.forum-row td { padding: 1rem 1.25rem; vertical-align: middle; }

.forum-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.forum-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.2);
}

.forum-info h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ww-white);
  margin-bottom: 0.15rem;
}

.forum-info h3 a:hover { color: var(--ww-gold-light); }

.forum-info .desc {
  font-size: 0.8rem;
  color: var(--ww-text-muted);
}

.forum-stat {
  text-align: center;
  font-weight: 600;
  color: var(--ww-gold-light);
  font-size: 0.9rem;
}

.last-post {
  text-align: right;
  font-size: 0.78rem;
  color: var(--ww-text-muted);
}

.last-post .author { color: var(--ww-gold-light); font-weight: 500; }

/* ── THREAD ── */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ww-text-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--ww-text-muted); }
.breadcrumb a:hover { color: var(--ww-white); }

.thread-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.thread-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.85rem);
  font-weight: 700;
  color: var(--ww-white);
}

.post-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.post-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  padding: 1.5rem 1rem;
  text-align: center;
}

.post-avatar {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 2px solid var(--gold-dark);
  margin: 0 auto 0.75rem;
  overflow: hidden;
  background: var(--bg);
}

.post-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-username {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ww-white);
  margin-bottom: 0.2rem;
}

.post-rank {
  font-size: 0.75rem;
  color: var(--ww-text-muted);
}

.post-body { padding: 1.5rem; }

.post-meta {
  font-size: 0.75rem;
  color: var(--ww-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.post-content {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ww-text);
}

.post-content h3 {
  font-family: var(--font-serif);
  color: var(--ww-gold-light);
  margin: 1rem 0 0.5rem;
  font-size: 1rem;
}

.post-content .field { margin-bottom: 0.5rem; }
.post-content .field strong { color: var(--ww-gold); }

.post-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.post-card.staff .post-sidebar {
  border-left: 3px solid var(--ww-gold);
}

/* ── FORMS & UI COMPONENTS ── */
.form-group {
  margin-bottom: 1.15rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-check input { margin-top: 0.2rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.page-shell {
  padding: 6rem 0 3rem;
}

.page-shell-narrow {
  max-width: 720px;
  margin: 0 auto;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.pagination a:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.pagination .active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}

.thread-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  margin-right: 0.35rem;
  vertical-align: middle;
}

.thread-badge.pinned { background: rgba(201,162,39,0.25); color: var(--gold-light); }
.thread-badge.closed { background: rgba(150,150,150,0.2); color: var(--text-muted); }
.thread-badge.solved { background: rgba(74,222,128,0.15); color: #4ade80; }
.thread-badge.official { background: rgba(81,74,146,0.35); color: #c4b5fd; }

.thread-list-table { width: 100%; border-collapse: collapse; }
.thread-list-table th {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.thread-list-table th:not(:first-child) { text-align: center; width: 90px; }
.thread-list-table th:last-child { text-align: right; width: 180px; }
.thread-list-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.thread-list-table tr:hover td { background: rgba(201,162,39,0.04); }
.thread-title-cell h3 { font-size: 0.95rem; font-weight: 600; color: var(--white); }
.thread-title-cell .desc { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.15rem; }
.thread-stat { text-align: center; font-weight: 600; color: var(--gold-light); font-size: 0.88rem; }

.thread-layout {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 2rem;
  align-items: start;
}

.thread-sidebar-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: sticky;
  top: 88px;
}

.thread-sidebar-box h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.thread-sidebar-box dl { font-size: 0.85rem; }
.thread-sidebar-box dt { color: var(--text-muted); margin-top: 0.5rem; }
.thread-sidebar-box dd { color: var(--white); font-weight: 500; }

.reply-box {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.reply-box h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.account-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.account-nav {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem;
}

.account-nav a {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
}

.account-nav a:hover,
.account-nav a.active {
  background: rgba(201,162,39,0.12);
  color: var(--gold-light);
}

.account-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.account-panel h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.container--wide {
  max-width: 1180px;
}

.account-panel--flush {
  padding: 1.25rem;
}

.activity-list { list-style: none; }
.activity-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.activity-list li:last-child { border-bottom: none; }
.activity-list strong { color: var(--white); }

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.member-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: border-color var(--transition);
}

.member-card:hover { border-color: rgba(201,162,39,0.35); }

.member-card .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  border: 2px solid var(--gold-dark);
}

.member-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-card h3 { font-size: 0.95rem; color: var(--white); margin-bottom: 0.2rem; }
.member-card .rank { font-size: 0.78rem; color: var(--gold); }

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filter-bar .form-control { max-width: 220px; }

.prose {
  max-width: 720px;
  line-height: 1.8;
  color: var(--text);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-light);
  margin: 1.5rem 0 0.75rem;
}

.prose p { margin-bottom: 1rem; }
.prose ul { margin: 0 0 1rem 1.25rem; color: var(--text-muted); }

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

.shop-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.shop-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.shop-card .price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 0.75rem 0;
}

.news-list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.news-list-item img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.news-article-header { margin-bottom: 2rem; }
.news-article-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--white);
  margin: 0.75rem 0;
}
.news-article-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 2rem;
}
.news-article-image img { width: 100%; max-height: 420px; object-fit: cover; }

.profile-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-header .avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  overflow: hidden;
  flex-shrink: 0;
}

.profile-header .avatar img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1024px) {
  .thread-layout { grid-template-columns: 1fr; }
  .thread-sidebar-box { position: static; }
  .account-layout { grid-template-columns: 1fr; }
  .news-list-item { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .home-featured-grid { grid-template-columns: 1fr; }
  .home-featured-card { grid-template-columns: 1fr; }
  .home-featured-image { min-height: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .header-auth-group {
    gap: 0.35rem;
  }

  .header-admin-icon {
    width: 2.15rem;
    height: 2.15rem;
  }

  .header-admin-icon-svg {
    width: 18px;
    height: 18px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 10, 12, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem;
    gap: 0.75rem;
  }

  .main-nav.open { display: flex; }

  .nav-dropdown { width: 100%; }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
    margin-top: 0.35rem;
    box-shadow: none;
    border: 1px solid var(--border-subtle);
    background: rgba(0, 0, 0, 0.25);
  }

  .nav-dropdown.open .nav-dropdown-menu { display: block; }

  .page-home .header-actions .btn-outline-gold { display: none; }

  .card-grid, .card-grid-4 { grid-template-columns: 1fr; }
  .servers-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .home-hero-inner { padding: 3rem 0 4rem; }
  .home-hero-title span { font-size: clamp(2rem, 10vw, 3rem); }
  .home-cta-inner {
    padding: 2rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .forum-table thead { display: none; }
  .forum-row { display: block; }
  .forum-row td { display: block; padding: 0.25rem 1.25rem; text-align: left !important; }
  .forum-stat::before { content: attr(data-label) ': '; color: var(--text-muted); font-size: 0.75rem; }

  .post-card { grid-template-columns: 1fr; }
  .post-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem 1.25rem;
  }
  .post-avatar { width: 48px; height: 48px; margin: 0; }
}
