/* Modern reusable footer (BL)
   - Intentionally avoids Tailwind dependencies
   - Uses high-specificity selectors to win against legacy styles
*/

:root {
  --bl-emerald: #10b981;
  --bl-emerald-2: #34d399;
  --bl-bg: #000000;
  --bl-panel: rgba(255, 255, 255, 0.06);
  --bl-border: rgba(255, 255, 255, 0.10);
  --bl-text: rgba(255, 255, 255, 0.92);
  --bl-muted: rgba(255, 255, 255, 0.65);
  --bl-faint: rgba(255, 255, 255, 0.40);
}

/* Hard override against theme/legacy footer rules */
footer.bl-footer {
  background: var(--bl-bg) !important;
  color: var(--bl-text);
  position: relative;
  overflow: hidden;
  width: 100%;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(16, 185, 129, 0.10), transparent 45%),
    radial-gradient(circle at 80% 100%, rgba(16, 185, 129, 0.08), transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  animation: blFooterPattern 18s linear infinite;
}

@keyframes blFooterPattern {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }
  100% {
    background-position: 0 0, 0 0, 44px 44px, -44px 44px;
  }
}

footer.bl-footer * {
  box-sizing: border-box;
}

footer.bl-footer a {
  color: var(--bl-muted);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

footer.bl-footer a:hover {
  color: var(--bl-emerald);
}

footer.bl-footer .bl-footer__border {
  border-top: 1px solid rgba(16, 185, 129, 0.18);
}

footer.bl-footer .bl-footer__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

footer.bl-footer .bl-footer__glow {
  position: absolute;
  border-radius: 9999px;
  filter: blur(110px);
  opacity: 0.75;
  animation: blGlowFloat 10s ease-in-out infinite;
}

@keyframes blGlowFloat {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(14px, -10px, 0) scale(1.04);
  }
}

footer.bl-footer .bl-footer__glow--tl {
  width: 420px;
  height: 420px;
  left: -160px;
  top: -160px;
  background: rgba(16, 185, 129, 0.12);
}

footer.bl-footer .bl-footer__glow--br {
  width: 560px;
  height: 560px;
  right: -220px;
  bottom: -220px;
  background: rgba(16, 185, 129, 0.10);
}

footer.bl-footer .bl-footer__container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 28px;
}

footer.bl-footer .bl-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  footer.bl-footer .bl-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}

@media (min-width: 1024px) {
  footer.bl-footer .bl-footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
    gap: 52px;
  }
}

footer.bl-footer .bl-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

footer.bl-footer .bl-footer__logoWrap {
  padding: 10px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.20);
  border-radius: 14px;
}

footer.bl-footer .bl-footer__logo {
  height: 34px;
  width: auto;
  display: block;
}

footer.bl-footer .bl-footer__brandTitle {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

footer.bl-footer .bl-footer__brandTitle span {
  color: var(--bl-emerald);
}

footer.bl-footer .bl-footer__tagline {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(16, 185, 129, 0.65);
  margin-top: 6px;
}

footer.bl-footer .bl-footer__about {
  color: var(--bl-muted);
  font-size: 13px;
  line-height: 1.75;
  max-width: 360px;
  margin: 16px 0 0;
}

footer.bl-footer .bl-footer__social {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

footer.bl-footer .bl-footer__socialLink {
  width: 42px;
  height: 42px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

footer.bl-footer .bl-footer__socialLink:hover {
  background: rgba(16, 185, 129, 0.92);
  border-color: rgba(16, 185, 129, 0.92);
  transform: translateY(-1px);
}

footer.bl-footer .bl-footer__socialIcon {
  color: rgba(255, 255, 255, 0.70);
}

footer.bl-footer .bl-footer__socialLink:hover .bl-footer__socialIcon {
  color: #ffffff;
}

footer.bl-footer .bl-footer__sectionTitle {
  margin: 0 0 12px;
  font-weight: 800;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

footer.bl-footer .bl-footer__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: var(--bl-emerald);
}

footer.bl-footer .bl-footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

footer.bl-footer .bl-footer__links a,
footer.bl-footer .bl-footer__link {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: 0;
}

footer.bl-footer .bl-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

footer.bl-footer .bl-footer__linkDash {
  width: 0;
  height: 1px;
  background: var(--bl-emerald);
  transition: width 180ms ease;
}

footer.bl-footer .bl-footer__link:hover .bl-footer__linkDash {
  width: 16px;
}

footer.bl-footer .bl-footer__newsletterText {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--bl-muted);
  line-height: 1.6;
}

footer.bl-footer .bl-footer__form {
  position: relative;
}

footer.bl-footer .bl-footer__input {
  width: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 46px 14px 14px;
  color: #ffffff;
  outline: none;
}

footer.bl-footer .bl-footer__input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

footer.bl-footer .bl-footer__input:focus {
  border-color: rgba(16, 185, 129, 0.55);
  box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.10);
}

footer.bl-footer .bl-footer__submit {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.95);
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

footer.bl-footer .bl-footer__submit:hover {
  background: rgba(16, 185, 129, 1);
}

footer.bl-footer .bl-footer__note {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--bl-faint);
  line-height: 1.4;
  font-style: italic;
}

footer.bl-footer .bl-footer__bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  footer.bl-footer .bl-footer__bottom {
    flex-direction: row;
  }
}

footer.bl-footer .bl-footer__copyright {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

footer.bl-footer .bl-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

footer.bl-footer .bl-footer__legal a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
}

footer.bl-footer .bl-footer__legal a:hover {
  color: #ffffff;
}
