/* forum-festive.css — Christmas colours, festive background and snow styling
   for the AFX community pages and the site-wide festive finish (head.tmpl). */

/* ---------------------------------------------------------------------------
   Festive background — the winter scene chosen for the forums
   (snowman + anime-style key art) with a dark navy veil for readability.
   All community/ember pages (forums, topics, profiles, users) share it —
   the user asked for this anime background on profiles too.
   --------------------------------------------------------------------------- */
body.dc-ember-body {
  background-color: #0b1226 !important;
  background-image:
    linear-gradient(180deg, rgba(8, 14, 30, 0.62) 0%, rgba(8, 14, 30, 0.72) 45%, rgba(6, 10, 24, 0.86) 100%),
    url("/img/forum-bg.jpg") !important;
  background-size: cover, cover !important;
  background-position: center top, center top !important;
  background-attachment: fixed, fixed !important;
  background-repeat: no-repeat, no-repeat !important;
}

/* ---------------------------------------------------------------------------
   Christmas colours (forums only) — red, green and gold accents over the
   glass surfaces from discourse-glass.css
   --------------------------------------------------------------------------- */
:root {
  --xmas-red: #d94141;
  --xmas-red-hi: #e05252;
  --xmas-green: #2fae62;
  --xmas-green-hi: #35c46f;
  --xmas-gold: #f0c060;
}

/* Header: festive edge under the glass bar + logo accents */
body.dc-ember-body .d-header {
  border-bottom: none !important;
}
body.dc-ember-body .d-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--xmas-red) 0%, var(--xmas-red-hi) 22%, var(--xmas-gold) 50%, var(--xmas-green-hi) 78%, var(--xmas-green) 100%);
  box-shadow: 0 2px 12px rgba(217, 65, 65, 0.35);
}
body.dc-ember-body .d-logo-text {
  color: #f4f8ff !important;
}
body.dc-ember-body .d-logo-text strong {
  color: var(--xmas-green-hi) !important;
  text-shadow: 0 0 18px rgba(53, 196, 111, 0.45);
}
body.dc-ember-body .d-logo-sub {
  color: var(--xmas-gold) !important;
}

/* Buttons and links */
body.dc-ember-body .d-btn-primary {
  background: var(--xmas-red) !important;
  border-color: var(--xmas-red-hi) !important;
}
body.dc-ember-body .d-btn-primary:hover {
  background: var(--xmas-red-hi) !important;
  box-shadow: 0 4px 18px rgba(217, 65, 65, 0.4);
}
body.dc-ember-body .d-btn-pulse-pill {
  color: var(--xmas-gold) !important;
}
/* Badge links keep their own rarity colors (inline ColorStyle) — the green
   link treatment must not tint them (user: "change the badges colors back") */
body.dc-ember-body a:not(.d-tray-badge):not(.group-link) {
  color: var(--xmas-green-hi) !important;
}
body.dc-ember-body a:not(.d-tray-badge):not(.group-link):hover {
  color: var(--xmas-gold) !important;
}
body.dc-ember-body .d-top-links a:hover {
  color: var(--xmas-gold) !important;
}

/* Sidebar: green section headers, red/gold active states */
body.dc-ember-body .sidebar-section-header {
  color: var(--xmas-green-hi) !important;
}
body.dc-ember-body .sidebar-section-link:hover,
body.dc-ember-body .sidebar-section-link.active {
  background: rgba(217, 65, 65, 0.18) !important;
  color: #ffffff !important;
  border-left: 3px solid var(--xmas-red);
}
body.dc-ember-body .sidebar-section-link:hover .sidebar-section-link-prefix {
  color: var(--xmas-gold) !important;
}

