/* ================================
   ExamArchive – Footer Styles
   ================================ */

.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 2.5rem 1rem 1.5rem;
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

/* ---------- Brand ---------- */
.footer-brand {
  margin-bottom: 0.5rem;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Sections ---------- */
.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.4rem 0;
}

.footer-section a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
  line-height: 1.4;
}

.footer-section a:hover {
  color: var(--red);
}

/* ---------- Meta ---------- */
.footer-meta {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-meta p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.3rem 0;
}

.footer-note {
  font-size: 0.75rem !important;
  color: var(--text-muted);
  opacity: 0.8;
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-meta {
    grid-column: 1 / -1;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .site-footer {
    padding: 3rem 1rem 2rem;
  }

  .footer-inner {
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / 2;
  }

  .footer-meta {
    grid-column: 1 / -1;
    margin-top: 1.5rem;
    padding-top: 2rem;
  }
}

/* ---------- Dark Theme ---------- */
body[data-theme="dark"] .site-footer,
body[data-theme="amoled"] .site-footer {
  background: var(--surface);
}
