/* =========================================================
   W:tA Cyberpunk Rewilding Theme (Bootstrap 5.3+ skin)
   Display-only Character Sheet — FULL DATA
   ========================================================= */

/* -----------------------------
   0) Design Tokens
------------------------------ */
:root {
  --wta-nav: #E7A14A;
  --wta-bg: #0E241A;
  --wta-surface: #143122;
  --wta-surface-2: #183B29;
  --wta-border: #2A4A39;
  --wta-tech: #F3C07A;
  --wta-text: #EAF3EE;
  --wta-muted: #BBD0C3;
  --wta-link: #F2A24B;
  --wta-link-hover: #E24B3B;
  --wta-flicker: #07090B;

  --wta-radius: 1.05rem;
  --wta-radius-sm: .85rem;
  --wta-shadow: 0 16px 40px rgba(0,0,0,.35);
  --wta-shadow-sm: 0 10px 24px rgba(0,0,0,.25);

  --wta-tech-border: 1.5px;
  --wta-tech-inset: 0 0 0 1px rgba(7,9,11,.35) inset;

  --wta-nav-h: 0px; /* set by JS */

  /* Bootstrap variable mapping */
  --bs-body-bg: var(--wta-bg);
  --bs-body-color: var(--wta-text);
  --bs-secondary-color: var(--wta-muted);
  --bs-tertiary-color: rgba(234,243,238,.78);
  --bs-emphasis-color: var(--wta-text);

  --bs-border-color: rgba(42, 74, 57, .9);
  --bs-border-color-translucent: rgba(42, 74, 57, .45);

  --bs-link-color: var(--wta-link);
  --bs-link-hover-color: var(--wta-link-hover);

  --bs-primary: var(--wta-nav);
  --bs-secondary: var(--wta-surface-2);
  --bs-success: #39D98A;
  --bs-info: #55C2FF;
  --bs-warning: #FFD34A;
  --bs-danger: var(--wta-link-hover);
  --bs-light: #EAF3EE;
  --bs-dark: #07090B;

  --bs-border-radius: var(--wta-radius);
  --bs-border-radius-sm: var(--wta-radius-sm);
  --bs-border-radius-lg: 1.35rem;

  --bs-focus-ring-color: transparent;
  --bs-focus-ring-width: 0;
}

/* --------------------------------
   1) Base Page + Text
--------------------------------- */
html, body { height: 100%; }

body {
  background: var(--wta-bg);
  color: var(--wta-text);
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Background atmosphere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 18% 18%, rgba(40, 255, 116, .07), transparent 55%),
    radial-gradient(900px 500px at 75% 25%, rgba(242, 162, 75, .06), transparent 55%),
    radial-gradient(1000px 700px at 45% 85%, rgba(0, 0, 0, .18), transparent 60%);
  opacity: .9;
  z-index: 0;
}

main, .container, .container-fluid, .navbar { position: relative; z-index: 1; }

.text-muted { color: var(--wta-muted) !important; }
.small, small { color: rgba(187,208,195,.9); }

a { color: var(--wta-link); text-decoration: none; }
a:hover { color: var(--wta-link-hover); text-decoration: none; }

/* --------------------------------
   2) IMPORTANT FIX: remove ::after capsule
--------------------------------- */
.wta-tech-link::after,
.navbar-wta .nav-link::after,
.dropdown-menu .dropdown-item::after { content: none !important; }

/* --------------------------------
   3) Sticky Navbar
--------------------------------- */
.navbar.navbar-wta {
  background: var(--wta-nav);
  color: #1B1306;
  border-bottom: 2px solid var(--wta-tech);
  position: sticky;
  top: 0;
  z-index: 999999 !important;
  backdrop-filter: blur(6px) saturate(110%);
}

