/* ─── Shared components: site header, mobile menu, common footer tagline ─── */

/* ─── Site header ─── */
.site-header {
  position: relative;
  z-index: 5;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 40px;
  max-width: var(--content-max);
  margin: 0 auto;
}

.site-header__logo img {
  height: 200px;
  width: auto;
}

.site-header__nav {
  display: flex;
  gap: 12px;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}

.site-header__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-paper);
  border: 2px solid var(--color-black);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.9);
  color: var(--color-black);
  font-family: var(--font-action);
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.site-header__link:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.9);
}

.site-header__link--active {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red-dark);
}

.site-header__link--active strong {
  color: var(--color-white);
}

.site-header__link strong {
  color: var(--color-red);
}

.site-header__join {
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.site-header__join img {
  height: 48px;
  width: auto;
}

.site-header__join:hover {
  transform: translate(3px, 3px);
}

.site-header__signin {
  font-family: var(--font-action);
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  text-decoration: none;
  color: #4df0ff;
  padding: 8px 16px;
  border: 2px solid #4df0ff;
  border-radius: 4px;
  text-shadow: 0 0 8px #4df0ff, 0 0 20px #4df0ff;
  box-shadow: 0 0 8px #4df0ff, inset 0 0 8px rgba(77, 240, 255, 0.15);
  animation: neon-flash 2s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@keyframes neon-flash {
  0%, 100% {
    color: #4df0ff;
    border-color: #4df0ff;
    text-shadow: 0 0 8px #4df0ff, 0 0 20px #4df0ff;
    box-shadow: 0 0 8px #4df0ff, inset 0 0 8px rgba(77, 240, 255, 0.15);
  }
  50% {
    color: #ff6ef0;
    border-color: #ff6ef0;
    text-shadow: 0 0 8px #ff6ef0, 0 0 20px #ff6ef0;
    box-shadow: 0 0 8px #ff6ef0, inset 0 0 8px rgba(255, 110, 240, 0.15);
  }
}

.site-header__signin:hover {
  color: #fff;
  text-shadow: 0 0 12px #fff, 0 0 30px #4df0ff;
  border-color: #fff;
  box-shadow: 0 0 12px #fff, inset 0 0 12px rgba(255, 255, 255, 0.2);
  animation: none;
}

.hamburger,
.mobile-cta {
  display: none;
}

/* ─── Mobile dropdown menu ─── */
.mobile-menu {
  display: none;
}

/* ─── Site footer ─── */
.site-footer {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 48px 40px 40px;
  text-align: center;
}

.site-footer__tagline {
  margin: 0 0 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  color: var(--color-white);
  font-family: var(--font-action);
  font-size: clamp(22px, 2.4vw, 39px);
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0.015em;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 var(--color-black);
}

.site-footer__tagline strong {
  color: var(--color-red);
  -webkit-text-stroke: 1px var(--color-black);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.site-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--color-paper);
  border: 2px solid var(--color-black);
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.9);
  color: var(--color-black);
  font-family: var(--font-action);
  font-size: 14px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.site-footer__link:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 2px 0 rgba(0, 0, 0, 0.9);
}

.site-footer__link strong {
  color: var(--color-red);
}

/* ─── Mobile footer ─── */
@media (max-width: 768px) {
  .site-footer {
    padding: 32px 20px 28px;
  }

  .site-footer__tagline {
    flex-direction: column;
    gap: 4px;
    font-size: clamp(20px, 5vw, 30px);
    margin-bottom: 28px;
  }

  .site-footer__nav {
    flex-direction: column;
    gap: 12px;
  }

  .site-footer__link {
    width: 100%;
    justify-content: center;
    font-size: 15px;
  }
}

/* ─── Responsive mobile header ─── */
@media (max-width: 768px) {
  .site-header__nav,
  .site-header__join,
  .site-header__signin {
    display: none;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
  }

  .hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-white);
    border-radius: 2px;
  }

  .mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    padding: 10px 18px;
    background: var(--color-red);
    color: var(--color-white);
    font-family: var(--font-action);
    font-size: 16px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none;
    z-index: 2;
  }

  .mobile-cta strong {
    color: var(--color-white);
  }

  .site-header__inner {
    padding: 16px 20px;
  }

  .site-header__logo {
    order: 2;
  }

  .site-header__logo img {
    height: 90px;
  }

  .hamburger {
    order: 1;
  }

  .mobile-cta {
    order: 3;
  }

  .mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--color-black);
    border-bottom: 3px solid var(--color-red);
    padding: 16px 24px;
    gap: 8px;
  }

  .mobile-menu__link {
    color: var(--color-white);
    font-family: var(--font-action);
    font-size: 18px;
    font-weight: 900;
    font-style: italic;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .mobile-menu__link:last-child {
    border-bottom: none;
  }
}
