/* ==========================================================================
   HAMCO Sports News - Footer
   4-column footer, social, tagline, cross-promo banner
   ========================================================================== */

/* ---- Cross-Promo Banner ---- */
.hn-cross-promo {
  background-color: var(--hn-red);
  color: var(--hn-white);
  padding: var(--hn-space-4) 0;
  text-align: center;
}

.hn-cross-promo__link {
  display: inline-flex;
  align-items: center;
  gap: var(--hn-space-2);
  font-family: var(--hn-font-ui);
  font-size: var(--hn-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hn-white);
  background-color: rgba(0, 0, 0, 0.2);
  padding: var(--hn-space-2) var(--hn-space-5);
  border-radius: var(--hn-radius-sm);
  transition: background-color var(--hn-transition-fast);
}

.hn-cross-promo__link:hover {
  background-color: rgba(0, 0, 0, 0.35);
}

.hn-cross-promo__link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* ---- Main Footer ---- */
.hn-footer-main {
  background-color: var(--hn-black);
  color: var(--hn-gray-400);
  padding: var(--hn-space-16) 0 0;
}

.hn-footer-main a {
  color: var(--hn-gray-400);
  transition: color var(--hn-transition-fast);
}

.hn-footer-main a:hover {
  color: var(--hn-white);
}

/* ---- Footer Grid ---- */
.hn-footer-main__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--hn-space-10);
  padding-bottom: var(--hn-space-12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---- Footer Column ---- */
.hn-footer-main__heading {
  font-family: var(--hn-font-subheading);
  font-size: var(--hn-text-lg);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hn-white);
  margin-bottom: var(--hn-space-5);
  padding-bottom: var(--hn-space-3);
  border-bottom: 2px solid var(--hn-red);
  display: inline-block;
}

/* ---- Footer Brand Column ---- */
.hn-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--hn-space-3);
  text-decoration: none;
}

.hn-footer-logo__text {
  font-family: var(--hn-font-headline);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hn-white);
  line-height: 1;
}

.hn-footer-logo__text span {
  color: var(--hn-red);
}

.hn-footer-main__tagline {
  font-family: var(--hn-font-ui);
  font-size: var(--hn-text-sm);
  color: var(--hn-gray-500);
  line-height: 1.6;
}

.hn-footer-main__description {
  font-size: var(--hn-text-sm);
  line-height: 1.7;
  color: var(--hn-gray-500);
}

/* ---- Footer Nav Links ---- */
.hn-footer-main__list {
  display: flex;
  flex-direction: column;
  gap: var(--hn-space-3);
}

.hn-footer-main__link {
  font-family: var(--hn-font-ui);
  font-size: var(--hn-text-sm);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: var(--hn-space-2);
}

.hn-footer-main__link::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background-color: var(--hn-red);
  border-radius: 50%;
  flex-shrink: 0;
}

.hn-footer-main__link:hover {
  color: var(--hn-white);
  transform: translateX(4px);
  transition: transform var(--hn-transition-fast), color var(--hn-transition-fast);
}

/* ---- Footer Social Icons ---- */
.hn-footer-social {
  display: flex;
  align-items: center;
  gap: var(--hn-space-3);
  margin-top: var(--hn-space-4);
}

.hn-footer-social__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: var(--hn-radius-sm);
  color: var(--hn-gray-500);
  transition: background-color var(--hn-transition-fast), color var(--hn-transition-fast);
}

.hn-footer-social__icon:hover {
  background-color: var(--hn-red);
  color: var(--hn-white);
}

.hn-footer-social__icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---- Newsletter (optional in footer) ---- */
.hn-footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: var(--hn-space-3);
}

.hn-footer-newsletter__label {
  font-size: var(--hn-text-sm);
  color: var(--hn-gray-500);
  line-height: 1.5;
}

.hn-footer-newsletter__form {
  display: flex;
  gap: 0;
}

.hn-footer-newsletter__input {
  flex: 1;
  font-family: var(--hn-font-body);
  font-size: var(--hn-text-sm);
  padding: var(--hn-space-3) var(--hn-space-4);
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--hn-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  border-radius: var(--hn-radius-sm) 0 0 var(--hn-radius-sm);
  outline: none;
  transition: border-color var(--hn-transition-fast);
}

.hn-footer-newsletter__input::placeholder {
  color: var(--hn-gray-600);
}

.hn-footer-newsletter__input:focus {
  border-color: var(--hn-red);
}

