/* Aven site header: shared by every page (markup is stamped in by tools/apply-header.py).
   Scoped under .av-header / .av-mmenu so the old forum theme CSS can't bleed in. */

.av-header, .av-mmenu, .av-header *, .av-mmenu * { box-sizing: border-box; }

.av-header {
  --avh-text: #b7b7bb;
  --avh-strong: #ffffff;
  --avh-muted: #8a8a90;
  --avh-dim: #66666c;
  --avh-accent: #fd7a12;
  --avh-good: #3ecf8e;
  --avh-line: rgba(255,255,255,.10);
  --avh-line-2: rgba(255,255,255,.16);
  position: sticky; top: 0; z-index: 5000; width: 100%;
  background: rgba(14,14,16,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; line-height: 1.4;
  transition: box-shadow .2s;
}
.av-header.is-scrolled { box-shadow: 0 10px 30px -12px rgba(0,0,0,.6); }
.av-header--overlay { position: absolute; top: 0; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom-color: transparent; }

.av-header a, .av-mmenu a { text-decoration: none !important; }
.av-header ul, .av-header li { list-style: none; margin: 0; padding: 0; }
.av-header button, .av-mmenu button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; margin: 0; }
.av-header img { display: block; max-width: none; }

.av-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1264px; height: 73px; margin: 0 auto; padding: 0 24px;
}

/* lead */
.av-header__lead { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }
.av-header__logo img { height: 30px; width: auto; }
.av-status { display: flex; align-items: center; gap: 9px; padding-left: 16px; border-left: 1px solid var(--avh-line); }
.av-status__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--avh-good); box-shadow: 0 0 12px rgba(62,207,142,.8); animation: avhPulse 2.2s ease-in-out infinite; }
@keyframes avhPulse { 50% { opacity: .45; } }
.av-status__meta { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.av-status__top { font-size: 13px; font-weight: 700; color: var(--avh-good); }
.av-status__label { font-family: 'Rajdhani', 'Inter', system-ui, sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .16em; color: var(--avh-strong); text-transform: uppercase; }

/* nav */
.av-nav { display: flex; align-items: center; gap: 24px; }
.av-nav__link {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 2px;
  font-size: 14px; font-weight: 500; color: var(--avh-text) !important; transition: color .14s; background: none;
}
.av-nav__link:hover, .av-nav__link.is-current, .av-dd:focus-within > .av-nav__link { color: var(--avh-strong) !important; }
.av-nav__link.is-current { box-shadow: inset 0 -2px 0 var(--avh-accent); }
.av-nav__link svg { width: 14px; height: 14px; transition: transform .16s; }
.av-dd { position: relative; }
.av-dd:hover > .av-nav__link svg, .av-dd:focus-within > .av-nav__link svg { transform: rotate(180deg); }
.av-dd__panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px); z-index: 950;
  min-width: 360px; padding: 8px; background: #1b1b1f; border: 1px solid var(--avh-line-2); border-radius: 14px;
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.75); opacity: 0; visibility: hidden; transition: opacity .16s, transform .16s, visibility .16s;
}
.av-dd__panel--narrow { min-width: 260px; }
.av-dd__panel::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.av-dd:hover .av-dd__panel, .av-dd:focus-within .av-dd__panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.av-dd__item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; transition: background .14s; }
.av-dd__item:hover { background: rgba(255,255,255,.06); }
.av-dd__item img { width: 56px; height: 32px; object-fit: cover; border-radius: 6px; border: 1px solid rgba(255,255,255,.06); }
.av-dd__name { flex: 1; font-size: 14px; font-weight: 600; color: #ededf0; }
.av-dd__price { font-size: 12.5px; color: var(--avh-muted); }
.av-dd__price b { color: var(--avh-accent); font-weight: 700; }
.av-dd__all { display: block; margin-top: 4px; padding: 10px; border-top: 1px solid rgba(255,255,255,.06); font-size: 13px; font-weight: 600; color: var(--avh-accent) !important; text-align: center; }

/* actions */
.av-header__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.av-header #elSearch {
  position: relative; height: auto; background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; margin: 0; overflow: visible;
  width: auto; min-width: 0; max-width: none; flex: 0 0 auto;
}
.av-header #elSearch form {
  display: flex; align-items: center; height: 40px; width: 40px; padding: 0; margin: 0;
  border-radius: 999px; border: 1px solid transparent; transition: width .25s cubic-bezier(.22,1,.36,1), background .2s, border-color .2s;
}
.av-header #elSearch form:focus-within, .av-header #elSearch form.is-open { width: 240px; background: #151518; border-color: var(--avh-line); }
.av-header #elSearch .av-search-btn { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; color: var(--avh-text); padding: 0; }
.av-header #elSearch .av-search-btn:hover { color: var(--avh-strong); }
.av-header #elSearch .av-search-btn svg { width: 17px; height: 17px; }
.av-header #elSearch input[type=search] {
  flex: 1; min-width: 0; width: auto; height: 100%; margin: 0; padding: 0 14px 0 0; background: transparent; border: 0; outline: 0; box-shadow: none;
  color: var(--avh-strong); font-size: 14px; font-family: inherit; line-height: normal; -webkit-appearance: none; appearance: none;
}
.av-header #elSearch input[type=search]::placeholder { color: var(--avh-dim); font-size: 14px; }
.av-header #elSearch .cSearchFilter { display: none; }
.av-header #elSearch .dcSearchSuggestions { left: auto; right: 0; width: 320px; }
.av-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px;
  font-size: 14px; font-weight: 600; color: var(--avh-text) !important; border: 1px solid var(--avh-line); transition: color .14s, border-color .14s, background .14s;
}
.av-btn-ghost:hover { color: var(--avh-strong) !important; border-color: var(--avh-line-2); background: rgba(255,255,255,.03); }
.av-btn-ghost svg { width: 16px; height: 16px; }
.av-menu-btn { display: none !important; width: 42px; height: 42px; place-items: center; border-radius: 10px; border: 1px solid var(--avh-line) !important; color: var(--avh-strong); }
.av-menu-btn svg { width: 20px; height: 20px; }

