/* Footer styles for MinecraftPL */

.site-footer {
  --mcpl-green-950: #0e241a;
  --mcpl-green-800: #163828;
  --mcpl-green-500: #2f8a59;
  --mcpl-stone: #cfd8dc;
  --mcpl-cream: #f3f7f0;
  background: linear-gradient(180deg, var(--mcpl-green-800) 0%, var(--mcpl-green-950) 100%);
  color: var(--mcpl-cream);
  padding-top: 2rem;
  border-top: 6px solid #5a3e2b;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 2rem;
}

@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-logo {
  font-family: 'Press Start 2P', system-ui, sans-serif;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.75rem;
}
.footer-logo:focus-visible { outline: 3px solid var(--mcpl-stone); outline-offset: 3px; }
.footer-tagline { margin: 0 0 0.5rem; color: var(--mcpl-stone); }
.footer-contact a { color: #fff; text-decoration: underline; }
.footer-contact a:focus-visible { outline: 3px solid var(--mcpl-stone); outline-offset: 2px; }

.footer-links { margin-top: 0.25rem; }
.links-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem 1rem; grid-template-columns: repeat(3, minmax(0,1fr)); }
.links-grid a { color: var(--mcpl-cream); text-decoration: none; padding: 0.25rem 0; display: inline-block; border-radius: 6px; }
.links-grid a:hover, .links-grid a:focus { text-decoration: underline; }
.links-grid a:focus-visible { outline: 3px solid var(--mcpl-stone); outline-offset: 2px; }

@media (max-width: 640px) {
  .links-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.legal-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.75rem; flex-wrap: wrap; }
.legal-links a { color: var(--mcpl-stone); text-decoration: none; }
.legal-links a:hover, .legal-links a:focus { text-decoration: underline; }
.legal-links a:focus-visible { outline: 3px solid var(--mcpl-stone); outline-offset: 2px; }

@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Cookie banner */
.cookie-consent[hidden] { display: none !important; }
.cookie-consent {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 10000;
  padding: env(safe-area-inset-bottom, 0);
}
.cookie-inner {
  margin: 0.75rem;
  background: #0e241a;
  color: #ffffff;
  border: 2px solid #5a3e2b;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  padding: 1rem;
  transform: translateY(110%);
  transition: transform 260ms ease-in-out, opacity 260ms ease-in-out;
  opacity: 0.98;
}
.cookie-consent.is-visible .cookie-inner { transform: translateY(0); }
.cookie-consent.is-hiding .cookie-inner { transform: translateY(110%); opacity: 0; }

.cookie-inner h2 { margin: 0 0 0.5rem; font-size: 1.05rem; font-family: 'Inter', system-ui, sans-serif; }
.cookie-inner p { margin: 0 0 0.75rem; font-size: 0.95rem; line-height: 1.5; }
.cookie-inner a { color: #b2dfdb; text-underline-offset: 3px; }
.cookie-inner a:focus-visible { outline: 3px solid #cfd8dc; outline-offset: 2px; }

.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.btn { cursor: pointer; border-radius: 8px; border: 0; padding: 0.6rem 0.9rem; font-weight: 700; font-family: 'Inter', system-ui, sans-serif; }
.btn-primary { background: #2f8a59; color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,0.25); }
.btn-primary:hover, .btn-primary:focus { filter: brightness(1.05); }
.btn-secondary { background: #37474f; color: #fff; }
.btn-secondary:hover, .btn-secondary:focus { filter: brightness(1.05); }

.btn:focus-visible { outline: 3px solid #cfd8dc; outline-offset: 2px; }
