/* KitchenLabX Footer Styles */

.klx-footer {
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: #020617;
  color: #e5e7eb;
  padding-top: 2.5rem;
  padding-bottom: 3.25rem;
}

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

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

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

.klx-footer__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #b2f46b, #6fd41f);
  box-shadow: 0 6px 16px rgba(132, 204, 22, 0.45);
  position: relative;
}

.klx-footer__logo-mark::before,
.klx-footer__logo-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.98);
}

.klx-footer__logo-mark::before {
  width: 14px;
  height: 4px;
  top: 9px;
  left: 9px;
}

.klx-footer__logo-mark::after {
  width: 18px;
  height: 10px;
  border: 2px solid rgba(2, 6, 23, 0.98);
  border-top: none;
  bottom: 7px;
  left: 7px;
}

.klx-footer__logo-text {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #f9fafb;
}

.klx-footer__tagline {
  margin-top: 0.9rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  color: #9ca3af;
}

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

.klx-footer__heading {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e5e7eb;
  margin: 0 0 0.7rem;
}

.klx-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.klx-footer__link {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.93rem;
  color: #9ca3af;
  text-decoration: none;
}

.klx-footer__link:hover,
.klx-footer__link:focus-visible {
  color: #e5e7eb;
}

.klx-footer__link:focus-visible {
  outline: 2px solid #b2f46b;
  outline-offset: 3px;
  border-radius: 999px;
}

.klx-footer__bottom {
  max-width: 1200px;
  margin: 2.25rem auto 0;
  padding: 0 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding-top: 1.1rem;
}

.klx-footer__copy {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Cookie Banner */

.klx-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1100;
  pointer-events: none;
}

.klx-cookie__panel {
  max-width: 960px;
  margin: 0 auto 1.25rem;
  pointer-events: auto;
  background: #0b1120;
  color: #e5e7eb;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.6);
  transform: translateY(120%);
  opacity: 0;
  transition: opacity 0.22s ease-out, transform 0.22s ease-out;
}

.klx-cookie--visible .klx-cookie__panel {
  opacity: 1;
  transform: translateY(0);
}

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

.klx-cookie__content {
  padding: 1.1rem 1.25rem 1.1rem;
}

.klx-cookie__title {
  margin: 0 0 0.35rem;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  color: #f9fafb;
}

.klx-cookie__text {
  margin: 0 0 0.8rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #d1d5db;
}

.klx-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.klx-cookie__btn {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 999px;
  border: none;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
}

.klx-cookie__btn--primary {
  background: linear-gradient(135deg, #b2f46b, #6fd41f);
  color: #020617;
}

.klx-cookie__btn--primary:hover,
.klx-cookie__btn--primary:focus-visible {
  filter: brightness(0.95);
}

.klx-cookie__btn--secondary {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
}

.klx-cookie__btn--secondary:hover,
.klx-cookie__btn--secondary:focus-visible {
  background: rgba(15, 23, 42, 0.85);
}

.klx-cookie__btn:focus-visible {
  outline: 2px solid #b2f46b;
  outline-offset: 2px;
}

.klx-cookie__hint {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #9ca3af;
}

.klx-cookie__link {
  color: #e5e7eb;
}

.klx-cookie__link:hover,
.klx-cookie__link:focus-visible {
  color: #ffffff;
}

.klx-cookie__link:focus-visible {
  outline: 2px solid #b2f46b;
  outline-offset: 2px;
  border-radius: 999px;
}

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

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

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

  .klx-cookie__panel {
    margin-inline: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .klx-cookie__content {
    padding: 0.9rem 0.9rem 0.95rem;
  }

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

  .klx-cookie__btn {
    width: 100%;
    text-align: center;
  }
}

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