/* Dev Logic header — global styles (avoids Blazor scoped CSS only applying to root) */
#dl-header {
  --dl-accent: #1d4ed8;
  --dl-bg: rgba(10, 15, 25, 0.55);
  --dl-bg-solid: rgba(10, 15, 25, 0.88);
  --dl-border: rgba(255, 255, 255, 0.08);
  --dl-text: rgba(255, 255, 255, 0.92);
  --dl-muted: rgba(255, 255, 255, 0.72);
  --dl-muted2: rgba(255, 255, 255, 0.58);
  --dl-surface: rgba(255, 255, 255, 0.06);
  --dl-surface2: rgba(255, 255, 255, 0.10);
}

.dl-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dl-bg);
  border-bottom: 1px solid var(--dl-border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 180ms ease, backdrop-filter 180ms ease;
}

.dl-header.is-scrolled {
  background: var(--dl-bg-solid);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.dl-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: padding 180ms ease;
}

.dl-header.is-scrolled .dl-header__inner {
  padding: 12px 28px;
}

.dl-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--dl-text);
  min-width: 260px;
}

.dl-brand:visited {
  color: var(--dl-text);
}

.dl-brand picture {
  display: block;
  line-height: 0;
}

.dl-brand__logo {
  width: 145px;
  height: 80px;
  max-width: 150px;
  max-height: 150px;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30);
}

.dl-brand__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.dl-brand__name {
  font-weight: 900;
  letter-spacing: 0.10em;
  font-size: 15px;
  opacity: 0.95;
}

.dl-brand__tag {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--dl-muted2);
}

.dl-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.dl-nav--desktop {
  flex: 1;
  justify-content: flex-end;
}

.dl-nav__link {
  position: relative;
  text-decoration: none;
  color: var(--dl-muted);
  font-weight: 650;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: color 160ms ease, background 160ms ease;
}

.dl-nav__link:visited {
  color: var(--dl-muted);
}

.dl-nav__link:hover {
  color: var(--dl-text);
  background: var(--dl-surface);
}

.dl-nav__link.active {
  color: var(--dl-text);
  background: rgba(29, 78, 216, 0.12);
}

.dl-nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--dl-accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
  opacity: 0.9;
}

.dl-nav__link:hover::after,
.dl-nav__link.active::after {
  transform: scaleX(1);
}

.dl-cta {
  position: relative;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--dl-accent);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.30);
  overflow: hidden;
  transition: transform 160ms ease, filter 160ms ease, box-shadow 160ms ease;
}

.dl-cta:visited {
  color: #fff;
}

.dl-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
}

.dl-cta:active {
  transform: translateY(0);
}

.dl-cta__shine {
  position: absolute;
  inset: -50% -70%;
  background: linear-gradient(120deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-35%);
  opacity: 0;
  transition: transform 650ms ease, opacity 180ms ease;
}

.dl-cta:hover .dl-cta__shine {
  transform: translateX(35%);
  opacity: 1;
}

.dl-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--dl-border);
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  transition: background 160ms ease;
}

.dl-burger:hover {
  background: rgba(255, 255, 255, 0.07);
}

.dl-burger__bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--dl-text);
  border-radius: 999px;
  opacity: 0.9;
}

.dl-mobile {
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 15, 25, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.dl-mobile__panel {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-mobile__link {
  text-decoration: none;
  color: var(--dl-muted);
  font-weight: 800;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.dl-mobile__link:visited {
  color: var(--dl-muted);
}

.dl-mobile__link:hover {
  color: var(--dl-text);
  background: var(--dl-surface);
  border-color: var(--dl-border);
}

.dl-mobile__link.active {
  color: var(--dl-text);
  background: rgba(29, 78, 216, 0.12);
  border-color: rgba(29, 78, 216, 0.20);
}

.dl-cta--mobile {
  margin-top: 6px;
  display: inline-flex;
  justify-content: center;
  padding: 12px 14px;
}

.dl-overlay {
  display: none;
}

.dl-overlay.is-open {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: -1;
}

@media (max-width: 920px) {
  .dl-nav--desktop {
    display: none;
  }
  .dl-burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .dl-mobile {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 240ms ease;
  }
  .dl-mobile.is-open {
    max-height: 520px;
  }
}

@media (max-width: 520px) {
  .dl-brand__tag {
    display: none;
  }
}
