/* ===== MODERN FOOTER ENHANCEMENTS ===== */

footer, .footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.8em 1.5em;
  margin-top: 2em;
  color: #555;
  font-size: 0.85em;
  transition: background-color 240ms ease, box-shadow 240ms ease;
}

footer:hover {
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
}

/* Footer container */
footer .container, .footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5em;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5em;
}

/* Footer sections */
footer .footer-section, .footer .footer-section,
footer > div, .footer > div {
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

/* Footer headings */
footer h4, footer h5, footer h6,
.footer h4, .footer h5, .footer h6 {
  font-weight: 600;
  font-size: 0.9em;
  margin: 0;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Footer links */
footer a, .footer a {
  color: #353ea1;
  text-decoration: none;
  padding: 0.2em 0.4em;
  transition: color 240ms ease;
  white-space: nowrap;
}

footer a:hover, .footer a:hover {
  color: #2a2e7f;
  text-decoration: underline;
}

/* Footer lists */
footer ul, footer ol, .footer ul, .footer ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
}

footer li, .footer li {
  margin: 0;
  display: inline;
}

/* Footer divider/separator */
footer .divider, .footer .divider,
footer hr, .footer hr {
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
  margin: 0 0.8em;
  height: 1em;
  transition: border-color 240ms ease;
}

/* Footer bottom section */
footer .footer-bottom, .footer .footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 1em;
  font-size: 0.8em;
  color: #999;
}

/* Copyright section */
footer .copyright, .footer .copyright {
  white-space: nowrap;
}

/* Social links */
footer .social-links, .footer .social-links {
  display: flex;
  gap: 0.6em;
  align-items: center;
}

footer .social-links a, .footer .social-links a {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(53, 62, 161, 0.1);
  transition: background-color 240ms ease, transform 240ms ease;
  font-weight: 600;
  font-size: 0.75em;
  padding: 0;
}

footer .social-links a:hover, .footer .social-links a:hover {
  background-color: rgba(53, 62, 161, 0.25);
  transform: scale(1.1);
}

/* Footer back to top button */
footer .back-to-top, .footer .back-to-top {
  padding: 0.4em 0.8em;
  background-color: rgba(53, 62, 161, 0.1);
  border: 1px solid rgba(53, 62, 161, 0.2);
  border-radius: 4px;
  color: #353ea1;
  font-weight: 500;
  font-size: 0.8em;
  transition: all 240ms ease;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

footer .back-to-top:hover, .footer .back-to-top:hover {
  background-color: #353ea1;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(53, 62, 161, 0.15);
}

/* Dark theme support */
body.dark-theme footer,
body.dark-theme .footer {
  background: linear-gradient(135deg, #2a2a3e 0%, #1f1f2e 100%);
  border-top-color: rgba(255, 255, 255, 0.1);
  color: #c0c0c0;
}

body.dark-theme footer h4, body.dark-theme footer h5, body.dark-theme footer h6,
body.dark-theme .footer h4, body.dark-theme .footer h5, body.dark-theme .footer h6 {
  color: #e0e0e0;
}

body.dark-theme footer a, body.dark-theme .footer a {
  color: #7a8cff;
}

body.dark-theme footer a:hover, body.dark-theme .footer a:hover {
  color: #9fb3ff;
}

body.dark-theme footer .divider, body.dark-theme .footer .divider,
body.dark-theme footer hr, body.dark-theme .footer hr {
  border-color: rgba(255, 255, 255, 0.15);
}

body.dark-theme footer .back-to-top, body.dark-theme .footer .back-to-top {
  background-color: rgba(122, 140, 255, 0.15);
  border-color: rgba(122, 140, 255, 0.3);
  color: #7a8cff;
}

body.dark-theme footer .back-to-top:hover, body.dark-theme .footer .back-to-top:hover {
  background-color: #7a8cff;
  color: #1f1f2e;
}

/* Responsive footer */
@media (max-width: 600px) {
  footer, .footer {
    padding: 0.6em 1em;
    margin-top: 1.5em;
  }

  footer .container, .footer .container {
    flex-direction: column;
    align-items: center;
    gap: 0.8em;
    padding: 0 1em;
  }

  footer .footer-bottom, .footer .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6em;
  }

  footer .divider, .footer .divider,
  footer hr, .footer hr {
    margin: 0 0.5em;
  }

  footer h4, footer h5, footer h6,
  .footer h4, .footer h5, .footer h6 {
    font-size: 0.85em;
  }
}

/* Very small screens */
@media (max-width: 480px) {
  footer, .footer {
    padding: 0.5em 0.75em;
    font-size: 0.8em;
  }

  footer .container, .footer .container {
    padding: 0 0.75em;
  }

  footer .social-links a, .footer .social-links a {
    width: 20px;
    height: 20px;
    font-size: 0.7em;
  }

  footer .back-to-top, .footer .back-to-top {
    padding: 0.3em 0.6em;
    font-size: 0.75em;
  }

  footer .divider, .footer .divider,
  footer hr, .footer hr {
    display: none;
  }
}

