/* =========================================================
   WIRTZ HUB · FOOTER
   Pie operativo · minimalista · responsive · dark safe
   ========================================================= */

.app-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;

  min-height: 28px;
  padding: 0 10px;

  border-top: 1px solid rgba(0, 0, 0, 0.14);
  background: color-mix(in srgb, var(--panel-solid) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: var(--muted);

  font-size: 8.5px;
  font-weight: 780;
  letter-spacing: -0.01em;
  line-height: 1;

  animation: footerEnter 0.24s ease both;

  transition:
    background var(--transition),
    border-color var(--transition),
    color var(--transition),
    min-height var(--transition),
    padding var(--transition);
}

html[data-theme="dark"] .app-footer {
  border-top-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 8, 0.9);
  color: rgba(255, 255, 255, 0.48);
}

.app-footer span {
  min-width: 0;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-footer span:first-child {
  color: var(--text-strong);
  font-weight: 900;
}

html[data-theme="dark"] .app-footer span:first-child {
  color: rgba(255, 255, 255, 0.86);
}

.app-footer span:last-child {
  text-align: right;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 620px) {
  .app-footer {
    gap: 6px;
    min-height: 26px;
    padding: 0 7px;

    font-size: 8px;
  }

  .app-footer span:first-child {
    max-width: 40vw;
  }

  .app-footer span:last-child {
    max-width: 52vw;
  }
}

@media (max-width: 360px) {
  .app-footer {
    min-height: 25px;
    padding: 0 6px;
    font-size: 7.5px;
  }

  .app-footer span:first-child {
    max-width: 34vw;
  }

  .app-footer span:last-child {
    max-width: 58vw;
  }
}

/* =========================================================
   ANIMACIÓN
   ========================================================= */

@keyframes footerEnter {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-footer,
  .app-footer * {
    animation: none !important;
    transition: none !important;
  }
}