/* ValidBound / SpeechGradebook footer — shared app shell */

.app-footer {
  font-family: var(--body-font, var(--font-primary));
  background: var(--color-primary-dark, var(--primary-dark));
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: auto;
  padding: var(--space-8, 2rem) var(--space-4, 1rem);
  padding-bottom: calc(var(--space-8, 2rem) + env(safe-area-inset-bottom, 0px));
}

.footer-container {
  max-width: var(--container-max, 1280px);
  margin: 0 auto;
  width: 100%;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5, 1.25rem);
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3, 0.75rem);
}

.footer-logo {
  width: 28px;
  height: 28px;
  max-width: 28px;
  max-height: 28px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.2;
}

.footer-wordmark {
  font-size: var(--text-sm, 0.875rem);
  font-weight: var(--weight-bold, 700);
  color: #fff;
}

.footer-product {
  font-size: var(--text-xs, 0.75rem);
  font-weight: var(--weight-medium, 500);
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: var(--tracking-wide, 0.05em);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4, 1rem) var(--space-6, 1.5rem);
  justify-content: center;
}

.footer-links a {
  font-size: var(--text-sm, 0.875rem);
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color var(--motion-fast, 0.15s) ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy,
.footer-copy a {
  font-size: var(--text-xs, 0.75rem);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  margin: 0;
}

.footer-copy a:hover {
  color: rgba(255, 255, 255, 0.85);
}

/* Auth page: sit below gradient card */
.app-footer-auth {
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 0;
}

.app-footer-auth .footer-links a,
.app-footer-auth .footer-copy,
.app-footer-auth .footer-copy a {
  color: rgba(255, 255, 255, 0.55);
}

.app-footer-auth .footer-wordmark {
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-links {
    justify-content: center;
    flex: 1;
  }

  .footer-copy {
    flex-shrink: 0;
  }
}
