/* ========================================
   Site Footer
   ======================================== */

.site-footer {
  background: var(--footer-bg, var(--card-background));
  margin-top: 3.5rem;
  position: relative;
  color: var(--text-color);
}

/* Optional subtle top glow */
.site-footer::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(var(--primary-rgb, 102,126,234), 0.05), transparent);
  pointer-events: none;
}

/* Gradient accent strip at top */
.footer-accent {
  height: 3px;
  background: var(--primary-gradient, linear-gradient(90deg, #667eea, #764ba2));
}

/* ---- Inner container ---- */
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5rem 2rem 0;
  position: relative;
  z-index: 1;
}

/* ---- Column Grid ---- */
.footer-columns {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
}

/* ---- Column headings ---- */
.footer-heading {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-color, #fff);
  margin: 0 0 1.25rem;
  padding-bottom: 0.75rem;
  position: relative;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  border-radius: 99px;
  background: var(--primary-gradient, linear-gradient(90deg, #667eea, #764ba2));
}

/* ---- Brand column ---- */
.footer-col--brand {
  padding-right: 1rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: 1rem;
}

.footer-logo img {
  max-width: 130px;
  height: auto;
}

.footer-logo span {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-color, #fff);
  letter-spacing: -0.02em;
}

/* Support both old .footer-tagline and new .footer-description */
.footer-tagline,
.footer-description {
  font-size: 0.875rem;
  color: var(--text-60, rgba(255,255,255,0.5));
  line-height: 1.75;
  margin: 0;
  max-width: 280px;
}

/* ---- Link lists ---- */
.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li {
  margin-bottom: 0.55rem;
}

.footer-list a {
  color: var(--text-60, rgba(255,255,255,0.5));
  text-decoration: none;
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease, gap 0.2s ease;
}

.footer-list a::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--primary-color, #667eea);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.footer-list a:hover {
  color: var(--text-color, #fff);
  gap: 0.6rem;
}

.footer-list a:hover::before {
  opacity: 1;
}

/* 1-column list for categories */
.footer-list--grid {
  columns: 1;
}

.footer-list--grid li {
  break-inside: avoid;
}

/* ---- Recent games in footer ---- */
.footer-recent-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-recent-item a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-recent-item a:hover {
  opacity: 0.8;
}

.footer-recent-thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  background: var(--card-background-40, rgba(255,255,255,0.06));
}

.footer-recent-thumb-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: var(--card-background-40, rgba(255,255,255,0.08));
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-60, rgba(255,255,255,0.3));
}

.footer-recent-name {
  font-size: 0.8125rem;
  color: var(--text-60, rgba(255,255,255,0.55));
  line-height: 1.4;
  transition: color 0.2s ease;
}

.footer-recent-item a:hover .footer-recent-name {
  color: var(--text-color, #fff);
}

/* ---- Bottom bar ---- */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 1.75rem;
  margin-top: 3rem;
  border-top: 1px solid var(--border-color, rgba(255,255,255,0.08));
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ---- Social icons ---- */
.footer-social {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--card-background-40, rgba(255,255,255,0.06));
  border: 1px solid var(--border-color, rgba(255,255,255,0.08));
  color: var(--text-60, rgba(255,255,255,0.45));
  text-decoration: none;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.footer-social-icon svg {
  width: 15px;
  height: 15px;
}

.footer-social-icon:hover {
  transform: translateY(-2px);
  color: #fff;
}

/* Brand-color hovers */
.footer-social--facebook:hover  { background: #1877f2; border-color: #1877f2; }
.footer-social--twitter:hover   { background: #111;    border-color: #333; }
.footer-social--instagram:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); border-color: #dc2743; }
.footer-social--youtube:hover   { background: #ff0000; border-color: #ff0000; }
.footer-social--discord:hover   { background: #5865f2; border-color: #5865f2; }
.footer-social--tiktok:hover    { background: #111;    border-color: #333; }

/* ---- Copyright ---- */
.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-60, rgba(255,255,255,0.4));
  margin: 0;
  line-height: 1.5;
}

.footer-copyright a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
  transition: color 0.2s;
}

.footer-copyright a:hover {
  color: var(--text-color, #fff);
}

/* ---- Scroll to top button ---- */
.scroll-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 1.5rem;
  z-index: 999;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--primary-gradient, linear-gradient(135deg, #667eea, #764ba2));
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(var(--primary-rgb, 102,126,234), 0.4);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top-btn:hover {
  box-shadow: 0 6px 20px rgba(var(--primary-rgb, 102,126,234), 0.55);
  transform: translateY(-2px);
}

.scroll-to-top-btn:active {
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .footer-columns {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
  }
  .footer-col--recent {
    display: none;
  }
}

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-col--brand {
    grid-column: 1 / -1;
  }
  .footer-col--recent {
    display: none;
  }
  .footer-description,
  .footer-tagline {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .footer-inner {
    padding: 2.5rem 1.25rem 0;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-col--brand {
    grid-column: auto;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 2rem;
  }
  .footer-social {
    order: -1;

