/* Footer styles for Poland Bazaar */

.pb-footer {
  background-color: #0b1120;
  color: #e5e7eb;
  padding: 2.5rem 1rem 2rem;
  border-top: 1px solid #111827;
  position: relative;
}

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

.pb-footer__brand-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.pb-footer__logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 0.75rem;
  background: radial-gradient(circle at 25% 25%, #f97373, #b91c1c 55%, #7f1d1d 100%);
}

.pb-footer__site-name {
  display: block;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: #f9fafb;
}

.pb-footer__tagline {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: #9ca3af;
}

.pb-footer__trust {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #9ca3af;
}

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

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

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

.pb-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #9ca3af;
  text-decoration: none;
  padding: 0.25rem 0;
  border-radius: 0.25rem;
  transition: color 0.16s ease, background-color 0.16s ease, transform 0.12s ease;
}

.pb-footer__link::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background-color: #ef4444;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.pb-footer__link:hover,
.pb-footer__link:focus-visible {
  color: #f9fafb;
  background-color: rgba(249, 115, 129, 0.08);
  outline: none;
}

.pb-footer__link:hover::before,
.pb-footer__link:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.pb-footer__link:focus-visible {
  box-shadow: 0 0 0 2px #fecaca;
}

.pb-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid #111827;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pb-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
}

.pb-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pb-footer__bottom-link {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: none;
  padding: 0.15rem 0.25rem;
  border-radius: 0.25rem;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.pb-footer__bottom-link:hover,
.pb-footer__bottom-link:focus-visible {
  color: #f9fafb;
  background-color: rgba(249, 115, 129, 0.08);
  outline: none;
}

.pb-footer__bottom-link:focus-visible {
  box-shadow: 0 0 0 2px #fecaca;
}

/* Cookie banner */
.pb-cookie {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  z-index: 1050;
  max-width: 1200px;
  margin-inline: auto;
  background-color: #020617;
  color: #e5e7eb;
  border-radius: 0.75rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.8);
  border: 1px solid #1f2937;
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.22s ease-out, opacity 0.22s ease-out, visibility 0.22s ease-out;
}

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

.pb-cookie--hidden {
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
}

.pb-cookie__content {
  padding: 1rem 1rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.pb-cookie__text {
  flex: 1 1 auto;
  min-width: 0;
}

.pb-cookie__title {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.pb-cookie__description {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #d1d5db;
}

.pb-cookie__link {
  color: #f97373;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.pb-cookie__link:hover,
.pb-cookie__link:focus-visible {
  color: #fecaca;
  outline: none;
}

.pb-cookie__actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex-shrink: 0;
}

.pb-cookie__btn {
  min-width: 9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.pb-cookie__btn--secondary {
  background-color: #020617;
  color: #e5e7eb;
  border-color: #374151;
}

.pb-cookie__btn--secondary:hover,
.pb-cookie__btn--secondary:focus-visible {
  background-color: #020617;
  border-color: #4b5563;
  box-shadow: 0 0 0 2px #0f172a, 0 0 0 4px #f97373;
  outline: none;
}

.pb-cookie__btn--primary {
  background: linear-gradient(135deg, #f97373, #b91c1c);
  color: #f9fafb;
  box-shadow: 0 10px 25px rgba(185, 28, 28, 0.45);
}

.pb-cookie__btn--primary:hover,
.pb-cookie__btn--primary:focus-visible {
  background: linear-gradient(135deg, #fb7185, #991b1b);
  box-shadow: 0 12px 30px rgba(185, 28, 28, 0.6);
  outline: none;
}

@media (max-width: 768px) {
  .pb-footer {
    padding-top: 2rem;
  }

  .pb-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

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

  .pb-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .pb-cookie__content {
    flex-direction: column;
  }

  .pb-cookie__actions {
    flex-direction: row;
    width: 100%;
    justify-content: flex-end;
  }

  .pb-cookie__btn {
    flex: 1 1 auto;
  }
}

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

  .pb-cookie__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pb-cookie__btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-footer *,
  .pb-footer *::before,
  .pb-footer *::after,
  .pb-cookie *,
  .pb-cookie *::before,
  .pb-cookie *::after {
    transition: none !important;
    animation-duration: 0.01ms !important;
  }
}