/* Footer styles for Torvass Hub */

.th-footer {
  margin-top: var(--space-12);
  padding-block: var(--space-8) var(--space-6);
  background: radial-gradient(circle at top, rgba(19, 232, 255, 0.12), transparent 60%),
    linear-gradient(to bottom, #05060a, #02030a);
  border-top: 1px solid rgba(148, 163, 184, 0.28);
}

.th-footer__inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.th-footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.th-footer__brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 0, rgba(19, 232, 255, 0.7), rgba(168, 85, 255, 0.5));
  box-shadow: 0 0 20px rgba(19, 232, 255, 0.6);
}

.th-footer__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.th-footer__brand-name {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: var(--font-size-md);
}

.th-footer__brand-tagline {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

.th-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6);
}

.th-footer__section {
  min-width: 0;
}

.th-footer__heading {
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: var(--space-3);
}

.th-footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.th-footer__links a {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.th-footer__links a:hover,
.th-footer__links a:focus-visible {
  color: var(--color-accent-cyan);
}

.th-footer__bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.th-footer__copyright {
  color: var(--color-text-muted);
}

.th-footer__note {
  color: var(--color-text-muted);
}

/* Responsive footer */

@media (max-width: 768px) {
  .th-footer {
    padding-block: var(--space-6) var(--space-5);
  }

  .th-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .th-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Cookie banner */

.th-cookie {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  background: radial-gradient(circle at top, rgba(19, 232, 255, 0.24), transparent 60%),
    linear-gradient(to top, rgba(5, 6, 10, 0.98), rgba(5, 6, 10, 0.96));
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.8);
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--transition-slow), opacity var(--transition-slow), visibility var(--transition-slow);
  visibility: hidden;
}

.th-cookie--visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.th-cookie--hiding {
  transform: translateY(100%);
  opacity: 0;
}

.th-cookie__inner {
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--space-4) var(--space-4) calc(var(--space-4) + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.th-cookie__text {
  max-width: 640px;
}

.th-cookie__title {
  font-size: var(--font-size-md);
  margin-bottom: var(--space-2);
}

.th-cookie__description {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.th-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.th-cookie__button {
  min-width: 0;
  padding-inline: var(--space-4);
  padding-block: 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.5);
  font-size: var(--font-size-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  color: var(--color-text);
  transition: background var(--transition-base), color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.th-cookie__button--secondary:hover,
.th-cookie__button--secondary:focus-visible {
  background: rgba(15, 23, 42, 1);
  border-color: rgba(148, 163, 184, 0.9);
}

.th-cookie__button--primary {
  background: radial-gradient(circle at 0 0, rgba(19, 232, 255, 0.6), rgba(13, 110, 253, 0.9));
  border-color: rgba(19, 232, 255, 0.95);
  color: #020617;
  box-shadow: var(--shadow-glow-primary);
}

.th-cookie__button--primary:hover,
.th-cookie__button--primary:focus-visible {
  background: radial-gradient(circle at 100% 0, rgba(168, 85, 255, 0.7), rgba(13, 110, 253, 0.95));
}

@media (max-width: 768px) {
  .th-cookie__inner {
    flex-direction: column;
    align-items: stretch;
  }

  .th-cookie__actions {
    justify-content: stretch;
  }

  .th-cookie__button {
    flex: 1 1 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .th-cookie {
    transition: none;
  }
}