/* Lists: festive counts, tag chips and category accents */
body.dc-ember-body .topic-stats,
body.dc-ember-body .topic-views,
body.dc-ember-body .topic-replies,
body.dc-ember-body td.topics {
  color: var(--xmas-gold) !important;
}
body.dc-ember-body .discourse-tag.box {
  background: rgba(47, 174, 98, 0.22) !important;
  color: #b6f0cd !important;
  border: 1px solid rgba(53, 196, 111, 0.35);
}
body.dc-ember-body .discourse-tag.box:hover {
  background: rgba(217, 65, 65, 0.28) !important;
  color: #ffd9d9 !important;
}
body.dc-ember-body table.category-list thead th {
  border-bottom-color: rgba(217, 65, 65, 0.45) !important;
}
body.dc-ember-body .latest-topic-list .table-heading,
body.dc-ember-body .category-name-header {
  color: var(--xmas-green-hi) !important;
}

/* Topic page: festive title accent and composer */
body.dc-ember-body .d-topic-h1 a.fancy-title {
  color: #f4f8ff !important;
}
body.dc-ember-body .d-topic-h1 a.fancy-title:hover {
  color: var(--xmas-gold) !important;
}

/* Snow canvas — fixed overlay drawn by forum-festive.js */
#nsm-snow {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2500;
}

/* Small screens: keep the festive look but tone down the glow */
@media (max-width: 980px) {
  body.dc-ember-body {
    background-attachment: scroll, scroll !important;
  }
  body.dc-ember-body .d-header::after {
    height: 2px;
  }
}

/* ---------------------------------------------------------------------------
   SITE PAGES (homepage, hosting, server list, portal, support, docs, status,
   marketplace, account, …) — warm christmas accents on the top bar and
   buttons only; page content and heroes stay exactly as they are.
   --------------------------------------------------------------------------- */
header.nsm-top-header {
  position: relative;
  border-bottom: none !important;
}
header.nsm-top-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--xmas-red) 0%, var(--xmas-red-hi) 24%, var(--xmas-gold) 50%, var(--xmas-green-hi) 76%, var(--xmas-green) 100%);
  box-shadow: 0 2px 12px rgba(217, 65, 65, 0.3);
  pointer-events: none;
}
header.nsm-top-header ul.links a:hover,
header.nsm-top-header ul.links a.active {
  background: rgba(217, 65, 65, 0.22) !important;
  color: var(--xmas-gold) !important;
}
header.nsm-top-header .drop-trigger:hover,
header.nsm-top-header .drop-trigger:focus-visible {
  color: var(--xmas-gold) !important;
}
header.nsm-top-header .drop-menu a:hover {
  background: rgba(217, 65, 65, 0.24) !important;
  color: var(--xmas-gold) !important;
}
header.nsm-top-header .drop-caret {
  color: var(--xmas-gold);
}
a.zx-nav-cta:hover {
  border-color: var(--xmas-gold) !important;
  color: var(--xmas-gold) !important;
}
.btn.primary,
a.btn.primary {
  background: linear-gradient(180deg, var(--xmas-red-hi), var(--xmas-red)) !important;
  border-color: rgba(240, 192, 96, 0.45) !important;
}
.btn.primary:hover,
a.btn.primary:hover {
  box-shadow: 0 6px 22px rgba(217, 65, 65, 0.38) !important;
}
.nav-drawer a:hover {
  background: rgba(217, 65, 65, 0.18) !important;
  color: var(--xmas-gold) !important;
}
.nav-drawer-label {
  color: var(--xmas-green-hi) !important;
}
footer a:hover {
  color: var(--xmas-gold) !important;
}

/* account + settings forms: hosting-style warm glass fields */
.inp {
  background: rgba(15, 19, 27, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
}
.inp:focus {
  border-color: rgba(240, 192, 96, 0.6) !important;
  box-shadow: 0 0 0 2px rgba(240, 192, 96, 0.18) !important;
}
.wrap.section h3 {
  color: var(--xmas-gold);
}

/* tiny build tag in the page footer — tells deploys apart at a glance */
.site-build {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 50;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(240, 192, 96, 0.55);
  background: rgba(11, 18, 38, 0.45);
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(240, 192, 96, 0.18);
  pointer-events: auto;
}
