/* Footer styles for MiindPuzzleHub */

.mph-footer {
  background: #f7f1e8;
  border-top: 1px solid rgba(187, 160, 132, 0.35);
  color: #4f3827;
  margin-top: 3rem;
}

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

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

.mph-footer__logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: inherit;
  margin-bottom: 0.75rem;
}

.mph-footer__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #f3ebe1;
  border: 2px solid #bba084;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.mph-footer__logo-piece {
  position: absolute;
  width: 19px;
  height: 19px;
  border-radius: 6px;
}

.mph-footer__logo-piece--one {
  background: #8cb9a2;
  top: 4px;
  left: 4px;
}

.mph-footer__logo-piece--two {
  background: #9cc6e3;
  bottom: 4px;
  right: 4px;
}

.mph-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.mph-footer__site-name {
  font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.mph-footer__tagline {
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: #7b6650;
}

.mph-footer__description {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #6f5843;
}

/* Footer navigation */

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

.mph-footer__nav-title {
  margin: 0 0 0.6rem;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #4f3827;
}

.mph-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.mph-footer__nav-list a {
  font-size: 0.9rem;
  color: #6f5843;
  text-decoration: none;
}

.mph-footer__nav-list a:hover {
  color: #4f3827;
  text-decoration: underline;
}

.mph-footer__nav-list a:focus-visible {
  outline: 2px solid #9cc6e3;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Bottom bar */

.mph-footer__bottom {
  border-top: 1px solid rgba(187, 160, 132, 0.35);
  padding: 0.9rem 1rem 1.2rem;
}

.mph-footer__copyright {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: #7b6650;
}

/* Cookie banner */

.mph-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1200;
  background: rgba(40, 29, 21, 0.92);
  color: #fdf8f1;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out, visibility 0.25s ease-out;
}

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

.mph-cookie__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.mph-cookie__text {
  max-width: 760px;
}

.mph-cookie__title {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 600;
  color:#fff;
}

.mph-cookie__description {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.mph-cookie__link {
  font-size: 0.8rem;
  color: #f6d7ac;
}

.mph-cookie__link:hover {
  text-decoration: underline;
}

.mph-cookie__link:focus-visible {
  outline: 2px solid #f6d7ac;
  outline-offset: 2px;
  border-radius: 4px;
}

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

.mph-cookie__button {
  border-radius: 999px;
  border: none;
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f6d7ac;
  color: #281d15;
}

.mph-cookie__button--secondary {
  background: transparent;
  color: #fdf8f1;
  border: 1px solid rgba(245, 225, 196, 0.6);
}

.mph-cookie__button:hover {
  filter: brightness(1.05);
}

.mph-cookie__button:focus-visible {
  outline: 2px solid #f6d7ac;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .mph-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    padding-top: 2rem;
  }

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

  .mph-cookie__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .mph-cookie__actions {
    justify-content: flex-start;
  }
}

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

  .mph-cookie__inner {
    padding-inline: 0.85rem;
  }

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

  .mph-cookie__button,
  .mph-cookie__button--secondary {
    width: 100%;
    text-align: center;
  }
}
