/* Base styles */
footer#footer {
  background-color: white;
  color: black;
  box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.1);
  padding: 40px 20px;
  text-align: center;
  transition: background 0.3s, color 0.3s;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.footer-links li a {
  text-decoration: none;
  color: inherit;
  padding: 5px 10px;
  transition: background 0.3s;
}

.footer-links li a:hover {
  background: rgba(211, 211, 211, 0.734);
  border-radius: 5px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icons a {
  color: inherit;
  font-size: 18px;
  transition: opacity 0.3s;
}

.social-icons a:hover {
  opacity: 0.7;
}

/* Newsletter form */
.newsletter-form {
  margin-bottom: 20px;
}

.newsletter-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.input-group {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 400px;
  margin: 0 auto;
}

.input-group input[type="email"] {
  padding: 10px;
  flex: 1;
  border: 1px solid #ccc;
  border-right: none;
  border-radius: 5px 0 0 5px;
  font-size: 14px;
}

.input-group button {
  padding: 10px 15px;
  background-color: black;
  color: white;
  border: none;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: background 0.3s;
}

.input-group button:hover {
  background-color: #333;
}

.footer-credit {
  font-size: 14px;
  color: #333;
}

/* Responsive */
@media (max-width: 600px) {
  .footer-links {
    flex-direction: column;
    align-items: center;
  }

  .footer-logo {
    flex-direction: column;
    text-align: center;
  }

  .input-group {
    flex-direction: column;
  }

  .input-group input[type="email"],
  .input-group button {
    width: 100%;
    border-radius: 5px;
    border: 1px solid #ccc;
  }

  .input-group button {
    margin-top: 10px;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  footer#footer {
    background-color: #1a1a1a;
    color: #eee;
  }

  .footer-links li a:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .input-group input[type="email"] {
    background-color: #333;
    color: #eee;
    border: 1px solid #555;
  }

  .input-group button {
    background-color: #eee;
    color: #1a1a1a;
  }

  .footer-credit {
    color: #aaa;
  }
}
