/* Site Footer Styles - Uses theme CSS variables for branding */

/* 
 * Note: Pages that need sticky footer (login, forgot, reset, etc.) 
 * should set their own body styles:
 *   body { display: flex; flex-direction: column; min-height: 100vh; }
 * and wrap content in .main-content { flex: 1; }
 * 
 * Content-heavy pages (content.html, dashboard.html) don't need this
 * since they naturally push the footer down with their content.
 */

/* Push footer to bottom on flex-column pages, or just sit at end on normal pages */
.site-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid var(--border, #e5e7eb);
  /* Background and color are set inline by footer-loader.js from database settings */
  text-align: center;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
  font-weight: 500;
}

.footer-link:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.footer-separator {
  color: inherit;
  opacity: 0.5;
  user-select: none;
}

.footer-copyright {
  font-size: 13px;
  color: inherit;
  opacity: 0.8;
}

/* Dark mode support - colors are now set by footer-loader.js from database */
/* Background and text colors automatically adjust based on system preference */

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-footer {
    margin-top: 48px;
    padding: 24px 16px;
  }
  
  .footer-legal-links {
    font-size: 13px;
    gap: 8px;
  }
  
  .footer-copyright {
    font-size: 12px;
  }
}
