/* Footer styles for GamerBoostHQPLL */
.gb-footer {
  background: linear-gradient(135deg, #fff7d6, #e8fbff);
  border-top: 2px solid rgba(255, 215, 74, 0.7);
  padding-top: 2.5rem;
  padding-bottom: 5.5rem; /* space for cookie banner on small screens */
  font-family: "Fredoka", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gb-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.gb-footer__brand {
  max-width: 360px;
}

.gb-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  margin-bottom: 0.75rem;
}

.gb-footer__logo-mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffd74a, #02bfbf);
  font-size: 1.35rem;
}

.gb-footer__logo-text {
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: #1b2845;
}

.gb-footer__logo-text span {
  color: #02bfbf;
}

.gb-footer__tagline {
  margin: 0;
  font-size: 0.95rem;
  color: #374060;
}

.gb-footer__heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1b2845;
}

.gb-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
}

.gb-footer__links a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #374060;
  padding: 0.15rem 0;
  border-radius: 0.75rem;
  transition: color 0.16s ease, background-color 0.16s ease, padding-left 0.12s ease;
}

.gb-footer__links a:hover,
.gb-footer__links a:focus-visible {
  color: #e04545;
  background-color: rgba(255, 215, 74, 0.4);
  padding-left: 0.35rem;
  outline: none;
}

.gb-footer__links a:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 191, 191, 0.6);
}

.gb-footer__bottom {
  border-top: 1px dashed rgba(27, 40, 69, 0.18);
  padding: 1rem;
  text-align: center;
}

.gb-footer__copyright {
  margin: 0;
  font-size: 0.85rem;
  color: #59627e;
}

/* Cookie banner */
.gb-cookie {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  max-width: 1120px;
  margin-inline: auto;
  background-color: #ffffff;
  border-radius: 1rem;
  border: 2px solid #ffd74a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  z-index: 1200;
  transform: translateY(120%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
}

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

.gb-cookie--hiding {
  transform: translateY(120%);
  opacity: 0;
}

.gb-cookie__inner {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr);
  gap: 1.25rem;
  padding: 1rem 1.1rem 1.05rem;
}

.gb-cookie__title {
  margin: 0 0 0.4rem;
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #1b2845;
}

.gb-cookie__desc,
.gb-cookie__more {
  margin: 0;
  font-size: 0.85rem;
  color: #374060;
}

.gb-cookie__more {
  margin-top: 0.35rem;
}

.gb-cookie__more a {
  color: #e04545;
  text-decoration: underline;
}

.gb-cookie__actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: stretch;
  justify-content: center;
}

.gb-cookie__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: "Fredoka", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease, border-color 0.18s ease;
}

.gb-cookie__btn--primary {
  background-color: #02bfbf;
  border-color: #02bfbf;
  color: #ffffff;
}

.gb-cookie__btn--secondary {
  background-color: #ffffff;
  border-color: #ff7f7f;
  color: #e04545;
}

.gb-cookie__btn:hover,
.gb-cookie__btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.gb-cookie__btn--primary:hover {
  background-color: #019595;
}

.gb-cookie__btn--secondary:hover {
  background-color: #ffe3e3;
}

.gb-cookie__btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 191, 191, 0.6);
}

@media (max-width: 768px) {
  .gb-footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 1.75rem;
  }

  .gb-footer__brand {
    grid-column: 1 / -1;
  }

  .gb-cookie {
    inset-inline: 0.5rem;
  }

  .gb-cookie__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .gb-cookie__actions {
    flex-direction: row;
  }
}

@media (max-width: 520px) {
  .gb-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .gb-footer {
    padding-bottom: 6rem;
  }

  .gb-cookie {
    inset-inline: 0.5rem;
    bottom: 0.5rem;
  }

  .gb-cookie__actions {
    flex-direction: column;
  }
}