/* mobile menu */
.av-mmenu { position: fixed; inset: 0; z-index: 100000; visibility: hidden; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; }
.av-mmenu.is-open { visibility: visible; }
.av-mmenu__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .2s; }
.av-mmenu.is-open .av-mmenu__overlay { opacity: 1; }
.av-mmenu__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: #151518; border-left: 1px solid rgba(255,255,255,.10);
  padding: 22px; display: flex; flex-direction: column; gap: 18px; transform: translateX(100%); transition: transform .25s cubic-bezier(.22,1,.36,1); overflow-y: auto;
}
.av-mmenu.is-open .av-mmenu__panel { transform: none; }
.av-mmenu__top { display: flex; align-items: center; justify-content: space-between; }
.av-mmenu__top img { height: 26px; width: auto; display: block; }
.av-mmenu__close { font-size: 14px !important; color: #8a8a90 !important; padding: 6px 10px !important; border: 1px solid rgba(255,255,255,.10) !important; border-radius: 8px; }
.av-mmenu__nav { display: flex; flex-direction: column; }
.av-mmenu__nav a { padding: 13px 4px; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 16px; font-weight: 600; color: #ededf0 !important; }
.av-mmenu__nav a.sub { font-weight: 500; color: #8a8a90 !important; padding-left: 16px; font-size: 14.5px; }
.av-mmenu__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 999px;
  background: #fd7a12; color: #1f0f02 !important; font-weight: 600; font-size: 16px;
}

/* responsive */
@media (max-width: 1180px) { .av-nav { gap: 18px; } }
@media (max-width: 980px) {
  .av-nav, .av-header__actions .av-btn-ghost, .av-header #elSearch { display: none; }
  .av-menu-btn { display: grid !important; }
}
@media (max-width: 640px) {
  .av-header__inner { height: 64px; padding: 0 18px; }
  .av-status { display: none; }
  .av-header__logo img { height: 26px; }
}

/* Page banner headline (forum-theme pages): match the homepage hero */
.theme-header__hero .heroTitle {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif !important;
  font-weight: 800 !important; letter-spacing: -.03em; line-height: 1.02 !important;
  font-size: clamp(34px, 4.2vw, 64px) !important; color: #ffffff !important;
  text-shadow: 0 4px 30px rgba(0,0,0,.45);
}
.theme-header__hero .heroTitle b {
  font-weight: 800 !important;
  background: linear-gradient(105deg, #ffb15e 0%, #fd7a12 52%, #f2541b 100%) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important; color: transparent !important;
}
