/* Universal App Footer */
:root {
  --app-footer-height: 56px;
}

.app-footer {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  color: #0f172a;
  font-family: 'Montserrat', sans-serif;
}

.app-footer__inner {
  min-height: var(--app-footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  padding: 0 1.5rem;
  margin: 0 auto;
}

.app-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
}

.app-footer__brand:focus-visible,
.app-footer__link:focus-visible {
  outline: 2px solid #051c2c;
  outline-offset: 3px;
  border-radius: 6px;
}

.app-footer__logo {
  height: 28px;
  width: auto;
}

.app-footer__brand-name {
  font-size: 0.95rem;
  white-space: nowrap;
}

.app-footer__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.app-footer__environment {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #0f172a;
  font-size: 0.8rem;
  font-weight: 600;
}

.app-footer__links {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-footer__link {
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.app-footer__link:hover {
  color: #051c2c;
}

.app-footer__link:active {
  color: #97d700;
}

/* App shell variant */
.app-shell .app-footer {
  background: var(--shell-light-bg);
  border-top: 1px solid var(--shell-border);
}

/* App shell footer variant - ensures proper layout in flex containers */
.app-shell-footer {
  width: 100%;
  flex-shrink: 0;
  display: block;
  box-sizing: border-box;
}

.app-shell .app-footer__inner {
  max-width: none;
  padding: 0 1.5rem;
}

@media (max-width: 640px) {
  .app-footer__inner {
    padding: 0 1rem;
    align-items: flex-start;
    flex-direction: column;
  }

  .app-footer__brand-name {
    font-size: 0.9rem;
  }
}
