/* Scoped footer styles for PL Trade Hub */

.pth-footer {
  background: #020617;
  color: #e2e8f0;
  padding-top: 2.5rem;
  padding-bottom: 4.5rem;
  margin-top: 3rem;
}

.pth-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem;
}

.pth-footer__brand {
  max-width: 420px;
}

.pth-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.pth-footer__logo-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #1d4ed8, #22c55e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
}

.pth-footer__brand-text {
  display: flex;
  flex-direction: column;
}

.pth-footer__brand-name {
  font-weight: 600;
  font-size: 1.05rem;
}

.pth-footer__brand-tagline {
  font-size: 0.8rem;
  color: #94a3b8;
}

.pth-footer__description {
  margin: 0;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.pth-footer__links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pth-footer__heading {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin: 0 0 0.75rem;
}

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

.pth-footer__link {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
  font-size: 0.9rem;
  color: #e2e8f0;
  text-decoration: none;
}

.pth-footer__link:hover {
  color: #ffffff;
}

.pth-footer__link:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 3px;
  border-radius: 4px;
}

.pth-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.pth-footer__copyright {
  margin: 0;
}

.pth-footer__meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.pth-footer__meta-item {
  white-space: nowrap;
}

.pth-footer__meta-separator {
  color: #334155;
}

/* Cookie banner */
.pth-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1200;
  padding: 0.75rem 0.75rem 0.9rem;
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 55%),
              radial-gradient(circle at top right, rgba(37, 99, 235, 0.22), transparent 60%),
              #020617;
  color: #e2e8f0;
  box-shadow: 0 -12px 30px rgba(15, 23, 42, 0.7);
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}

.pth-cookie--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.pth-cookie--hidden {
  transform: translateY(105%);
  opacity: 0;
  pointer-events: none;
}

.pth-cookie__content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1.1rem;
  background: rgba(15, 23, 42, 0.86);
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.pth-cookie__text {
  flex: 1 1 auto;
}

.pth-cookie__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.pth-cookie__description {
  margin: 0;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.pth-cookie__link {
  display: inline-flex;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #93c5fd;
  text-decoration: underline;
}

.pth-cookie__link:hover {
  color: #bfdbfe;
}

.pth-cookie__link:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 3px;
  border-radius: 4px;
}

.pth-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.pth-cookie__button {
  min-width: 9rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
}

.pth-cookie__button--primary {
  background: #22c55e;
  color: #022c22;
  border-color: rgba(22, 163, 74, 0.1);
}

.pth-cookie__button--primary:hover {
  background: #16a34a;
}

.pth-cookie__button--primary:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 3px;
}

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

.pth-cookie__button--secondary:hover {
  background: rgba(15, 23, 42, 0.8);
}

.pth-cookie__button--secondary:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 3px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .pth-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .pth-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pth-footer {
    padding-bottom: 4.75rem;
  }

  .pth-footer__inner {
    padding-inline: 1rem;
  }

  .pth-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pth-cookie__content {
    flex-direction: column;
    align-items: flex-start;
  }

  .pth-cookie__actions {
    width: 100%;
    justify-content: stretch;
  }

  .pth-cookie__button {
    flex: 1 1 0;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .pth-footer__links {
    grid-template-columns: minmax(0, 1fr);
  }

  .pth-cookie__content {
    padding-inline: 0.85rem;
  }
}
