/**
 * Unified Paywall Teaser Styles
 * 
 * Used across all plugins for consistent paywall appearance.
 */

.rd-paywall-teaser {
  margin: 48px 0;
  padding: 0;
}

.rd-paywall-teaser-inner {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .rd-paywall-teaser-inner {
    flex-direction: row;
  }
}

.rd-paywall-teaser-image {
  position: relative;
  flex: 0 0 40%;
  min-height: 200px;
}

.rd-paywall-teaser-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rd-paywall-teaser-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.rd-paywall-teaser-content {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.rd-paywall-teaser-title {
  font-size: 1.5em;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #212529;
}

.rd-paywall-teaser-text {
  font-size: 1.1em;
  color: #495057;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.rd-paywall-teaser-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.rd-paywall-teaser-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #495057;
  font-size: 0.95em;
}

.rd-paywall-teaser-feature svg {
  color: #0066cc;
  flex-shrink: 0;
}

.rd-paywall-teaser-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.rd-paywall-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

.rd-paywall-btn-primary {
  background: #0066cc;
  color: white;
  border: none;
}

.rd-paywall-btn-primary:hover {
  background: #0052a3;
  color: white;
}

.rd-paywall-btn-secondary {
  background: white;
  color: #0066cc;
  border: 2px solid #0066cc;
}

.rd-paywall-btn-secondary:hover {
  background: #f0f7ff;
}

.rd-paywall-teaser-note {
  font-size: 0.9em;
  color: #6c757d;
  margin: 0;
}

/* Content teaser with fade-out effect */
.rd-paywall-content-teaser {
  position: relative;
  overflow: hidden;
  max-height: 200px;
}

.rd-paywall-content-teaser-text {
  color: #495057;
  line-height: 1.7;
}

.rd-paywall-content-teaser-text p {
  margin: 0 0 1em 0;
}

.rd-paywall-content-teaser-text p:last-child {
  margin-bottom: 0;
}

.rd-paywall-content-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, 0.8) 50%,
    rgba(255, 255, 255, 1) 100%
  );
  pointer-events: none;
}

/* When content teaser is present, reduce top margin of paywall box */
.rd-paywall-teaser--with-preview {
  margin-top: 0;
}
