/* ===== Global app footer ===== */

.app-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(75, 85, 99, 0.8);
  background:
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(17, 24, 39, 0.98), rgba(31, 41, 55, 0.92));
}

.app-footer-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.app-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.app-footer-title {
  color: #f9fafb;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.app-footer-subtitle {
  color: #9ca3af;
  font-size: 12px;
  line-height: 1.35;
}

.app-footer-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.app-footer-link,
.app-footer-button {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.app-footer-link:hover {
  color: #bfdbfe;
}

.app-footer-link-discord {
  color: #c4b5fd;
}

.app-footer-link-discord:hover {
  color: #ddd6fe;
}

.app-footer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 36px;
  padding: 8px 13px;

  color: #ffffff;
  border-radius: 11px;
  border: 1px solid transparent;
}

.app-footer-button-login {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  border-color: rgba(129, 140, 248, 0.45);
}

.app-footer-button-login:hover {
  background: linear-gradient(135deg, #4338ca, #1d4ed8);
  transform: translateY(-1px);
}

.app-footer-button-logout {
  background: rgba(220, 38, 38, 0.88);
  border-color: rgba(248, 113, 113, 0.4);
}

.app-footer-button-logout:hover {
  background: rgba(185, 28, 28, 0.96);
  transform: translateY(-1px);
}

.app-footer-meta {
  color: #6b7280;
  font-size: 12px;
  white-space: nowrap;
}

.app-footer-mobile-auth {
  display: none;
}

/* ===== Mobile footer ===== */

@media (max-width: 768px) {
  .app-footer {
    margin-top: 28px;
  }

  .app-footer-inner {
    padding: 16px 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .app-footer-brand {
    align-items: center;
    text-align: center;
  }

  .app-footer-title {
    font-size: 14px;
  }

  .app-footer-subtitle {
    display: none;
  }

  .app-footer-nav {
    width: 100%;
    display: block;
  }

  .app-footer-nav .app-footer-link {
    display: none;
  }

  .app-footer-nav .app-footer-link-discord {
    width: 100%;
    min-height: 38px;
    padding: 9px 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ddd6fe;
    background: rgba(79, 70, 229, 0.18);
    border: 1px solid rgba(129, 140, 248, 0.38);
    border-radius: 12px;
    font-size: 13px;
  }

  .app-footer-nav .app-footer-link-discord:hover {
    color: #ffffff;
    background: rgba(79, 70, 229, 0.3);
  }

  .app-footer-mobile-auth {
    display: block;
    width: 100%;
  }

  .app-footer-mobile-auth .app-footer-button {
    width: 100%;
    min-height: 38px;
    font-size: 13px;
  }

  .app-footer-meta {
    white-space: normal;
    text-align: center;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .app-footer-inner {
    padding: 14px 10px;
  }

  .app-footer-nav .app-footer-link-discord,
  .app-footer-mobile-auth .app-footer-button {
    min-height: 36px;
    font-size: 12px;
  }

  .app-footer-meta {
    font-size: 11px;
  }
}