/* Footer styles for AU Lucky Lotto */

.site-footer {
  margin-top: var(--space-10);
  background-color: #0b1020;
  color: #e5e7eb;
}

.site-footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
}

/* Brand area */
.site-footer__brand-main {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.site-footer__brand-logo {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #ffffff 30%, #fee2e2 55%, #f97316 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.site-footer__brand-orb {
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #fef9c3 0, #fbbf24 40%, #b45309 100%);
}

.site-footer__brand-text {
  display: flex;
  flex-direction: column;
}

.site-footer__brand-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--font-size-lg);
  letter-spacing: 0.02em;
}

.site-footer__brand-tagline {
  font-size: var(--font-size-xs);
  color: #9ca3af;
}

.site-footer__trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.site-footer__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: var(--font-size-xs);
  color: #d1d5db;
}

.site-footer__trust-item i {
  color: var(--color-primary);
}

/* Links */
.site-footer__links {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--space-4);
}

.site-footer__heading {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  margin-bottom: var(--space-3);
}

.site-footer__link-list {
  list-style: none;
  display: grid;
  gap: 0.4rem;
}

.site-footer__link-list a {
  font-size: var(--font-size-sm);
  color: #e5e7eb;
}

.site-footer__link-list a:hover,
.site-footer__link-list a:focus-visible {
  color: #bfdbfe;
}

/* Legal block wrapper */
.site-footer__legal-wrapper {
  background-color: #020617;
}

.legal-block {
  background-color: transparent;
  border-top-color: #4b5563;
  border-bottom-color: #4b5563;
}

.footer-legal {
  color: #e5e7eb;
}

.footer-legal strong {
  color: #facc15;
}

/* Bottom bar */
.site-footer__bottom {
  border-top: 1px solid #111827;
  background-color: #020617;
}

.site-footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}

.site-footer__copy {
  font-size: var(--font-size-xs);
  color: #9ca3af;
}

.site-footer__bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.site-footer__bottom-links a {
  font-size: var(--font-size-xs);
  color: #e5e7eb;
}

.site-footer__bottom-links a:hover,
.site-footer__bottom-links a:focus-visible {
  color: #bfdbfe;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  display: none;
  padding: var(--space-3) var(--space-4);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
}

.cookie-banner--visible {
  display: block;
  animation: cookie-slide-up var(--transition-slow) ease-out forwards;
}

.cookie-banner--hidden {
  animation: cookie-slide-down var(--transition-slow) ease-in forwards;
}

.cookie-banner__inner {
  max-width: 1120px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  color: #e5e7eb;
}

.cookie-banner__title {
  font-size: var(--font-size-base);
  margin-bottom: 0.2rem;
}

.cookie-banner__description {
  font-size: var(--font-size-sm);
  color: #d1d5db;
}

.cookie-banner__link {
  display: inline-flex;
  margin-top: 0.25rem;
  font-size: var(--font-size-xs);
  color: #bfdbfe;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus-visible {
  color: #e0f2fe;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.cookie-banner__button {
  font-size: var(--font-size-sm);
}

@keyframes cookie-slide-up {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes cookie-slide-down {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}

/* Layout tweaks for larger screens */
@media (min-width: 640px) {
  .site-footer__links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .site-footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .site-footer__brand {
    max-width: 22rem;
  }

  .site-footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .cookie-banner__actions {
    justify-content: flex-end;
  }
}