.navbar.navbar-wta .navbar-brand { color: #1B1306; letter-spacing: .02em; }
.navbar.navbar-wta .navbar-toggler { border-color: rgba(7,9,11,.35); }
.navbar-wta.is-scrolled { box-shadow: 0 10px 30px rgba(0,0,0,0.45); }

/* Nav links + dropdown items keep your tech link style */
.navbar-wta .nav-link,
.dropdown-menu .dropdown-item {
  position: relative;
  border: var(--wta-tech-border) solid rgba(7,9,11,.55);
  border-radius: .9rem;
  padding: .45rem .85rem;
  margin: .1rem .25rem;
  background: transparent;
  transition: transform .12s ease, color .12s ease, background-color .12s ease, border-color .12s ease;
  box-shadow: var(--wta-tech-inset);
}
.navbar-wta .nav-link { color: #1B1306; }
.navbar-wta .nav-link.active {
  background: rgba(7,9,11,.08);
  border-color: rgba(7,9,11,.7);
  font-weight: 700;
}

/* Dropdowns */
.dropdown-menu {
  background: var(--wta-surface);
  border: 1px solid rgba(243,192,122,.45);
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  border-radius: 1.05rem;
  padding: .45rem;
}
.dropdown-divider { border-top-color: rgba(42,74,57,.65); }
.dropdown-item {
  color: var(--wta-text);
  border-color: rgba(243,192,122,.35);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset;
}
.dropdown-item.active,
.dropdown-item:active { background: rgba(242, 162, 75, .14); color: var(--wta-text); }

/* --------------------------------
   4) Tech framed blocks
--------------------------------- */
.wta-tech-frame {
  border: 1px solid rgba(243,192,122,.45);
  border-radius: 1.1rem;
  box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset, 0 10px 24px rgba(0,0,0,.25);
  background: rgba(20,49,34,.9);
}

/* --------------------------------
   5) Display helpers
--------------------------------- */
.wta-kv .wta-k {
  font-weight: 900;
  letter-spacing: .03em;
  font-size: .85rem;
  color: rgba(187,208,195,.92);
}
.wta-kv .wta-v { font-weight: 650; }

.wta-subhead { font-weight: 900; letter-spacing: .03em; margin-bottom: .5rem; }

.wta-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .25rem 0;
}
.wta-stat-name { font-weight: 800; }

.wta-listbox {
  border: 1px solid rgba(42,74,57,.75);
  border-radius: 1rem;
  padding: .75rem;
  background: rgba(7,9,11,.10);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset;
}

.wta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .35rem 0;
  border-bottom: 1px dashed rgba(42,74,57,.55);
}
.wta-line:last-child { border-bottom: 0; }

.wta-details {
  border: 1px solid rgba(42,74,57,.75);
  border-radius: 1rem;
  padding: .85rem 1rem;
  background: rgba(7,9,11,.10);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset;
  min-height: 3.75rem;
}

/* Skills specialties */
.wta-skill {
  padding: .2rem 0 .7rem;
  border-bottom: 1px dashed rgba(42,74,57,.55);
}
.wta-skill:last-child { border-bottom: 0; }

.wta-spec {
  margin-top: .25rem;
  padding: .4rem .65rem;
  border-radius: .85rem;
  border: 1px solid rgba(42,74,57,.75);
  background: rgba(7,9,11,.10);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset;
  font-size: .85rem;
}

/* Forms */
.wta-form {
  border: 1px solid rgba(42,74,57,.75);
  border-radius: 1rem;
  padding: .85rem 1rem;
  background: rgba(7,9,11,.10);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset;
  height: 100%;
}
.wta-form-title { font-weight: 950; letter-spacing: .03em; }

/* Touchstones cards */
.wta-touch {
  border: 1px solid rgba(42,74,57,.75);
  border-radius: 1rem;
  padding: .85rem 1rem;
  background: rgba(7,9,11,.10);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset;
  min-height: 5.5rem;
}

/* Backgrounds grid */
.wta-bggrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}
.wta-bgitem {
  border: 1px solid rgba(42,74,57,.75);
  border-radius: 1rem;
  padding: .85rem 1rem;
  background: rgba(7,9,11,.10);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset;
}

/* --------------------------------
   6) Dots (display)
--------------------------------- */
.wta-dots {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
}
.wta-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(243,192,122,.55);
  background: rgba(7,9,11,.25);
  box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset;
}
.wta-dots .dot.on {
  background: rgba(243,192,122,.85);
  border-color: rgba(243,192,122,.95);
}

/* --------------------------------
   7) RIGHT SIDEBAR TRACKER (10–15% width)
--------------------------------- */
.wta-tracker-side {
  position: sticky;
  top: var(--wta-nav-h, 0px);
  z-index: 999998;

  border: 1px solid rgba(243,192,122,.35);
  border-radius: 1.05rem;
  background: rgba(20,49,34,.92);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(6px) saturate(115%);
  padding: .75rem;

  /* keeps it visually tight in a narrow column */
  max-width: 260px;
  margin-left: auto;
}

.wta-portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(243,192,122,.45);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25) inset, 0 10px 24px rgba(0,0,0,.18);
  background: rgba(7,9,11,.20);
  margin-bottom: .75rem;
}
.wta-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wta-trackstack { display: grid; gap: .55rem; }

