/* ═══════════════════════════════════════════════════════════
   RepublicMC — Footer Component
   ═══════════════════════════════════════════════════════════ */

.footer {
  padding: 24px 0 48px;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-promo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.footer-promo-card {
  position: relative;
  min-height: 130px;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  color: #fff;
  background-color: #1e2d3d;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
}

.footer-promo-card:nth-child(1) {
  background-image:
    linear-gradient(135deg, rgba(13, 22, 47, 0.3), rgba(13, 22, 47, 0.8)),
    url("../assets/gallery/scene-1.svg");
}

.footer-promo-card:nth-child(2) {
  background-image:
    linear-gradient(135deg, rgba(13, 22, 47, 0.25), rgba(13, 22, 47, 0.82)),
    url("../assets/gallery/scene-2.svg");
}

.footer-promo-card:nth-child(3) {
  background-image:
    linear-gradient(135deg, rgba(13, 22, 47, 0.25), rgba(13, 22, 47, 0.82)),
    url("../assets/gallery/scene-3.svg");
}

.footer-promo-card:nth-child(4) {
  background-image:
    linear-gradient(135deg, rgba(13, 22, 47, 0.25), rgba(13, 22, 47, 0.82)),
    url("../assets/gallery/scene-4.svg");
}

.footer-promo-card::before {
  display: none;
}

.footer-promo-card > * {
  position: relative;
  z-index: 1;
}

.footer-promo-mark {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  font-size: 0.9rem;
}

.footer-promo-mark svg {
  width: 30px;
  height: 30px;
  stroke: #fff;
  fill: currentColor;
}

.footer-socials a svg {
  width: 16px;
  height: 16px;
  display: block;
}

.footer-promo-copy {
  margin-bottom: 2px;
}

.footer-promo-copy strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.15;
  font-weight: 600;
}

.footer-promo-copy span {
  display: block;
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.86rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr 0.95fr 0.75fr;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.footer-brand-block {
  display: grid;
  gap: 12px;
}

.footer-brand-block p {
  margin: 0;
  max-width: 36ch;
  line-height: 1.65;
  font-size: 0.9rem;
}

.footer-legal {
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.footer-legal strong {
  color: var(--text);
  font-weight: 600;
}

.footer-column {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-column h4 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

.footer-list {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.footer-list a {
  width: fit-content;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 150ms var(--ease);
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--text);
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  transition: opacity 150ms var(--ease);
}

.footer-socials a:hover {
  opacity: 0.82;
}

.footer-socials a[data-network="community"] {
  background: #5b86ff;
}

.footer-socials a[data-network="forum"] {
  background: #ef4444;
}

.footer-socials a[data-network="youtube"] {
  background: #ef4444;
}

.footer-socials a[data-network="discord"] {
  background: #7c5cfc;
}

.footer-inner {
  display: grid;
  gap: 0;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: var(--text);
}

/* ── Responsive Footer ──────────────────────────────────── */
@media (max-width: 820px) {
  .footer {
    padding: 18px 0 28px;
  }

  .footer-promo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer-promo-card {
    min-height: 110px;
    padding: 14px;
    border-radius: var(--radius-lg);
    align-items: center;
  }

  .footer-promo-mark {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
  }

  .footer-promo-copy strong {
    font-size: 0.95rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-top: 16px;
  }

  .footer-brand-block p {
    max-width: 100%;
  }

  .footer-list a {
    font-size: 0.92rem;
  }
}

@media (max-width: 560px) {
  .footer {
    padding: 14px 0 20px;
  }

  .footer-promo-card {
    min-height: 90px;
    padding: 10px;
  }

  .footer-promo-mark {
    width: 50px;
    height: 50px;
    font-size: 0.74rem;
  }

  .footer-main {
    gap: 10px;
  }

  .footer-column h4 {
    font-size: 0.78rem;
  }

  .footer-list a {
    font-size: 0.88rem;
  }
}

