/* Footer styles for Marketlifepl */

.ml-footer {
  background: #020617;
  color: #e5e7eb;
  padding-top: 2.5rem;
  padding-bottom: 5.5rem;
  position: relative;
}

.ml-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.ml-footer__brand {
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
  padding-bottom: 1.75rem;
  margin-bottom: 1.75rem;
}

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

.ml-footer__logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: #0b1120;
}

.ml-footer__logo-text {
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: 1.05rem;
}

.ml-footer__tagline {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #9ca3af;
}

.ml-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

.ml-footer__column--newsletter {
  max-width: 320px;
}

.ml-footer__heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  margin-bottom: 0.7rem;
}

.ml-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ml-footer__link {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0;
  font-size: 0.9rem;
  color: #9ca3af;
  text-decoration: none;
}

.ml-footer__link:hover {
  color: #e5e7eb;
}

.ml-footer__link:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px #0b1120, 0 0 0 4px #38bdf8;
  border-radius: 999px;
}

.ml-footer__text {
  font-size: 0.9rem;
  color: #9ca3af;
  margin-bottom: 0.6rem;
}

.ml-footer__newsletter {
  max-width: 100%;
}

.ml-footer__newsletter-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ml-footer__newsletter-fieldwrap {
  display: flex;
  align-items: stretch;
  background-color: #020617;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  overflow: hidden;
}

.ml-footer__newsletter-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.55rem 0.7rem 0.55rem 0.9rem;
  font-size: 0.9rem;
  color: #e5e7eb;
  outline: none;
}

.ml-footer__newsletter-input::placeholder {
  color: #6b7280;
}

.ml-footer__newsletter-input:focus-visible ~ .ml-footer__newsletter-btn,
.ml-footer__newsletter-input:focus-visible,
.ml-footer__newsletter-fieldwrap:focus-within {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.ml-footer__newsletter-btn {
  border: none;
  padding: 0 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  color: #020617;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease;
}

.ml-footer__newsletter-btn:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
}

.ml-footer__newsletter-btn:active {
  transform: translateY(1px) scale(0.97);
}

.ml-footer__newsletter-btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px #0b1120, 0 0 0 4px #38bdf8;
}

.ml-footer__bottom {
  margin-top: 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.ml-footer__copyright {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Cookie banner */

.ml-cookie {
  position: fixed;
  inset-inline: 0.5rem;
  bottom: 0.75rem;
  z-index: 1100;
  display: none;
}

.ml-cookie--visible {
  display: block;
}

.ml-cookie__inner {
  max-width: 1200px;
  margin: 0 auto;
  background: #020617;
  color: #e5e7eb;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.6);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.75);
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.ml-cookie--visible .ml-cookie__inner {
  transform: translateY(0);
  opacity: 1;
}

.ml-cookie__text-block {
  flex: 1;
}

.ml-cookie__title {
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}

.ml-cookie__description {
  font-size: 0.85rem;
  color: #cbd5f5;
}

.ml-cookie__link {
  display: inline-flex;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #7dd3fc;
  text-decoration: underline;
}

.ml-cookie__link:hover {
  color: #bae6fd;
}

.ml-cookie__link:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px #020617, 0 0 0 4px #38bdf8;
  border-radius: 999px;
}

.ml-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.ml-cookie__btn {
  min-width: 7rem;
  font-size: 0.8rem;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.08s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.ml-cookie__btn--primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #022c22;
}

.ml-cookie__btn--primary:hover {
  box-shadow: 0 10px 26px rgba(22, 163, 74, 0.55);
}

.ml-cookie__btn--secondary {
  background-color: #020617;
  border-color: #4b5563;
  color: #e5e7eb;
}

.ml-cookie__btn--secondary:hover {
  background-color: #111827;
}

.ml-cookie__btn:active {
  transform: translateY(1px) scale(0.97);
}

.ml-cookie__btn:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px #020617, 0 0 0 4px #38bdf8;
}

@media (max-width: 960px) {
  .ml-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ml-footer__column--newsletter {
    grid-column: span 2;
  }

  .ml-cookie__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .ml-cookie__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .ml-footer {
    padding-top: 2rem;
    padding-bottom: 6rem;
  }

  .ml-footer__brand {
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
  }

  .ml-footer__grid {
    grid-template-columns: 1fr;
  }

  .ml-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .ml-cookie__inner {
    padding: 0.9rem 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ml-footer *,
  .ml-footer *::before,
  .ml-footer *::after,
  .ml-cookie *,
  .ml-cookie *::before,
  .ml-cookie *::after {
    transition: none !important;
  }
}
