/**
 * Styles pour le front-end (visiteurs et utilisateurs)
 * Fichier : assets/css/public.css
 *
 * Note : Les styles du widget paywall sont dans templates/paywall-widget.php
 * pour permettre leur surcharge via le theme.
 */

:root {
  --yidp-primary: #2d2d86;
  --yidp-primary-dark: #2a3d9e;
  --yidp-secondary: #344bc1;
  --yidp-sub: #ffd700;
  --yidp-success: #10b981;
  --yidp-muted: #64748b;
  --yidp-light: #f8fafc;
  --yidp-border: #e2e8f0;
  --yidp-text: #1a1a2e;
  --yidp-site-bg: #fff9f3;
}

/* ========================================
   PAGES DE SUCCES/ANNULATION
======================================== */

.youngid-paywall-success-page,
.youngid-paywall-cancel-page {
  max-width: 500px;
  margin: 60px auto;
  text-align: center;
  padding: 0 20px;
}

.success-box,
.cancel-box {
  background: white;
  padding: 60px 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #10b981;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 30px;
  animation: scaleIn 0.5s ease-out;
}

.cancel-icon {
  width: 80px;
  height: 80px;
  background: #f59e0b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 30px;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.success-box h2,
.cancel-box h2 {
  margin: 0 0 20px;
  color: #1d1d1f;
  font-size: 28px;
}

.success-box p,
.cancel-box p {
  margin-bottom: 15px;
  color: #666;
  font-size: 16px;
}

.youngid-paywall-button-secondary {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 24px;
  background: white;
  color: var(--yidp-primary);
  border: 2px solid var(--yidp-primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.youngid-paywall-button-secondary:hover {
  background: var(--yidp-primary);
  color: white;
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 768px) {
  .success-box,
  .cancel-box {
    padding: 40px 20px;
  }
}

/* ========================================
   UTILITAIRES
======================================== */

.youngid-paywall-hidden {
  display: none !important;
}

.youngid-paywall-text-center {
  text-align: center;
}

.youngid-paywall-mt-20 {
  margin-top: 20px;
}

.youngid-paywall-mb-20 {
  margin-bottom: 20px;
}
