/* Footer styles for BackpackTravelHub */

.bth-footer {
  background: var(--gray-900);
  color: #e5e7eb;
  padding-top: var(--space-10);
  padding-bottom: var(--space-10);
  margin-top: var(--space-12);
}

.bth-footer a {
  color: #e5e7eb;
}

.bth-footer a:hover {
  color: var(--color-sand);
}

.bth-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* Brand */
.bth-footer__brand {
  max-width: 420px;
}

.bth-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: inherit;
}

.bth-footer__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, var(--color-accent), #1f2937);
  box-shadow: var(--shadow-md);
}

.bth-footer__logo-mark i {
  color: #fff;
}

.bth-footer__text {
  display: flex;
  flex-direction: column;
}

.bth-footer__site-name {
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.bth-footer__tagline {
  font-size: var(--font-size-xs);
  color: var(--gray-300);
}

/* Grid */
.bth-footer__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-6);
}

.bth-footer__column {
  min-width: 0;
}

.bth-footer__heading {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
  color: #f9fafb;
}

.bth-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.bth-footer__list li + li {
  margin-top: 0.4rem;
}

.bth-footer__list a {
  font-size: var(--font-size-sm);
  color: var(--gray-200);
}

.bth-footer__list a:hover {
  color: var(--color-sand);
}

/* Bottom bar */
.bth-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: var(--space-4);
  font-size: var(--font-size-xs);
  color: var(--gray-300);
}

.bth-footer__copy {
  margin: 0;
}

.bth-footer__social {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.bth-footer__social a {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.7);
  color: #e5e7eb;
}

.bth-footer__social a:hover {
  background: var(--color-turquoise);
  color: #0b1120;
}

/* Cookie banner */
.bth-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: var(--space-3) var(--space-4);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.96));
  color: #f9fafb;
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.4);
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.bth-cookie--visible {
  transform: translateY(0);
  opacity: 1;
}

.bth-cookie__inner {
  width: 100%;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.bth-cookie__title {
  font-size: var(--font-size-base);
  margin-bottom: 0.25rem;
  color: #f9fafb;
}

.bth-cookie__description {
  font-size: var(--font-size-sm);
  color: var(--gray-200);
  margin-bottom: 0;
}

.bth-cookie__description a {
  color: var(--color-primary-soft);
  text-decoration: underline;
}

.bth-cookie__description a:hover {
  color: var(--color-sand);
}

.bth-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: var(--space-2);
}

.bth-cookie__button {
  border-radius: var(--radius-full);
  padding: 0.5rem 1.2rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
}

.bth-cookie__button--primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-turquoise));
  color: #ffffff;
}

.bth-cookie__button--primary:hover {
  box-shadow: var(--shadow-md);
}

.bth-cookie__button--secondary {
  background-color: transparent;
  color: #e5e7eb;
  border-color: rgba(148, 163, 184, 0.7);
}

.bth-cookie__button--secondary:hover {
  background-color: rgba(31, 41, 55, 0.9);
}

.bth-cookie__button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .bth-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .bth-cookie__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .bth-cookie__text {
    max-width: 70%;
  }

  .bth-cookie__actions {
    justify-content: flex-end;
  }
}

@media (max-width: 480px) {
  .bth-footer {
    padding-bottom: calc(var(--space-12) + 4rem);
  }
}
