/* Footer styles for DailyKidsWear */

.dk-footer {
  background: linear-gradient(180deg, #f7f9ff 0%, #fef5f8 60%, #fffaf4 100%);
  border-top: 1px solid rgba(210, 217, 235, 0.8);
  margin-top: 3rem;
  position: relative;
}

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

.dk-footer__brand {
  max-width: 320px;
}

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

.dk-footer__logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 45% 55% 40% 60%;
  background: radial-gradient(circle at 30% 30%, #e1f6ff, #8bc5ff 50%, #7fd6cb);
  box-shadow: 0 4px 12px rgba(139, 197, 255, 0.55);
  position: relative;
}

.dk-footer__logo-mark::before {
  content: "";
  position: absolute;
  inset: 26%;
  border-radius: inherit;
  border: 2px dashed rgba(255, 255, 255, 0.6);
}

.dk-footer__logo-text {
  font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  color: #273247;
}

.dk-footer__tagline {
  margin: 0.4rem 0 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #5c6578;
}

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

.dk-footer__heading {
  margin: 0 0 0.75rem;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #39425a;
}

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

.dk-footer__link {
  display: inline-flex;
  align-items: center;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: #5b6072;
  text-decoration: none;
  padding: 0.15rem 0;
  position: relative;
}

.dk-footer__link::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-right: 0.35rem;
  background: radial-gradient(circle, #ffb6ce 0%, #ff9fbc 45%, transparent 70%);
  opacity: 0;
  transform: scale(0.4);
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.dk-footer__link:hover::before,
.dk-footer__link:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.dk-footer__link:hover,
.dk-footer__link:focus-visible {
  color: #273247;
}

.dk-footer__link:focus-visible {
  outline: 2px solid #7fd6cb;
  outline-offset: 2px;
}

.dk-footer__bottom {
  border-top: 1px solid rgba(210, 217, 235, 0.8);
  padding: 0.9rem 1.25rem 1.1rem;
  text-align: center;
}

.dk-footer__copyright {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a8393;
}

/* Cookie banner */

.dk-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 1200;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.32s ease, opacity 0.32s ease;
}

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

.dk-cookie--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.dk-cookie__inner {
  max-width: 1080px;
  margin: 0 auto 1.25rem;
  padding: 1.1rem 1.1rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 40px rgba(15, 28, 63, 0.22);
  border: 1px solid rgba(210, 217, 235, 0.9);
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.dk-cookie__content {
  flex: 1 1 auto;
}

.dk-cookie__title {
  margin: 0 0 0.4rem;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: #283044;
}

.dk-cookie__text {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.88rem;
  color: #4d5567;
}

.dk-cookie__link {
  color: #207b6b;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.dk-cookie__link:hover,
.dk-cookie__link:focus-visible {
  color: #145247;
}

.dk-cookie__link:focus-visible {
  outline: 2px solid #7fd6cb;
  outline-offset: 2px;
}

.dk-cookie__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}

.dk-cookie__btn {
  min-width: 150px;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
}

.dk-cookie__btn--primary {
  background: linear-gradient(135deg, #7fd6cb, #8bc5ff);
  color: #1b2433;
  box-shadow: 0 4px 12px rgba(123, 191, 217, 0.8);
}

.dk-cookie__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(123, 191, 217, 0.9);
}

.dk-cookie__btn--secondary {
  background: #f8f4ff;
  color: #4d4f63;
  border-color: rgba(197, 187, 229, 0.9);
}

.dk-cookie__btn--secondary:hover {
  background: #efe6ff;
}

.dk-cookie__btn:focus-visible {
  outline: 2px solid #ffb6ce;
  outline-offset: 2px;
}

/* Responsive footer & cookie banner */

@media (max-width: 900px) {
  .dk-footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

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

@media (max-width: 640px) {
  .dk-footer__inner {
    padding-inline: 1rem;
  }

  .dk-footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 1.25rem;
  }

  .dk-cookie__inner {
    margin-inline: 0.75rem;
    padding: 0.95rem 0.9rem;
    flex-direction: column;
    gap: 0.8rem;
  }

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

  .dk-cookie__btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

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

  .dk-cookie__actions {
    flex-direction: column-reverse;
  }
}
