/* ChickToy Footer Styles */

.ct-footer {
  background: linear-gradient(180deg, #fff7e0, #ffe0f0);
  border-top: 2px solid rgba(255, 180, 100, 0.5);
  margin-top: 2.5rem;
  color: #3a2648;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

/* Brand */

.ct-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.ct-footer__logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff7c2, #ffd85a);
  box-shadow: 0 2px 4px rgba(255, 178, 52, 0.4);
}

.ct-footer__site-name {
  font-family: "Baloo 2", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #3c2a4d;
}

.ct-footer__tagline {
  margin-top: 0.6rem;
  max-width: 22rem;
  font-size: 0.95rem;
  color: #5a4967;
}

/* Nav */

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

.ct-footer__nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #3c2a4d;
  margin-bottom: 0.6rem;
}

.ct-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ct-footer__nav-list li + li {
  margin-top: 0.35rem;
}

.ct-footer__nav-list a {
  text-decoration: none;
  font-size: 0.95rem;
  color: #5a4967;
  padding: 0.15rem 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  transition: color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.ct-footer__nav-list a::before {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  margin-right: 0.4rem;
  color: #f18d96;
}

.ct-footer__nav-list a:hover,
.ct-footer__nav-list a:focus-visible {
  color: #321b45;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
  outline: none;
}

/* Contact / support */

.ct-footer__contact-text {
  font-size: 0.95rem;
  color: #5a4967;
  margin-bottom: 0.75rem;
}

.ct-footer__support-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background-color: #fff;
  color: #3c2a4d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ct-footer__support-link i {
  color: #ff7dab;
}

.ct-footer__support-link:hover,
.ct-footer__support-link:focus-visible {
  background-color: #ffeef8;
  box-shadow: 0 3px 6px rgba(255, 125, 171, 0.35);
  transform: translateY(-1px);
  outline: none;
}

/* Bottom */

.ct-footer__bottom {
  border-top: 1px solid rgba(255, 170, 120, 0.5);
  margin-top: 1.25rem;
  padding: 0.75rem 1rem 1.25rem;
}

.ct-footer__copy {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.85rem;
  color: #6b5977;
  text-align: center;
}

/* Cookie banner */

.ct-cookie {
  position: fixed;
  inset-inline: 0.5rem;
  bottom: 0.5rem;
  z-index: 1100;
  max-width: 40rem;
  margin-inline: auto;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.ct-cookie--hidden {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.ct-cookie__inner {
  background-color: #3c2a4d;
  color: #fdf7ff;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  padding: 1rem 1rem 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1rem;
}

.ct-cookie__text {
  flex: 2 1 14rem;
}

.ct-cookie__title {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.ct-cookie__description {
  font-size: 0.9rem;
  margin: 0 0 0.35rem;
}

.ct-cookie__link {
  font-size: 0.85rem;
  color: #ffe764;
  text-decoration: underline;
}

.ct-cookie__link:hover,
.ct-cookie__link:focus-visible {
  color: #fffb9f;
  outline: none;
}

.ct-cookie__actions {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: stretch;
}

.ct-cookie__btn {
  border-radius: 999px;
  border: none;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

.ct-cookie__btn:focus-visible {
  outline: 2px solid #fffb9f;
  outline-offset: 2px;
}

.ct-cookie__btn--primary {
  background-color: #ffe764;
  color: #3c2a4d;
}

.ct-cookie__btn--primary:hover {
  background-color: #fffb9f;
}

.ct-cookie__btn--secondary {
  background-color: transparent;
  color: #fffbff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.ct-cookie__btn--secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

@media (max-width: 960px) {
  .ct-footer__inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr);
  }

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

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

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

@media (max-width: 560px) {
  .ct-footer__nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .ct-cookie {
    inset-inline: 0.75rem;
    bottom: 0.75rem;
  }

  .ct-cookie__inner {
    flex-direction: column;
  }

  .ct-cookie__actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .ct-cookie__btn {
    flex: 1 1 0;
  }
}
