/* ========== FOOTER STYLES ========== */

.main-footer {
  background: linear-gradient(135deg, #1C1C1C 0%, #0f0f0f 100%);
  color: #b0b0b0;
  padding: 3rem 0 0;
  margin-top: 4rem;
  border-top: 3px solid #E02020;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column h3.footer-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-column h4.footer-heading {
  color: #E02020;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-description {
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(224, 32, 32, 0.1);
  border: 1px solid rgba(224, 32, 32, 0.3);
  border-radius: 50%;
  color: #E02020;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #E02020;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(224, 32, 32, 0.3);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #b0b0b0;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #E02020;
  transform: translateX(5px);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  color: #b0b0b0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-contact i {
  color: #E02020;
  font-size: 1.125rem;
}

.footer-contact a {
  color: #b0b0b0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-contact a:hover {
  color: #E02020;
}

/* ANPC Links */
.footer-anpc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-anpc a {
  display: block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-anpc a:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.footer-anpc img {
  height: 40px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

.footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  color: #5A5A5A;
  font-size: 0.9375rem;
}

.footer-bottom p {
  margin: 0;
}

/* Dark theme adjustments */
html[data-theme="light"] .main-footer {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #5A5A5A;
  border-top-color: #E02020;
}

html[data-theme="light"] .footer-column h3.footer-title {
  color: #1C1C1C;
}

html[data-theme="light"] .footer-description,
html[data-theme="light"] .footer-links a,
html[data-theme="light"] .footer-contact li,
html[data-theme="light"] .footer-contact a {
  color: #5A5A5A;
}

html[data-theme="light"] .footer-links a:hover,
html[data-theme="light"] .footer-contact a:hover {
  color: #E02020;
}

html[data-theme="light"] .footer-content {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .footer-bottom {
  color: #5A5A5A;
}

html[data-theme="light"] .footer-anpc {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .main-footer {
    margin-top: 2rem;
    padding: 1.5rem 0 0;
  }

  .footer-container {
    padding: 0 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .footer-column h3.footer-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .footer-column h4.footer-heading {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
  }

  .footer-description {
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
  }

  .footer-social {
    gap: 0.5rem;
    margin-top: 0.75rem;
  }

  .social-link {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .footer-links li {
    margin-bottom: 0.375rem;
  }

  .footer-links a {
    font-size: 0.8rem;
  }

  .footer-contact li {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    gap: 0.5rem;
  }

  .footer-contact i {
    font-size: 0.875rem;
  }

  .footer-anpc {
    gap: 0.5rem;
    padding: 1rem 0;
  }

  .footer-anpc img {
    height: 32px;
    max-width: 160px;
  }

  .footer-bottom {
    padding: 1rem 0;
    font-size: 0.75rem;
  }
}

/* Very small mobile */
@media (max-width: 480px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-contact li {
    justify-content: center;
  }

  .footer-links a:hover {
    transform: none;
  }
}
