/* ============================================
   Footer Component
   Site footer with links and information
   ============================================ */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.container-dark {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.grid-four-column {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.column-section h4 {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: var(--font-semibold);
  margin-bottom: 1rem;
}

.column-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.column-section li {
  margin-bottom: 0.75rem;
}

.column-section a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.column-section a:hover {
  color: var(--brand-primary);
  transform: translateX(2px);
}

.section-divider-top {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.section-divider-top p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* Dark mode */
.site-footer {
  background: var(--bg-secondary);
  border-top-color: var(--border-color);
}

.column-section h4 {
  color: var(--text-primary);
}

.column-section a {
  color: var(--text-muted);
}

.column-section a:hover {
  color: var(--brand-primary-light);
}

/* App footer */
.footer-app {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  margin-top: 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--brand-primary);
}

/* Button styled as link in footer */
.footer-link-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
}

.separator {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  .site-footer {
    padding: 2rem 0 1.5rem;
  }

  .container-dark {
    padding: 0 1rem;
  }

  .grid-four-column {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .column-section h4 {
    font-size: 0.9rem;
  }

  .column-section a {
    font-size: 0.875rem;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }

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