/* Oath Bringer Theme Colors */
:root {
  /* Primary colors */
  --ob-midnight-blue: #0B1F36;
  --ob-steel-gray: #3A4654;
  --ob-electric-teal: #2ED3C6;
  --ob-ember-gold: #F2B705;
  --ob-ink-black: #050A12;
  --ob-cloud-white: #F7F9FC;
  --ob-slate: #778899;
}

/* Dark theme (default) */
[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #0B1F36;
  --md-primary-fg-color--light: #142F4F;
  --md-primary-fg-color--dark: #050A12;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffffb3;

  --md-accent-fg-color: #2ED3C6;
  --md-accent-fg-color--transparent: #2ED3C61a;
  --md-accent-bg-color: #0B1F36;
  --md-accent-bg-color--light: #142F4F;

  --md-default-fg-color: rgba(255, 255, 255, 0.87);
  --md-default-fg-color--light: rgba(255, 255, 255, 0.54);
  --md-default-fg-color--lighter: rgba(255, 255, 255, 0.32);
  --md-default-fg-color--lightest: rgba(255, 255, 255, 0.07);

  --md-default-bg-color: #0B1F36;
  --md-default-bg-color--light: #142F4F;
  --md-default-bg-color--lighter: #1a3a5c;
  --md-default-bg-color--lightest: #3A4654;

  --md-code-fg-color: #e6edf3;
  --md-code-bg-color: #050A12;

  --md-code-hl-color: #2ED3C626;
  --md-code-hl-number-color: #F2B705;
  --md-code-hl-special-color: #2ED3C6;
  --md-code-hl-function-color: #2ED3C6;
  --md-code-hl-constant-color: #F2B705;
  --md-code-hl-keyword-color: #ff7b72;
  --md-code-hl-string-color: #a5d6ff;
  --md-code-hl-name-color: #ffa657;
  --md-code-hl-operator-color: #ff7b72;
  --md-code-hl-punctuation-color: #8b949e;
  --md-code-hl-comment-color: #8b949e;
  --md-code-hl-generic-color: #2ED3C6;
  --md-code-hl-variable-color: #ffa657;

  --md-typeset-color: rgba(255, 255, 255, 0.87);

  --md-typeset-a-color: #2ED3C6;

  --md-footer-fg-color: rgba(255, 255, 255, 0.65);
  --md-footer-fg-color--light: rgba(255, 255, 255, 0.45);
  --md-footer-fg-color--lighter: rgba(255, 255, 255, 0.25);
  --md-footer-bg-color: #050A12;
  --md-footer-bg-color--dark: #030508;
}

/* Light theme */
[data-md-color-scheme="default"] {
  --md-primary-fg-color: #0B1F36;
  --md-primary-fg-color--light: #142F4F;
  --md-primary-fg-color--dark: #050A12;
  --md-primary-bg-color: #ffffff;
  --md-primary-bg-color--light: #ffffffb3;

  --md-accent-fg-color: #1a9e94;
  --md-accent-fg-color--transparent: #1a9e941a;
  --md-accent-bg-color: #ffffff;
  --md-accent-bg-color--light: #F7F9FC;

  --md-typeset-a-color: #1a9e94;
}

/* Header styling */
.md-header {
  background: linear-gradient(135deg, #0B1F36 0%, #142F4F 100%);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.md-header__button.md-logo {
  padding: 0.2rem;
}

.md-header__button.md-logo img {
  height: 4.5rem;
}

/* Tabs styling */
.md-tabs {
  background: #050A12;
  border-bottom: 1px solid rgba(46, 211, 198, 0.1);
}

.md-tabs__link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s, border-color 0.2s;
}

.md-tabs__link:hover,
.md-tabs__link--active {
  color: #2ED3C6;
}

/* Hero section for home page - Parallax layered SVGs */
.md-main__inner {
  margin-top: 0;
}

.tx-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #050A12;
}

/* Hero layer base styles */
.tx-hero__layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
  transition: opacity 0.3s ease;
}

.tx-hero__layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  pointer-events: none;
  user-select: none;
}

/* Background layer - furthest back, slowest parallax */
.tx-hero__background {
  z-index: 1;
}

/* Clouds layer */
.tx-hero__clouds {
  z-index: 2;
}

/* Mountains layer - moves faster on scroll */
.tx-hero__mountains {
  z-index: 3;
}

