/* squadron-shell.css — Anime UI pilot (animesquadron.org visual shell)
 * Visual tokens + chrome density ONLY. Does not alter page copy, Codes facts, Ads, or hosts.
 * Reference: --bg:#101114 --surface:#17191f --surface-2:#20232b --accent:#facc15 --accent-2:#38bdf8
 */

:root {
  /* Squadron hex aliases (for shell rules) */
  --sq-bg: #101114;
  --sq-surface: #17191f;
  --sq-surface-2: #20232b;
  --sq-panel: #111113;
  --sq-accent: #facc15;
  --sq-accent-2: #38bdf8;
  --sq-text: #f7f7fb;
  --sq-muted: rgba(247, 247, 251, 0.68);

  /* Shift brand toward squadron yellow accent while staying Anime Dice readable */
  --brand: 48 96% 53%;
  --brand-light: 48 90% 62%;
  --brand-h: 48;
  --brand-s: 96%;
  --brand-text: 48 96% 55%;
}

.dark {
  /* Map site HSL tokens → squadron dark wiki hub */
  --background: 225 11% 7%;      /* #101114 */
  --foreground: 240 33% 97%;     /* #f7f7fb */
  --muted: 224 15% 15%;          /* #20232b */
  --muted-foreground: 225 10% 68%;
  --border: 225 10% 18%;         /* white/10-ish on dark */
  --card: 225 15% 11%;           /* #17191f */
  --card-foreground: 240 33% 97%;

  --brand: 48 96% 53%;
  --brand-light: 48 90% 62%;
  --brand-h: 48;
  --brand-s: 96%;
  --brand-text: 48 96% 58%;
}

/* Prefer dark wiki feel even if theme toggle is light — the site is dark-first */
html {
  color-scheme: dark;
}

body {
  background-color: var(--sq-bg);
}

/* Sticky header: h-16 + stronger glass + white/10 border (HTML also sets h-16) */
header.sticky.top-0 {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
  background-color: color-mix(in oklab, var(--sq-bg) 88%, transparent) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

header.sticky .mx-auto.flex.h-16,
header.sticky .mx-auto.flex.h-14 {
  height: 4rem; /* force squadron h-16 even if a page missed the class swap */
}

/* Desktop nav: denser, weight 700, min-height 40px */
header nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  border-radius: 8px;
  padding-inline: 0.75rem;
}

header nav a:hover {
  background-color: rgba(255, 255, 255, 0.09);
  color: #fff;
}

/* Featured Planner pill — yellow border glow like squadron nav-link-featured */
.sq-nav-featured {
  color: #fff !important;
  background: rgba(250, 204, 21, 0.1) !important;
  border: 1px solid rgba(250, 204, 21, 0.34);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.08), 0 0 18px rgba(250, 204, 21, 0.12);
  font-weight: 800 !important;
}

.sq-nav-featured:hover,
.sq-nav-featured:focus-visible {
  color: #fff7bf !important;
  background: rgba(250, 204, 21, 0.18) !important;
  border-color: rgba(250, 204, 21, 0.68);
}

/* Primary CTA → squadron button-primary (yellow / near-black text / extrabold) */
.btn-primary {
  min-height: 44px;
  font-weight: 800;
  border-radius: 8px;
  background-color: var(--sq-accent) !important;
  color: #111113 !important;
  padding: 0.75rem 1rem;
}

.btn-primary:hover {
  background-color: #fde047 !important;
  transform: translateY(-1px);
}

.btn-outline {
  min-height: 44px;
  font-weight: 800;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.18);
  background-color: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.btn-outline:hover {
  border-color: rgba(250, 204, 21, 0.45);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Card chrome: denser panels, white/10 borders, darker surface */
.card,
.core-path-card {
  border-color: rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  background: linear-gradient(145deg, var(--sq-surface), color-mix(in oklab, var(--sq-surface-2) 55%, var(--sq-panel))) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.core-path-card {
  min-height: 220px;
  padding: 1.25rem !important;
}

.core-path-card:hover,
.card.group:hover {
  border-color: rgba(250, 204, 21, 0.35) !important;
}

.core-path-icon {
  border-radius: 8px;
  color: var(--sq-accent);
  background: rgba(250, 204, 21, 0.13);
}

.core-path-action {
  color: var(--sq-accent);
  font-weight: 800;
}

.core-path-grid {
  gap: 0.85rem;
}

/* Headings: extrabold wiki hub feel */
h1, h2, .font-black {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Soften muted text toward squadron muted */
.text-muted-foreground {
  color: var(--sq-muted);
}

/* Footer / section borders */
footer.border-t,
section.border-t,
.border-border {
  border-color: rgba(255, 255, 255, 0.1);
}

/* Search / icon buttons in header: darker panel */
header button {
  border-radius: 8px;
}

/* Chip / badge accents stay readable on darker panels */
.evidence-rail-dot {
  background: var(--sq-accent-2);
}

/* Selection like squadron */
::selection {
  background: rgba(250, 204, 21, 0.35);
  color: #fff;
}
