/* Official FaxCore Brand Stylesheet */
:root {
  /* Official FaxCore Palette */
  --fxc-blue: #537DB5;        /* Logo Blue */
  --fxc-dark-blue: #0B3348;   /* Dark Blue */
  --fxc-white: #FFFFFF;       /* White */
  --fxc-dark-grey: #333333;   /* Dark Grey */
  --fxc-orange: #FF9326;      /* Orange Accent */

  --bs-primary: #537DB5;
  --bs-primary-rgb: 83, 125, 181;
  --bs-link-color: #537DB5;
  --bs-link-hover-color: #0B3348;
  --bs-body-color: #333333;
  --fxc-light: #f8fafc;
  --fxc-border: #e2e8f0;
}

[data-bs-theme="dark"] {
  --bs-primary: #6c95cc;
  --bs-primary-rgb: 108, 149, 204;
  --bs-link-color: #82a8dc;
  --bs-link-hover-color: #FF9326;
  --bs-body-color: #e2e8f0;
  --fxc-dark: #0f172a;
  --fxc-slate: #1e293b;
  --fxc-light: #1e293b;
  --fxc-border: #334155;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
  color: var(--bs-body-color);
}

/* Header & Navbar - FaxCore Dark Blue */
.navbar {
  background-color: var(--fxc-dark-blue) !important;
  box-shadow: 0 2px 4px 0 rgba(11, 51, 72, 0.15);
  border-bottom: 2px solid var(--fxc-blue) !important;
}

.navbar .navbar-brand,
.navbar .nav-link {
  color: #f8fafc !important;
  font-weight: 500;
}

.navbar .nav-link:hover {
  color: var(--fxc-orange) !important;
}

.navbar .navbar-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.navbar-brand img {
  height: 28px !important;
  margin-right: 12px;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--fxc-dark-blue);
  letter-spacing: -0.02em;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4 {
  color: #f1f5f9;
}

h1 {
  border-bottom: 2.5px solid var(--fxc-blue);
  padding-bottom: 0.4rem;
  margin-bottom: 1.5rem;
}

/* Callouts / Alerts */
.alert {
  border-radius: 8px;
  border-left-width: 5px;
}

.alert-tip, .alert-info {
  border-left-color: var(--fxc-blue);
  background-color: rgba(83, 125, 181, 0.08);
}

.alert-warning {
  border-left-color: var(--fxc-orange);
  background-color: rgba(255, 147, 38, 0.08);
}

/* Code blocks */
pre {
  border-radius: 8px;
  border: 1px solid var(--fxc-border);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Tables */
.table {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}

.table thead th {
  background-color: rgba(11, 51, 72, 0.06);
  color: var(--fxc-dark-blue);
  font-weight: 600;
  border-bottom: 2px solid var(--fxc-blue);
}

[data-bs-theme="dark"] .table thead th {
  background-color: rgba(83, 125, 181, 0.15);
  color: #e2e8f0;
}

/* Images & Screenshots */
article img {
  border-radius: 6px;
  border: 1px solid var(--fxc-border);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  margin: 1.2rem 0;
  max-width: 100%;
  height: auto;
}

/* Badges & Accent Buttons */
.badge-fxc {
  background-color: var(--fxc-blue);
  color: #fff;
  font-weight: 600;
  padding: 0.35em 0.65em;
  border-radius: 4px;
}

.btn-primary {
  background-color: var(--fxc-dark-blue);
  border-color: var(--fxc-dark-blue);
}

.btn-primary:hover {
  background-color: var(--fxc-blue);
  border-color: var(--fxc-blue);
}

/* Spruced-Up Next / Previous Article Pager Links (Full Interactive Hotspot Cards) */
#nextArticle {
  display: flex !important;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  margin-top: 48px;
  border-top: 2px solid var(--fxc-border) !important;
}

#nextArticle .prev,
#nextArticle .next {
  flex: 1;
  max-width: 48%;
  display: flex;
  flex-direction: column;
  background: var(--bs-body-bg);
  border: 1.5px solid var(--fxc-border);
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  cursor: pointer;
}

#nextArticle .next {
  margin-left: auto;
  text-align: right;
  align-items: flex-end;
}

#nextArticle .prev {
  text-align: left;
  align-items: flex-start;
}

#nextArticle .prev:hover,
#nextArticle .next:hover {
  border-color: var(--fxc-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(11, 51, 72, 0.08);
}

#nextArticle .prev:active,
#nextArticle .next:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(11, 51, 72, 0.06);
}

#nextArticle .prev:focus-within,
#nextArticle .next:focus-within {
  border-color: var(--fxc-orange);
  outline: 2px solid var(--fxc-blue);
  outline-offset: 2px;
}

#nextArticle span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--fxc-orange);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  transition: color 0.2s ease;
}

#nextArticle span i {
  font-size: 13px;
  display: inline-block;
  transition: transform 0.2s ease;
}

#nextArticle .prev:hover span i.bi-chevron-left {
  transform: translateX(-4px);
}

#nextArticle .next:hover span i.bi-chevron-right {
  transform: translateX(4px);
}

#nextArticle a {
  font-size: 15px;
  font-weight: 600;
  color: var(--fxc-dark-blue) !important;
  text-decoration: none !important;
  line-height: 1.35;
}

/* Stretched Hotspot: Expands the link hitbox over the entire card area including the < Previous / Next > labels */
#nextArticle .prev a::after,
#nextArticle .next a::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;
  cursor: pointer;
}

#nextArticle .prev:hover a,
#nextArticle .next:hover a {
  color: var(--fxc-blue) !important;
}

#nextArticle .prev:hover span,
#nextArticle .next:hover span {
  color: var(--fxc-dark-blue);
}

[data-bs-theme="dark"] #nextArticle .prev,
[data-bs-theme="dark"] #nextArticle .next {
  background: rgba(30, 41, 59, 0.7);
  border-color: #334155;
}

[data-bs-theme="dark"] #nextArticle a {
  color: #f1f5f9 !important;
}

[data-bs-theme="dark"] #nextArticle .prev:hover a,
[data-bs-theme="dark"] #nextArticle .next:hover a {
  color: #93c5fd !important;
}

[data-bs-theme="dark"] #nextArticle .prev:hover span,
[data-bs-theme="dark"] #nextArticle .next:hover span {
  color: #f8fafc;
}
