/*
 * Warm Refresh — footer.css
 * Styles the site footer only: the 4-column link grid, the stats/social
 * block, and the copyright bar. No page-body rules live here.
 */

.site-footer {
  background: var(--bg-inverse);
  background-image: linear-gradient(160deg, var(--bg-inverse), var(--bg-inverse-alt));
  padding: var(--space-9) 0 var(--space-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-7) var(--space-5);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1.6fr 1.4fr;
  }
}

.footer-heading {
  color: var(--ink-inverse);
  font: 700 0.75rem var(--font-sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 0 0 var(--space-4);
}

.footer-heading--follow {
  margin-top: var(--space-5);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: var(--ink-inverse-soft);
  text-decoration: none;
  font-size: 0.9375rem;
}

.footer-links a:hover,
.footer-links a:focus {
  color: var(--accent);
  text-decoration: none;
}

.footer-stat {
  margin: 0 0 var(--space-2);
}

.footer-stat-value {
  color: var(--ink-inverse);
  font-weight: 700;
  font-size: 1.125rem;
}

.footer-stat-label {
  color: var(--ink-inverse-soft);
  font-size: 0.8125rem;
  margin-left: var(--space-1);
}

/* Social icon buttons: brand hex values below are intentional — they are
   external brand identities, not part of the token palette. Sizing
   (36px) is likewise a literal per the design brief, not a spacing token. */
.social-buttons {
  list-style: none;
  margin: 0 0 var(--space-3);
  padding: 0;
  display: flex;
  gap: var(--space-2);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  background: rgba(255, 251, 246, .08);
  color: var(--ink-inverse);
  transition: background var(--duration-base) var(--ease-standard), color var(--duration-base) var(--ease-standard);
}

.social-btn:hover,
.social-btn:focus {
  color: var(--ink-inverse);
  text-decoration: none;
}

.social-btn--twitter:hover,
.social-btn--twitter:focus {
  background: #000000;
  color: #FFFFFF;
}

.social-btn--facebook:hover,
.social-btn--facebook:focus {
  background: #1877F2;
}

.social-btn--instagram:hover,
.social-btn--instagram:focus {
  background: #E4405F;
}

.social-btn--discord:hover,
.social-btn--discord:focus {
  background: #5865F2;
}

.social-btn--telegram:hover,
.social-btn--telegram:focus {
  background: #26A5E4;
}

.social-btn--github:hover,
.social-btn--github:focus {
  background: var(--bg-page);
  color: var(--ink-strong);
}

.footer-divider {
  border-color: var(--line-on-inverse);
  margin: var(--space-7) 0 var(--space-5);
}

.footer-copyright {
  text-align: center;
  color: var(--ink-inverse-soft);
  font-size: 0.8125rem;
  line-height: 1.6;
}

.footer-copyright a {
  color: var(--accent);
}
