/* Invite page styles */

.invite-page {
  padding: 160px 24px 120px;
  min-height: 80vh;
  min-height: 80dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.invite-card {
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 60px 40px;
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.invite-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeInUp 0.6s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.invite-state--fallback {
  display: none;
}

.invite-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
  background: rgba(59, 130, 246, 0.1);
  color: var(--blue);
  font-size: 36px;
}

[data-theme="dark"] .invite-icon {
  background: rgba(59, 130, 246, 0.15);
}

/* The server's own icon covers the glyph; the glyph shows if it fails. */
.invite-icon {
  position: relative;
}

.invite-server-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: var(--bg-card);
}

.invite-card h1,
.invite-card h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.invite-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Member count under the server name. Only rendered when the invite API
   returned one, so it must not reserve space when absent. */
.invite-members {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 15px;
  color: var(--text-secondary);
}

.invite-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}

.invite-actions .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.invite-retry {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

.invite-retry:hover {
  color: var(--text-primary);
}

.invite-error-icon {
  font-size: 48px;
  color: var(--red);
  margin-bottom: 24px;
}

@media (max-width: 600px) {
  .invite-page {
    padding: 120px 16px 80px;
  }

  .invite-card {
    padding: 40px 24px;
  }

  .invite-card h1,
  .invite-card h2 {
    font-size: 22px;
  }

  .invite-subtitle {
    font-size: 15px;
  }
}