/* Shield layer - foreground, starts at 75%, grows to 150% */
.tx-hero__shield {
  z-index: 4;
}

.tx-hero__shield img {
  object-fit: contain;
  transform: scale(0.75);
  transform-origin: center center;
}

/* Content section below hero */
.tx-content {
  position: relative;
  z-index: 10;
  background: linear-gradient(180deg, #050A12 0%, #0B1F36 100%);
  padding: 6rem 2rem;
  text-align: center;
}

.tx-content__inner {
  max-width: 800px;
  margin: 0 auto;
}

.tx-content__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #c8dce8 50%, #8fb8d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tx-content__tagline {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: #d4e5f0;
  margin-bottom: 0.5rem;
}

.tx-content__tagline--accent {
  color: #2ED3C6;
  font-weight: 600;
  letter-spacing: 0.15em;
}

.tx-content__buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.tx-content__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.tx-content__button--primary {
  background: linear-gradient(135deg, #2ED3C6 0%, #1fb8ac 100%);
  color: #050A12;
  box-shadow: 0 4px 20px rgba(46, 211, 198, 0.3);
}

.tx-content__button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(46, 211, 198, 0.4);
}

.tx-content__button--secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.tx-content__button--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(46, 211, 198, 0.5);
}

/* Feature cards */
.tx-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  background: #0B1F36;
}

.tx-feature {
  background: rgba(5, 10, 18, 0.6);
  border: 1px solid rgba(46, 211, 198, 0.1);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.2s ease;
}

.tx-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 211, 198, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.tx-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(46, 211, 198, 0.1);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  color: #2ED3C6;
}

.tx-feature__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.tx-feature__description {
  color: #94a3b8;
  line-height: 1.6;
}

/* Sidebar navigation */
.md-nav__link {
  transition: color 0.2s;
}

.md-nav__link:hover {
  color: #2ED3C6;
}

.md-nav__item--active > .md-nav__link {
  color: #2ED3C6;
  font-weight: 600;
}

/* Code blocks */
.highlight {
  border-radius: 0.5rem;
  overflow: hidden;
}

.highlight pre {
  border-left: 3px solid #2ED3C6;
}

/* Admonitions with Oath Bringer colors */
.md-typeset .admonition.note,
.md-typeset details.note {
  border-color: #2ED3C6;
}

.md-typeset .admonition.note > .admonition-title,
.md-typeset details.note > summary {
  background-color: rgba(46, 211, 198, 0.1);
}

.md-typeset .admonition.tip,
.md-typeset details.tip {
  border-color: #2ED3C6;
}

.md-typeset .admonition.warning,
.md-typeset details.warning {
  border-color: #F2B705;
}

.md-typeset .admonition.warning > .admonition-title,
.md-typeset details.warning > summary {
  background-color: rgba(242, 183, 5, 0.1);
}

/* Search */
.md-search__input {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
}

.md-search__input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Tables */
.md-typeset table:not([class]) {
  border-radius: 0.5rem;
  overflow: hidden;
}

.md-typeset table:not([class]) th {
  background: rgba(46, 211, 198, 0.1);
}

/* Buttons */
.md-typeset .md-button {
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.md-typeset .md-button--primary {
  background: linear-gradient(135deg, #2ED3C6 0%, #1fb8ac 100%);
  border-color: #2ED3C6;
  color: #050A12;
}

.md-typeset .md-button--primary:hover {
  background: linear-gradient(135deg, #3ee0d3 0%, #2ED3C6 100%);
  transform: translateY(-1px);
}

/* Footer */
.md-footer {
  background: linear-gradient(135deg, #050A12 0%, #0B1F36 100%);
  border-top: 1px solid rgba(46, 211, 198, 0.1);
}

.md-footer-meta {
  background: transparent;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #0B1F36;
}

::-webkit-scrollbar-thumb {
  background: #3A4654;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2ED3C6;
}

/* Selection */
::selection {
  background: rgba(46, 211, 198, 0.3);
  color: #ffffff;
}

/* Responsive adjustments */
@media screen and (max-width: 76.1875em) {
  .tx-content {
    padding: 4rem 1rem;
  }
}

@media screen and (max-width: 44.9375em) {
  .tx-hero {
    min-height: 500px;
    height: 80vh;
  }

  .tx-content__buttons {
    flex-direction: column;
    align-items: center;
  }

  .tx-content__button {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}
