/* ============================================
   HEADER — fixed, blur, bracket-frame brand
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--surface-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--accent-line-mid);
}

.header_inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 1.4rem var(--main-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ===== Logo — bracket-frame, mono uppercase =====
   Structure: [ <red-dot> 1XBET <blue>·HN</blue> ]
   ============================================ */
.header_logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0;
}

.header_logo::before {
  content: "[";
  color: var(--accent);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  margin-right: 0.3rem;
}

.header_logo::after {
  content: "]";
  color: var(--accent);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  margin-left: 0.3rem;
}

.header_logo > i {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--accent-2);
  margin-right: 0.45rem;
  box-shadow: 0 0 10px var(--accent-2-glow);
  animation: pulse_dot 1.8s ease-in-out infinite;
}

.header_logo > span {
  color: var(--accent);
  font-weight: 600;
  margin-left: 0.1rem;
}

.header_logo:hover {
  color: var(--text);
}

@keyframes pulse_dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(0.85); }
}

/* ===== Nav — mono caps, scanning underline =====
   wp_nav_menu output: descendant selectors handle both
   wrapped (<div><ul><li>) and unwrapped (<ul><li>) structures.
   ============================================ */
.header_nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header_nav ul {
  display: flex;
  align-items: center;
  gap: 2.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header_nav li {
  list-style: none;
}

.header_nav a {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.3rem 0.2rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.header_nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
  box-shadow: 0 0 8px var(--accent);
}

.header_nav a:hover {
  color: var(--accent);
}

.header_nav a:hover::after {
  width: 100%;
}

/* ===== Header CTA — bracket-corner variant ===== */
.header_cta_big {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.95rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--bg-dark);
  background: var(--accent);
  border: none;
  border-radius: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.header_cta_big::before,
.header_cta_big::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--accent);
  border-style: solid;
  transition: all 0.25s ease;
}

.header_cta_big::before {
  top: -3px;
  left: -3px;
  border-width: 2px 0 0 2px;
}

.header_cta_big::after {
  bottom: -3px;
  right: -3px;
  border-width: 0 2px 2px 0;
}

.header_cta_big:hover {
  background: var(--accent-bright);
  color: var(--bg-dark);
  box-shadow: 0 0 28px var(--accent-glow-strong);
}

.header_cta_big:hover::before,
.header_cta_big:hover::after {
  width: 14px;
  height: 14px;
  border-color: var(--accent-bright);
}

/* ===== Burger ===== */
.header_burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.5rem;
  width: 5rem;
  height: 5rem;
  padding: 0 1rem;
  background: transparent;
  border: 1px solid var(--accent-border);
  border-radius: 0;
  cursor: pointer;
}

.header_burger > span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--accent);
}

/* ===== Mobile menu (hidden on desktop) =====
   wp_nav_menu output: descendant selectors handle the WP markup.
   CTA (.header_mobile_cta) sits OUTSIDE wp_nav_menu — direct child of .header_mobile.
   ============================================ */
.header_mobile {
  display: none;
  flex-direction: column;
  gap: 0.8rem;
  padding: 2rem var(--main-padding);
  background: var(--surface-bg-strong);
  border-top: 1px solid var(--accent-line-soft);
}

.header_mobile ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.header_mobile li {
  list-style: none;
}

.header_mobile li a {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 3.4rem;
  font-weight: 500;
  color: var(--text);
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--accent-line);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header_mobile li:last-child a {
  border-bottom: none;
}

/* ============================================
   Mobile — ≤1024px
   ============================================ */
@media (max-width: 1024px) {
  .header_inner {
    padding: 2rem var(--main-padding);
  }

  .header_logo {
    font-size: 4.4rem;
  }

  .header_logo::before,
  .header_logo::after {
    font-size: 5rem;
  }

  .header_logo > i {
    width: 1.6rem;
    height: 1.6rem;
    margin-right: 0.8rem;
  }

  .header_nav {
    display: none;
  }

  .header_cta_big {
    display: none;
  }

  .header_burger {
    display: flex;
    width: 14rem;
    height: 14rem;
    gap: 1.4rem;
    padding: 0 3rem;
  }

  .header_burger > span {
    height: 4px;
  }

  /* ===== Mobile CTA — bracket-corner bright accent ===== */
  .header_mobile > a.header_mobile_cta {
    position: relative;
    margin-top: 1.6rem;
    padding: 2.4rem 2rem;
    color: var(--bg-dark);
    background: var(--accent);
    border-radius: 0;
    border-bottom: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    font-size: 4rem;
    box-shadow: 0 0 28px var(--accent-glow-strong);
    transition:
      background 0.25s ease,
      box-shadow 0.25s ease;
  }

  .header_mobile > a.header_mobile_cta::before,
  .header_mobile > a.header_mobile_cta::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: var(--accent);
    border-style: solid;
  }

  .header_mobile > a.header_mobile_cta::before {
    top: -4px;
    left: -4px;
    border-width: 3px 0 0 3px;
  }

  .header_mobile > a.header_mobile_cta::after {
    bottom: -4px;
    right: -4px;
    border-width: 0 3px 3px 0;
  }

  .header_mobile > a.header_mobile_cta:hover,
  .header_mobile > a.header_mobile_cta:active {
    background: var(--accent-bright);
    color: var(--bg-dark);
    box-shadow: 0 0 36px var(--accent-glow-bright);
  }
}
