/* Custom styles to override theme defaults */

/* Active menu item styling - increased specificity to override theme */
.navigation-menu a.active,
.navigation-menu__inner a.active,
.menu__dropdown a.active {
  color: var(--accent) !important;
  font-weight: bold !important;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Ensure active styling persists on hover */
.navigation-menu a.active:hover,
.navigation-menu__inner a.active:hover,
.menu__dropdown a.active:hover {
  color: var(--accent) !important;
  font-weight: bold !important;
}

/* Logo SVG color inheritance fix */
.logo-slash-svg {
  color: inherit; /* Explicitly inherit color from parent .logo-slash */
  width: 100%;
  height: 100%;
  display: block;
}

.logo-slash svg {
  color: inherit;
}

.logo-slash svg line {
  stroke: currentColor;
}

/* Base Logo container */
.logo {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  background: transparent;
  color: var(--background);
  font-weight: bold;
  padding: 0;
  height: 40px;
  position: relative;
}

/* Logo Slashes - ensure color is set */
.logo-slash {
  display: flex;
  align-items: center;
  height: 100%;
  width: 20px;
  text-decoration: none;
  transition: color 0.2s ease, filter 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  color: #888; /* Gray by default, same as colons */
}

.logo-slash-forward {
  color: #888;
}

.logo-slash-backward {
  color: #888;
}

/* Logo Colons */
.logo-colon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 4px;
}

.logo-colon-right {
  padding-right: 12px;
}

.logo-dot {
  display: block;
  width: 6px;
  height: 6px;
  background-color: #888;
  border-radius: 0;
  flex-shrink: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Large Logo Variant (for home page) */
.logo-large {
  height: 240px;
  gap: 12px;
  margin: 40px auto;
}

.logo-large .logo-colon {
  padding: 0 16px;
  gap: 40px;
}

.logo-large .logo-colon-left {
  padding-left: 80px;
}

.logo-large .logo-colon-right {
  padding-right: 80px;
}

.logo-large .logo-dot {
  width: 24px;
  height: 24px;
}

.logo-large .logo-slash {
  width: 80px;
}

/* Hover effects for logo slashes */
.logo:has(.logo-slash-forward:hover) .logo-slash-forward {
  color: #fb923c; /* Orange */
  filter: brightness(1.2);
  transform: scale(1.05);
}

.logo:has(.logo-slash-backward:hover) .logo-slash-backward {
  color: #22c55e; /* Bright happy green */
  filter: brightness(1.2);
  transform: scale(1.05);
}

/* Highlight left colon (orange) when forward slashes are hovered */
.logo:has(.logo-slash-forward:hover) .logo-colon-left .logo-dot {
  background-color: #fb923c; /* Orange */
  transform: scale(1.1);
}

/* Highlight right colon (green) when backward slashes are hovered */
.logo:has(.logo-slash-backward:hover) .logo-colon-right .logo-dot {
  background-color: #22c55e; /* Bright happy green */
  transform: scale(1.1);
}

/* Home page content centering */
.index-content {
  margin: 25px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.index-content .logo-large {
  margin: 40px 0;
}

/* HR elements with arrow brackets - developing in all directions */
hr {
  position: relative;
  margin: 20px 0;
}

hr::before {
  content: "<";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
  z-index: 1;
}

hr::after {
  content: ">";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2em;
  line-height: 1;
  z-index: 1;
}

/* Special cases - ensure arrows match HR color */
.footnotes hr::before,
.footnotes hr::after {
  color: color-mix(in srgb, var(--foreground) 50%, transparent);
}

.pagination__title hr::before,
.pagination__title hr::after {
  color: var(--accent);
}