.hn-footer-newsletter__submit {
  font-family: var(--hn-font-ui);
  font-size: var(--hn-text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--hn-space-3) var(--hn-space-5);
  background-color: var(--hn-red);
  color: var(--hn-white);
  border-radius: 0 var(--hn-radius-sm) var(--hn-radius-sm) 0;
  transition: background-color var(--hn-transition-fast);
}

.hn-footer-newsletter__submit:hover {
  background-color: var(--hn-red-hover);
}

/* ---- Footer Bottom Bar ---- */
.hn-footer-bottom {
  background-color: var(--hn-black);
  padding: var(--hn-space-6) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hn-footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--hn-space-4);
}

.hn-footer-bottom__copyright {
  font-family: var(--hn-font-ui);
  font-size: var(--hn-text-xs);
  color: var(--hn-gray-600);
}

.hn-footer-bottom__legal {
  display: flex;
  align-items: center;
  gap: var(--hn-space-6);
}

.hn-footer-bottom__legal a {
  font-family: var(--hn-font-ui);
  font-size: var(--hn-text-xs);
  color: var(--hn-gray-600);
}

.hn-footer-bottom__legal a:hover {
  color: var(--hn-white);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hn-footer-main__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--hn-space-8);
  }
}

@media (max-width: 768px) {
  .hn-footer-main {
    padding-top: var(--hn-space-10);
  }

  .hn-footer-main__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }

  /* About column spans full width */
  .hn-footer-main__col--about {
    grid-column: 1 / -1;
  }

  /* Social/newsletter column spans full width */
  .hn-footer-main__col--social {
    grid-column: 1 / -1;
  }

  /* Trim the description on mobile */
  .hn-footer-main__description {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hn-footer-main__heading {
    font-size: 15px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .hn-footer-newsletter__form {
    flex-direction: column;
    gap: 8px;
  }

  .hn-footer-newsletter__input {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--hn-radius-sm);
    min-height: 44px;
  }

  .hn-footer-newsletter__submit {
    border-radius: var(--hn-radius-sm);
    min-height: 44px;
  }

  .hn-footer-social__icon {
    width: 44px;
    height: 44px;
  }

  .hn-footer-bottom__inner {
    flex-direction: column;
    text-align: center;
    gap: var(--hn-space-3);
  }

  .hn-footer-bottom__legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--hn-space-4);
  }

  .hn-cross-promo__link {
    font-size: 12px;
    padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .hn-footer-main__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hn-footer-main__col--about,
  .hn-footer-main__col--social {
    grid-column: 1;
  }

  /* Sports & Quick Links side by side even on small screens */
  .hn-footer-main__col--sports,
  .hn-footer-main__col--links {
    grid-column: 1;
  }

  .hn-footer-logo__text {
    font-size: 1.25rem;
  }

  .hn-footer-main__description {
    -webkit-line-clamp: 2;
  }

  .hn-footer-social {
    justify-content: center;
  }

  .hn-footer-bottom__legal {
    gap: 12px;
  }
}

/* ==========================================================================
   Additional Component Rules
   ========================================================================== */

/* ---- Site Footer Wrapper ---- */
.hn-site-footer {
  width: 100%;
  margin-top: auto;
}

/* ---- Cross-Promo Arrow Icon ---- */
.hn-cross-promo__arrow {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
  transition: transform var(--hn-transition-fast);
}

.hn-cross-promo__link:hover .hn-cross-promo__arrow {
  transform: translateX(4px);
}

/* ---- Footer Column Layout ---- */
.hn-footer-main__col {
  display: flex;
  flex-direction: column;
  gap: var(--hn-space-4);
}

.hn-footer-main__col--about {
  gap: var(--hn-space-4);
}

.hn-footer-main__col--sports {
  /* standard column */
}

.hn-footer-main__col--links {
  /* standard column */
}

.hn-footer-main__col--social {
  gap: var(--hn-space-5);
}

/* ---- Footer Bottom Link ---- */
.hn-footer-bottom__link {
  font-family: var(--hn-font-ui);
  font-size: var(--hn-text-xs);
  color: var(--hn-gray-600);
  transition: color var(--hn-transition-fast);
}

.hn-footer-bottom__link:hover {
  color: var(--hn-white);
}

/* ---- Footer Widget Areas ---- */
.hn-footer-widget {
  margin-top: var(--hn-space-4);
}

.hn-footer-widget--1,
.hn-footer-widget--2,
.hn-footer-widget--3,
.hn-footer-widget--4 {
  font-family: var(--hn-font-body);
  font-size: var(--hn-text-sm);
  color: var(--hn-gray-500);
  line-height: 1.6;
}
