/*
====================================
  UIVERSE-INSPIRED FOOTER STYLES
====================================
*/

/* --- Main Container --- */
footer {
  background-color: var(--bg-main);
  border-top: 1px solid var(--border-color);
  padding: 64px 0 32px 0;
  margin-top: auto;
  width: 100%;
  text-align: left; /* Set default text alignment */
}

/* --- Grid Layout --- */
/* A 4-column grid. The first column is wider to accommodate the description. */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

/* --- General Column Styles --- */
.footer-column .logo {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.footer-column .powered-by {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer-subheading {
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--text-light);
}
.footer-description {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-column h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-column ul li {
  margin-bottom: 12px;
}
.footer-column ul a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-column ul a:hover {
  color: var(--accent);
}

/* --- Copyright Section --- */
.footer-copyright {
  border-top: 1px solid var(--border-color);
  margin-top: 48px;
  padding-top: 32px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/*
====================================
  RESPONSIVE ADJUSTMENTS
====================================
*/
@media (max-width: 900px) {
  /* Switch to a 2-column layout on tablets */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

@media (max-width: 600px) {
  /* Stack to a single column on mobile */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  footer {
    padding: 48px 0 24px 0;
  }
}
