/* Footer Styles */
.site-footer {
  background-color: var(--bg-color);
  border-top: 1px solid var(--border-color);
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  z-index: 100;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.footer-lang {
  margin-top: 0.5rem;
}

.footer-lang .language-selector {
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
}

.footer-lang .language-selector:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Dark theme overrides */
html[data-theme="dark"] .site-footer {
  background-color: #0b1220;
  border-top-color: #1f2937;
}

html[data-theme="dark"] .footer-links a {
  color: #9ca3af;
}

html[data-theme="dark"] .footer-links a:hover {
  color: #a78bfa;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .site-footer {
    padding: 1.5rem 1rem;
  }
}

/* Ensure proper spacing on welcome page */
body.welcome-page .site-footer {
  margin-top: 0;
  border-top: none;
  background: transparent;
  position: relative;
  padding-bottom: 2rem;
}

/* Add a subtle gradient overlay at the bottom of the welcome page */
body.welcome-page .site-footer::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, rgba(11, 18, 32, 0.9), rgba(11, 18, 32, 0));
  z-index: -1;
  pointer-events: none;
}
