/* Footer styles for EpiicRealmWorld */

.erw-footer {
  background: radial-gradient(circle at bottom right, rgba(0, 174, 255, 0.32), transparent 55%),
              radial-gradient(circle at top left, rgba(0, 255, 153, 0.18), transparent 55%),
              #05060a;
  color: #e4ebff;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 3rem;
}

.erw-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
}

.erw-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.erw-footer__logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1rem;
  background: conic-gradient(from 120deg, #00ff99, #00aeff, #00ff99);
  box-shadow: 0 0 24px rgba(0, 174, 255, 0.7);
  position: relative;
}

.erw-footer__logo::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: inherit;
  background: #05060a;
}

.erw-footer__brand-text {
  display: flex;
  flex-direction: column;
}

.erw-footer__brand-name {
  font-family: "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1rem;
}

.erw-footer__brand-tagline {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: rgba(226, 234, 255, 0.75);
}

/* Grid */

.erw-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.erw-footer__heading {
  font-family: "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(228, 235, 255, 0.96);
  margin: 0 0 0.7rem;
}

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

.erw-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  color: rgba(220, 230, 255, 0.8);
  text-decoration: none;
  padding: 0.12rem 0;
  position: relative;
  transition: color 0.18s ease, transform 0.12s ease;
}

.erw-footer__link::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #00aeff, #00ff99);
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.erw-footer__link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0;
  bottom: -0.1rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 174, 255, 0.9), rgba(0, 255, 153, 0.9));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.erw-footer__link:hover,
.erw-footer__link:focus-visible {
  color: #ffffff;
  transform: translateX(2px);
}

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

.erw-footer__link:hover::after,
.erw-footer__link:focus-visible::after {
  transform: scaleX(1);
}

.erw-footer__link:focus-visible {
  outline: 2px solid #00ff99;
  outline-offset: 2px;
}

/* Bottom area */

.erw-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.erw-footer__copyright {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(215, 226, 255, 0.72);
}

.erw-footer__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.erw-footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 174, 255, 0.45);
  background: rgba(5, 6, 10, 0.9);
  font-size: 0.75rem;
  color: rgba(230, 239, 255, 0.9);
}

.erw-footer__badge i {
  color: #00ff99;
}

/* Cookie consent banner */

.erw-cookie {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 0.75rem;
  max-width: 1200px;
  margin-inline: auto;
  z-index: 1100;
  pointer-events: none; /* container only, inner regains events */
}

.erw-cookie__inner {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(120deg, rgba(5, 6, 10, 0.98), rgba(5, 17, 32, 0.98));
  border: 1px solid rgba(0, 255, 153, 0.4);
  box-shadow: 0 1.2rem 2.8rem rgba(0, 0, 0, 0.65);
  color: #f5f7ff;
  transform: translateY(110%);
  opacity: 0;
  transition: transform 0.28s ease-out, opacity 0.28s ease-out;
}

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

.erw-cookie--hidden .erw-cookie__inner {
  transform: translateY(110%);
  opacity: 0;
}

.erw-cookie__content {
  flex: 1 1 260px;
  min-width: 0;
}

.erw-cookie__title {
  margin: 0 0 0.35rem;
  font-family: "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.erw-cookie__text {
  margin: 0 0 0.3rem;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: rgba(225, 234, 255, 0.9);
}

.erw-cookie__link {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  color: #00ff99;
  text-decoration: underline;
}

.erw-cookie__link:focus-visible {
  outline: 2px solid #00aeff;
  outline-offset: 2px;
}

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

.erw-cookie__btn {
  min-width: 7.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.1s ease, box-shadow 0.18s ease;
}

.erw-cookie__btn--secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #f5f7ff;
}

.erw-cookie__btn--secondary:hover,
.erw-cookie__btn--secondary:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.erw-cookie__btn--primary {
  background: linear-gradient(135deg, #00aeff, #00ff99);
  color: #05060a;
  box-shadow: 0 0.6rem 1.6rem rgba(0, 255, 153, 0.55);
}

.erw-cookie__btn--primary:hover,
.erw-cookie__btn--primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0.8rem 2rem rgba(0, 255, 153, 0.65);
}

.erw-cookie__btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Responsive */

@media (max-width: 768px) {
  .erw-footer__inner {
    padding-top: 2rem;
    padding-bottom: 1.25rem;
  }

  .erw-footer__brand {
    margin-bottom: 1.5rem;
  }

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

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

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

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

  .erw-cookie__actions {
    width: 100%;
    justify-content: stretch;
  }

  .erw-cookie__btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 520px) {
  .erw-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .erw-cookie__inner,
  .erw-footer__link,
  .erw-footer__badge,
  .erw-footer__logo,
  .erw-footer__brand-name {
    transition: none !important;
  }
}
