/* --- Sticky Footer Layout Setup --- */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-content,
.library-container {
  flex: 1 0 auto;
}

/* --- Footer Component Styles --- */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  margin-left: 80px;
  width: calc(100% - 80px);
  margin-top: auto;
  padding-top: 2.5rem;
  transition: all 0.3s ease;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Brand Section */
.logo-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--main-neon);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 1px;
}

.brand-name .highlight {
  color: var(--main-neon);
}

.brand-desc {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Titles */
.col-title {
  color: var(--main-neon);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  width: fit-content;
}

.col-title::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 25px;
  height: 2px;
  background: var(--purple-neon);
}

/* Contact Info */
.contact-info p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-info i {
  color: var(--main-neon);
  width: 16px;
}

/* Quick Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.3s ease;
  display: inline-block;
  margin: 0;
}

.footer-links a:hover {
  color: var(--main-neon);
  transform: translateX(5px);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.4);
}

/* Social Links */
.social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background-color: var(--bg-btn);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid var(--border-color);
  font-size: 0.95rem;
  margin: 0;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: #ffffff;
  background: linear-gradient(135deg, var(--main-neon), var(--purple-neon));
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

/* Bottom Copyright Bar */
.bottom-bar {
  background-color: rgba(10, 11, 13, 0.8);
  border-top: 1px solid var(--border-color);
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* --- Responsiveness (Media Queries) --- */
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-footer {
    margin-left: 0;
    width: 100%;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    text-align: center;
  }

  .col-title {
    margin: 0 auto 0.5rem auto;
  }

  .col-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .logo-box,
  .contact-info p {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .footer-links a:hover {
    transform: translateY(-2px);
  }
}
