/* ============================================================
   DecEptioner — Site footer (loaded site-wide via layout.html,
   AFTER style.css). Uses `site-footer` / `sf-` classes so it does
   not collide with the old `.footer*` rules still in style.css.
   No floats — CSS grid that collapses cleanly on mobile.
   ============================================================ */

.site-footer {
  width: 100%;
  background: #121214;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: #9b9aa6;
  font-family: "Poppins", system-ui, sans-serif;
  padding: 3.5rem 1.5rem 1.75rem;
}

.sf-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.sf-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}

/* --- brand --- */
.sf-brand { max-width: 320px; }

.sf-logo {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: #845ef7;
  line-height: 1;
  text-decoration: none;
}
.sf-logo span { color: #ffffff; }

.sf-tagline {
  margin: 1rem 0 1.4rem;
  font-size: 0.92rem;
  line-height: 1.65;
  color: #9b9aa6;
}

.sf-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: #c9b8ff;
  text-decoration: none;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(132, 94, 247, 0.12);
  border: 1px solid rgba(132, 94, 247, 0.28);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.sf-discord i { margin: 0; }
.sf-discord:hover {
  background: rgba(132, 94, 247, 0.2);
  border-color: #845ef7;
  color: #ffffff;
  transform: translateY(-1px);
}

/* --- link columns --- */
.sf-heading {
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}

.sf-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.sf-col li { text-align: left; }
.sf-col a {
  color: #9b9aa6;
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 0.15s ease;
}
.sf-col a:hover { color: #c9b8ff; }

/* --- featured badges --- */
.sf-featured {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}
.sf-featured a { display: inline-block; line-height: 0; }
.sf-featured img {
  width: 160px;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  opacity: 0.85;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.sf-featured a:hover img { opacity: 1; transform: translateY(-2px); }

/* --- bottom bar --- */
.sf-bottom {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.sf-bottom p { margin: 0; }
.sf-bottom-tag { color: #6f6e7a; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .sf-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem 1.5rem;
  }
  .sf-brand {
    grid-column: 1 / -1;
    max-width: 460px;
  }
}

@media (max-width: 540px) {
  .site-footer { padding: 2.75rem 1.25rem 1.5rem; }
  .sf-top { grid-template-columns: 1fr; gap: 2rem; }
  .sf-featured { align-items: flex-start; }
  .sf-bottom {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 0.5rem;
  }
}
