/**
 * @file
 * Styles for the magazine paywall teaser and banner.
 */

/* --- Teaser with gradient fade-out --- */
.paywall-teaser__text-wrapper {
  position: relative;
  max-height: 300px;
  overflow: hidden;
}

.paywall-teaser__text {
  line-height: 1.6;
}

.paywall-teaser__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
  pointer-events: none;
}

/* --- Paywall banner --- */
.paywall-banner {
  margin: 2rem 0;
  padding: 2rem;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  text-align: center;
}

.paywall-banner__title {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.paywall-banner__message {
  margin-bottom: 1.5rem;
  color: #555;
}

.paywall-banner__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.paywall-banner__btn {
  min-width: 180px;
}

/* --- Local AMA SSO sign-in page --- */
.ama-sso-login {
  display: flex;
  justify-content: center;
  padding: 4rem 1rem;
}

.ama-sso-login__card {
  max-width: 620px;
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.08);
}

.ama-sso-login__button {
  margin: 1rem 0;
}

.ama-sso-login__note {
  margin-bottom: 0;
  color: #555;
  font-size: 0.95rem;
}

/* --- Remaining articles notice (used by block outside paywall) --- */
.paywall-remaining {
  text-align: center;
  padding: 0.75rem 1rem;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
