/* Footer styles for ElectroTechra */

.et-footer {
  background: radial-gradient(circle at top left, #1c2840 0, #050b16 55%, #02040a 100%);
  color: #e5ecff;
  border-top: 1px solid rgba(135, 206, 250, 0.18);
  padding-top: 2.5rem;
  padding-bottom: 4.5rem; /* space above cookie banner */
}

.et-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 2rem;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.et-footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.et-footer__logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 20%, #7ee0ff 0, #1b9cff 40%, #0c1524 75%);
  box-shadow: 0 0 0 1px rgba(126, 224, 255, 0.4), 0 10px 25px rgba(0, 0, 0, 0.6);
}

.et-footer__brand-text {
  max-width: 320px;
}

.et-footer__brand-name {
  display: block;
  font-family: "Rajdhani", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.96rem;
  margin-bottom: 0.25rem;
}

.et-footer__brand-desc {
  margin: 0;
  font-size: 0.85rem;
  color: #c3cdef;
}

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

.et-footer__heading {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9fb4ff;
  margin: 0 0 0.75rem;
}

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

.et-footer__link {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0;
  font-size: 0.86rem;
  color: #dde5ff;
  text-decoration: none;
}

.et-footer__link::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin-right: 0.4rem;
  background: rgba(159, 180, 255, 0.4);
  transform: scale(0.8);
  transition: background-color 0.18s ease-out, transform 0.18s ease-out;
}

.et-footer__link:hover::before,
.et-footer__link:focus-visible::before {
  background: #7ee0ff;
  transform: scale(1);
}

.et-footer__link:hover,
.et-footer__link:focus-visible {
  color: #ffffff;
}

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

.et-footer__bottom {
  border-top: 1px solid rgba(159, 180, 255, 0.24);
  margin-top: 1.5rem;
  padding: 0.9rem 1.25rem 0;
}

.et-footer__copy {
  max-width: 1200px;
  margin: 0 auto;
  font-size: 0.8rem;
  color: #a9b8e8;
}

/* Cookie banner */

.et-cookie {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  transform: translateY(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease-out, opacity 0.25s ease-out, visibility 0.25s ease-out;
}

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

.et-cookie--hiding {
  transform: translateY(100%);
  opacity: 0;
}

.et-cookie__inner {
  max-width: 960px;
  margin: 0 auto 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 14px 14px 0 0;
  background: radial-gradient(circle at top left, rgba(126, 224, 255, 0.26), rgba(5, 11, 22, 0.98));
  box-shadow: 0 -12px 30px rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(126, 224, 255, 0.35);
  border-bottom: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: flex-start;
}

.et-cookie__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(5, 13, 28, 0.9);
  color: #ffd27e;
}

.et-cookie__icon .fas {
  font-size: 0.95rem;
}

.et-cookie__content {
  min-width: 0;
}

.et-cookie__title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
}

.et-cookie__text {
  margin: 0 0 0.6rem;
  font-size: 0.78rem;
  color: #e5ecff;
}

.et-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.et-cookie__btn {
  flex: 0 0 auto;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-family: "Roboto", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.18s ease-out, color 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out, transform 0.1s ease-out;
}

.et-cookie__btn--secondary {
  background: rgba(3, 8, 20, 0.7);
  border-color: rgba(159, 180, 255, 0.6);
  color: #e5ecff;
}

.et-cookie__btn--secondary:hover,
.et-cookie__btn--secondary:focus-visible {
  background: rgba(12, 21, 36, 0.95);
  box-shadow: 0 0 0 1px rgba(159, 180, 255, 0.8);
}

.et-cookie__btn--primary {
  background: linear-gradient(135deg, #1b9cff, #7ee0ff);
  color: #050b16;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55);
}

.et-cookie__btn--primary:hover,
.et-cookie__btn--primary:focus-visible {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

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

/* Responsive footer & cookie banner */

@media (max-width: 799px) {
  .et-footer {
    padding-top: 2rem;
    padding-bottom: 4rem;
  }

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

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

  .et-footer__column:last-child {
    grid-column: 1 / -1;
  }

  .et-cookie__inner {
    margin-inline: 0.75rem;
    border-radius: 14px;
    grid-template-columns: minmax(0, 1fr);
  }

  .et-cookie__icon {
    display: none;
  }

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

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

@media (min-width: 1200px) {
  .et-footer__inner {
    padding-inline: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .et-cookie,
  .et-cookie__btn,
  .et-footer__link::before {
    transition: none !important;
  }
}
