footer {
  position: relative;
  width: 100%;
  padding: 1.5rem 2rem;
  margin-top: auto; /* Pushes footer to bottom in flex container */
  background: transparent;
  color: var(--text-dim);
  font-family: "Inter", sans-serif;
  font-size: 0.8rem;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  z-index: 10;
}

footer:hover {
  opacity: 1;
}

.footer-container {
  max-width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

/* --- LEFT SIDE (Echo) --- */
.footer-left {
  display: flex;
  justify-content: flex-start;
}

.echo-btn,
.data-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  color: var(--text);
  text-decoration: none;
  opacity: 0.4;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  border-radius: 50%;
}

.echo-btn:hover,
.data-btn:hover {
  opacity: 1;
  color: var(--accent-gold);
  background: rgba(255, 193, 7, 0.05);
  border-color: rgba(255, 193, 7, 0.1);
}

/* Active State (controlled by router.js) */
.echo-btn.active,
.data-btn.active {
  opacity: 1 !important;
  color: var(--accent-gold) !important;
  background: rgba(255, 193, 7, 0.1);
  border-color: rgba(255, 193, 7, 0.2);
  box-shadow: 0 0 15px rgba(255, 193, 7, 0.1);
}

.echo-btn i {
  font-size: 1rem;
}

/* --- CENTER SIDE --- */
.footer-center {
  text-align: center;
}
.footer-center p {
  margin: 0;
  white-space: nowrap;
}

/* --- RIGHT SIDE (Socials) --- */
.footer-right {
  display: flex;
  justify-content: flex-end;
}

.socials {
  display: flex;
  gap: 15px;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 1.1rem;
  color: var(--text);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.socials a:hover {
  color: var(--accent-gold);
  transform: translateY(-2px);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
  .footer-container {
    display: flex;
    flex-direction: column-reverse; /* Stack nicely: Socials, Text, Echo at bottom */
    gap: 1rem;
    text-align: center;
  }

  .footer-left,
  .footer-right,
  .footer-center {
    width: 100%;
    justify-content: center;
  }
}
