/* Footer styles for PlayTimeHubPL */

.pth-footer {
  background: radial-gradient(circle at top left, #fff4db, #ffe6f3 40%, #e5f7ff 75%);
  padding-top: 2.5rem;
  color: #1b264f;
  border-top: 1px solid rgba(255, 204, 77, 0.4);
  position: relative;
}

.pth-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 2rem;
  align-items: flex-start;
}

.pth-footer-brand {
  max-width: 22rem;
}

.pth-footer-title {
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin: 0 0 0.4rem;
}

.pth-footer-tagline {
  margin: 0 0 0.65rem;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  color: #384f7c;
}

.pth-footer-contact {
  margin: 0;
  font-size: 0.92rem;
}

.pth-footer-contact a {
  color: #e07a5f;
  font-weight: 600;
  text-decoration-thickness: 0.12em;
}

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

.pth-footer-links-heading {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  margin: 0 0 0.5rem;
  color: #294b8a;
}

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

.pth-footer-links-list li + li {
  margin-top: 0.25rem;
}

.pth-footer-links-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  color: #384f7c;
  text-decoration: none;
}

.pth-footer-links-list a::before {
  content: '\25CF';
  font-size: 0.5rem;
  margin-right: 0.35rem;
  color: #ff9f68;
}

.pth-footer-links-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.08rem;
  width: 0;
  height: 0.12rem;
  border-radius: 999px;
  background: rgba(41, 75, 138, 0.6);
  transition: width 0.18s ease;
}

.pth-footer-links-list a:hover::after,
.pth-footer-links-list a:focus-visible::after {
  width: 100%;
}

.pth-footer-links-list a:focus-visible {
  outline: 2px solid #ff7eb3;
  outline-offset: 2px;
  border-radius: 0.4rem;
}

.pth-footer-bottom {
  border-top: 1px dashed rgba(27, 38, 79, 0.12);
  margin-top: 0.75rem;
}

.pth-footer-copy {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem 1.1rem;
  font-size: 0.86rem;
  color: #54658e;
}

/* Cookie banner */

.pth-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  display: none;
  padding: 0.75rem;
  pointer-events: none;
}

.pth-cookie-banner.is-visible {
  display: block;
}

.pth-cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.16);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  pointer-events: auto;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}

.pth-cookie-banner.is-visible .pth-cookie-inner {
  transform: translateY(0);
  opacity: 1;
}

.pth-cookie-banner.is-hidden .pth-cookie-inner {
  transform: translateY(120%);
  opacity: 0;
}

.pth-cookie-text {
  flex: 1 1 auto;
}

.pth-cookie-title {
  margin: 0 0 0.25rem;
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
}

.pth-cookie-description {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: #384f7c;
}

.pth-cookie-links {
  margin: 0;
  font-size: 0.85rem;
}

.pth-cookie-links a {
  color: #e07a5f;
  font-weight: 600;
}

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

.pth-cookie-btn {
  min-width: 8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.pth-cookie-btn-primary {
  background: linear-gradient(135deg, #8cd867, #2e9cf3);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(70, 179, 104, 0.45);
}

.pth-cookie-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(70, 179, 104, 0.55);
}

.pth-cookie-btn-secondary {
  background: #ffffff;
  border-color: rgba(41, 75, 138, 0.28);
  color: #294b8a;
}

.pth-cookie-btn-secondary:hover {
  background: #f5f7ff;
}

.pth-cookie-btn:focus-visible {
  outline: 2px solid #ff7eb3;
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .pth-footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .pth-footer-brand {
    max-width: none;
  }

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

  .pth-cookie-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .pth-footer-inner {
    padding-inline: 1rem;
  }

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

  .pth-cookie-inner {
    border-radius: 1rem;
    padding: 0.9rem 1rem 0.95rem;
  }
}

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

  .pth-cookie-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .pth-cookie-btn {
    width: 100%;
  }
}
