/* ============================================
   BASE — global rules, page wrapper, shared inputs/buttons
============================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.hub-wrap {
  max-width: 460px;
  margin: 2rem auto 4rem;
  padding: 0 1.5rem;
}

#app-screen { display: none; }

.hub-input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 0.9rem;
  border: 1px solid #ddd2eb;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fff;
  color: #222;
}
.hub-input:focus {
  outline: none;
  border-color: #c6b7e2;
}
textarea.hub-input {
  resize: vertical;
  font-family: inherit;
}

.hub-btn {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: 999px;
  background-color: #c6b7e2;
  color: #3f3550;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.hub-btn:hover {
  background-color: #ddd2eb;
  transform: translateY(-1px);
}

.hub-btn-link {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background-color: #c6b7e2;
  color: #3f3550;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.hub-btn-link:hover {
  background-color: #ddd2eb;
  transform: translateY(-1px);
}

.hub-error {
  color: #b3441f;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  min-height: 1.2rem;
}
.hub-success {
  color: #4a7a55;
  font-size: 0.85rem;
  margin-top: 0.8rem;
}

.hub-loading, .hub-empty {
  text-align: center;
  color: #8a8073;
  padding: 0.5rem 0;
}

/* pulsing logo above any "Loading..." message (-light: white logo for dark video boxes) */
.hub-loading::before {
  content: '';
  display: block;
  width: 44px;
  height: 44px;
  margin: 0.3rem auto 0.5rem;
  background: url('../images/logo-mark-bold-purple.svg') no-repeat center / contain;
  animation: hubLogoPulse 1.4s ease-in-out infinite;
}
.hub-loading-light::before { background-image: url('../images/logo-mark-bold-white.svg'); }

@keyframes hubLogoPulse {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50%      { opacity: 1;    transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hub-loading::before { animation: none; opacity: 0.7; }
}