/* ============================================
   FOOTER CSS — Melbet Cameroun
   ============================================ */

.site-footer {
  background: var(--color-footer);
  color: var(--color-text);
  padding-top: var(--space-2xl);
}

.footer-top {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Footer disclaimer */
.footer-disclaimer {
  max-width: var(--max-width);
  margin: var(--space-xl) auto 0;
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--color-border);
}

.footer-disclaimer p {
  font-size: 0.8125rem;
  color: var(--color-muted);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

/* Footer bottom */
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.footer-bottom .copyright {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.footer-bottom .footer-badges {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer-bottom .footer-badges .age-badge {
  font-size: 0.6875rem;
  width: 28px;
  height: 28px;
}

/* Affiliate disclaimer */
.affiliate-disclaimer {
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.75rem;
  color: var(--color-muted);
  text-align: center;
  margin: var(--space-md) var(--space-md) 0;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 2px solid var(--color-primary);
  padding: var(--space-md);
  z-index: 1000;
  box-shadow: var(--shadow-xl);
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.cookie-inner p {
  flex: 1;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 0;
}

/* --- Mobile Bottom Bar --- */
.bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--bottom-bar-height);
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  z-index: 800;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.bottom-bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: var(--space-xs);
  text-decoration: none;
  color: var(--color-muted);
  font-size: 0.625rem;
  font-weight: 500;
  min-width: 56px;
  position: relative;
  transition: color var(--transition-fast);
}

.bottom-bar-item:hover {
  color: var(--color-text);
  text-decoration: none;
}

.bottom-bar-item.active {
  color: var(--color-text);
}

.bottom-bar-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 0 0 3px 3px;
}

.bottom-bar-item svg {
  width: 22px;
  height: 22px;
}

/* Show bottom bar on mobile */
@media (max-width: 600px) {
  .bottom-bar {
    display: block;
  }
  .site-footer {
    padding-bottom: calc(var(--bottom-bar-height) + var(--space-md));
  }
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
