/* Section strips under the header (inc/section-strip.php). Same box, type and separators as the Trending strip;
   selectors carry .vgnw-header so they hold when partial navigation re-appends the page bundle after this file. */

/* Header + strip height for sticky UI (side menus, filter bars); section-strip.js keeps it exact. */
:root { --vgnw-sticky-top: 101px; }
@media (max-width: 1080px) { :root { --vgnw-sticky-top: 95px; } }

.vgnw-header .vgnw-header-trending--section { gap: 14px; }
/* when a section has more links than the row holds: scroll sideways instead of cutting the last link */
.vgnw-header .vgnw-header-trending--section { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.vgnw-header .vgnw-header-trending--section::-webkit-scrollbar { display: none; }
.vgnw-header .vgnw-header-trending--section > * { flex-shrink: 0; }
.vgnw-header .vgnw-header-trending--section .vgnw-trending-link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
}
.vgnw-header .vgnw-header-trending--section .vgnw-trending-link i { font-size: 13px; line-height: 1; color: var(--fg-subtle); transition: color var(--dur-fast); }
.vgnw-header .vgnw-header-trending--section .vgnw-trending-link:hover i,
.vgnw-header .vgnw-header-trending--section .vgnw-trending-link.is-active i { color: currentColor; }
/* no underline: links sit in a soft tone and come forward on hover; the current view stays forward */
.vgnw-header .vgnw-header-trending--section .vgnw-trending-link:focus-visible { outline: 2px solid var(--fg-default); outline-offset: 3px; border-radius: 3px; }

.vgnw-header .vgnw-strip-n {
  font-family: var(--font-micro); font-weight: 600; font-size: 10.5px; font-variant-numeric: tabular-nums;
  color: var(--fg-subtle); margin-left: 1px;
}
.vgnw-header .vgnw-strip-badge {
  font-family: var(--font-micro); font-weight: 700; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--fg-default); border: 1px solid var(--border-default); border-radius: 4px; padding: 1px 4px; margin-left: 2px;
}
.vgnw-header .vgnw-strip-clip .vgnw-strip-t { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.vgnw-header .vgnw-strip-sep { height: 11px; }

/* call to action at the end (New thread, Share a setup) */
.vgnw-header .vgnw-trending-cta {
  margin-left: auto; flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-micro); font-weight: 700; font-size: 11.5px; white-space: nowrap;
  color: var(--fg-default); text-decoration: none;
  border: 1px solid var(--border-default); border-radius: 7px; padding: 5px 11px; background: var(--bg-surface);
  transition: border-color var(--dur-fast), background var(--dur-fast), transform .12s ease;
}
.vgnw-header .vgnw-trending-cta:hover { border-color: var(--border-strong); background: var(--bg-raised); }
.vgnw-header .vgnw-trending-cta:active { transform: scale(.97); }
.vgnw-header .vgnw-trending-cta .vgnw-strip-t { font: inherit; }

/* games: platform toggles wired to the archive's platform filter */
.vgnw-header .vgnw-gsub-plats { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
.vgnw-header .vgnw-gsub-plats-l {
  font-family: var(--font-micro); font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-subtle); margin-right: 4px;
}
.vgnw-header .vgnw-gsub-plat {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0; cursor: pointer;
  border: 1px solid transparent; border-radius: 6px; background: none; color: var(--fg-muted);
  transition: color var(--dur-fast), background var(--dur-fast), border-color var(--dur-fast);
}
.vgnw-header .vgnw-gsub-plat i { font-size: 15px; }
.vgnw-header .vgnw-gsub-plat:hover { color: var(--fg-default); background: var(--bg-raised); }
.vgnw-header .vgnw-gsub-plat.is-on { color: var(--fg-default); background: var(--bg-raised); border-color: var(--border-default); }

/* game page: the game's own links after its tabs */
.vgnw-header .vgnw-header-trending--game .vgnw-strip-ext { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.vgnw-header .vgnw-header-trending--game .vgnw-strip-ext i { font-size: 13px; color: var(--fg-subtle); }

/* motion: the strip settles in item by item when a section opens */
@media (prefers-reduced-motion: no-preference) {
  .vgnw-header .vgnw-header-trending--section > * { animation: vgnw-strip-in .32s cubic-bezier(.2, .7, .2, 1) backwards; }
  .vgnw-header .vgnw-header-trending--section > :nth-child(2) { animation-delay: 20ms; }
  .vgnw-header .vgnw-header-trending--section > :nth-child(3) { animation-delay: 40ms; }
  .vgnw-header .vgnw-header-trending--section > :nth-child(4) { animation-delay: 60ms; }
  .vgnw-header .vgnw-header-trending--section > :nth-child(5) { animation-delay: 80ms; }
  .vgnw-header .vgnw-header-trending--section > :nth-child(6) { animation-delay: 100ms; }
  .vgnw-header .vgnw-header-trending--section > :nth-child(7) { animation-delay: 120ms; }
  .vgnw-header .vgnw-header-trending--section > :nth-child(8) { animation-delay: 140ms; }
  .vgnw-header .vgnw-header-trending--section > :nth-child(9) { animation-delay: 160ms; }
  .vgnw-header .vgnw-header-trending--section > :nth-child(n+10) { animation-delay: 180ms; }
}
@keyframes vgnw-strip-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .vgnw-header .vgnw-header-trending--section { gap: 12px; }
  .vgnw-header .vgnw-strip-clip .vgnw-strip-t { max-width: 140px; }
  .vgnw-header .vgnw-gsub-plats-l { display: none; }
}