.wta-trackrow { display: grid; gap: .2rem; }
.wta-tracklabel {
  font-weight: 950;
  letter-spacing: .03em;
  font-size: .9rem;
}
.wta-trackvalue { display: grid; gap: .35rem; }

.wta-trackdivider {
  height: 1px;
  background: rgba(243,192,122,.25);
  border-radius: 999px;
  margin: .25rem 0;
}

.wta-tracksep {
  width: 1px;
  height: 18px;
  background: rgba(243, 192, 122, 0.45);
  border-radius: 999px;
  margin: 0 .25rem;
  display: inline-block;
}

/* On small screens, sidebar becomes a normal block above/below */
@media (max-width: 991.98px) {
  .wta-tracker-side {
    position: relative;
    top: auto;
    max-width: none;
  }
}

/* --------------------------------
   8) Tables
--------------------------------- */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--wta-text);
  --bs-table-border-color: rgba(42,74,57,.7);
}
.table thead th {
  color: var(--wta-text);
  background: rgba(24, 59, 41, .55);
  border-bottom-color: rgba(243,192,122,.35);
}
.table-hover > tbody > tr:hover > * { background: rgba(243,192,122,.08); }

/* --------------------------------
   9) Footer + Back to top
--------------------------------- */
main { flex: 1 0 auto; }

.wta-footer {
  flex: 0 0 auto;
  position: sticky;
  bottom: 0;
  z-index: 99999;
  background: rgba(20, 49, 34, 0.92);
  border-top: 1px solid rgba(243, 192, 122, 0.30);
  box-shadow: 0 -12px 28px rgba(0,0,0,0.30);
  backdrop-filter: blur(6px) saturate(115%);
}
.wta-footer-brand { font-weight: 800; letter-spacing: .02em; color: var(--wta-text); }
.wta-footer-sep { width: 1px; height: 1.35rem; background: rgba(243, 192, 122, 0.45); display: inline-block; }
.wta-footer,
.wta-footer * { color: var(--wta-text); transition: color .18s ease; }
.wta-footer:hover,
.wta-footer:hover * { color: var(--wta-link-hover) !important; }

.wta-backtotop {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 999998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem .9rem;
  border-radius: .95rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.wta-backtotop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* =========================================
   ENABLE RED HOVER FOR TECH FRAMES (like sheet header)
   ========================================= */

/* Only elements with .wta-hover-red will shift to red on hover */
.wta-hover-red,
.wta-hover-red * {
  transition: color .18s ease;
}

.wta-hover-red:hover,
.wta-hover-red:hover * {
  color: var(--wta-link-hover) !important;
}

/* --------------------------------
   10) HR glow
--------------------------------- */
.hr-wta {
  position: relative;
  border: none;
  height: 4px;
  margin: 1.75rem 0;
  border-radius: 999px;
  background:
    linear-gradient(
      to right,
      transparent,
      rgba(231,161,74,0.65),
      rgba(231,161,74,0.95),
      rgba(231,161,74,0.65),
      transparent
    );
  box-shadow:
    0 0 8px rgba(231,161,74,0.55),
    0 0 18px rgba(231,161,74,0.30),
    0 0 34px rgba(231,161,74,0.18);
}
.hr-wta::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: rgba(243,192,122,0.95);
  opacity: 0.9;
  pointer-events: none;
}
@keyframes wta-hr-pulse {
  0% { opacity: 0.85; }
  50% { opacity: 1; }
  100% { opacity: 0.85; }
}
.hr-wta-pulse { animation: wta-hr-pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hr-wta-pulse { animation: none; } }

/* --------------------------------
   11) Werewolf font
--------------------------------- */
@font-face {
  font-family: "Werewolf";
  src: url("inc/fonts/WEREWOLF.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
.font-werewolf {
  font-family: "Werewolf", var(--bs-body-font-family), system-ui, sans-serif;
  letter-spacing: 0.04em;
}

/* ===== Forms Accordion Styling ===== */
.wta-accordion .accordion-item {
  background: rgba(7,9,11,.10);
  border: 1px solid rgba(42,74,57,.85);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0,0,0,.18) inset;
  margin-bottom: .6rem;
}

.wta-accordion .accordion-button {
  background: rgba(24,59,41,.55);
  color: var(--wta-text);
  border: 0;
  box-shadow: none !important;
}

.wta-accordion .accordion-button:not(.collapsed) {
  background: rgba(243,192,122,.12);
}

.wta-accordion .accordion-body {
  background: rgba(7,9,11,.06);
}

.wta-acc-title {
  font-weight: 900;
  letter-spacing: .03em;
}

.wta-acc-meta {
  margin-left: auto;
}