/* ========================================
   BoozeButler Paywall Styles
   Chunk: Pricing & Upgrade Funnel
   ======================================== */

.paywall-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  padding: var(--space-xl);
  position: relative;
  overflow-y: auto;
}

.paywall-close {
  position: fixed;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.paywall-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

/* Header Section */
.paywall-header {
  text-align: center;
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
  color: white;
}

.paywall-illustration {
  margin-bottom: var(--space-lg);
}

.illustration-icon {
  font-size: 80px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

.paywall-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 var(--space-md) 0;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.paywall-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin: 0;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Subscription Selector */
.subscription-selector {
  max-width: 800px;
  margin: 0 auto var(--space-xl);
}

.billing-toggle {
  display: flex;
  gap: var(--space-sm);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  padding: 4px;
  max-width: 400px;
  margin: 0 auto;
}

.toggle-btn {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: none;
  background: transparent;
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.toggle-btn.active {
  background: white;
  color: #667eea;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.savings-badge {
  display: inline-block;
  background: #10b981;
  color: white;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 8px;
  margin-left: 4px;
  font-weight: 600;
}

/* Tier Comparison */
.tier-comparison {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  max-width: 1200px;
  margin: 0 auto var(--space-xl);
}

.tier-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tier-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.tier-featured {
  border-color: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0.3);
  }
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.sparkle-badge {
  position: absolute;
  top: -12px;
  right: var(--space-md);
  font-size: 24px;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
  0%, 100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.8;
  }
}

.tier-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tier-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 var(--space-sm) 0;
  color: #1f2937;
}

.tier-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #667eea;
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: #6b7280;
}

.tier-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl) 0;
  min-height: 300px;
}

.tier-features li {
  padding: var(--space-xs) 0;
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.tier-features li.feature-limited {
  color: #9ca3af;
  text-decoration: line-through;
}

.tier-button {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  border: none;
  border-radius: var(--radius-button);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #e5e7eb;
  color: #6b7280;
}

.tier-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.tier-button-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.tier-button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.tier-button-premium {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(240, 147, 251, 0.4);
}

.tier-button-premium:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(240, 147, 251, 0.5);
}

/* One-Time Purchases */
.one-time-purchases {
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin: 0 0 var(--space-lg) 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.purchase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.purchase-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.2s ease;
}

.purchase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.purchase-icon {
  font-size: 48px;
  margin-bottom: var(--space-sm);
}

.purchase-name {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs) 0;
  color: #1f2937;
}

.purchase-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  margin: 0 0 var(--space-md) 0;
}

.purchase-button {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid #667eea;
  background: transparent;
  color: #667eea;
  border-radius: var(--radius-button);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.purchase-button:hover {
  background: #667eea;
  color: white;
}

/* Why Different Section */
.why-different {
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-xl);
}

.different-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.different-item {
  text-align: center;
  color: white;
}

.different-icon {
  font-size: 48px;
  margin-bottom: var(--space-sm);
}

.different-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs) 0;
}

.different-item p {
  font-size: 0.9375rem;
  margin: 0;
  opacity: 0.9;
}

/* Testimonials */
.testimonials-section {
  max-width: 1000px;
  margin: 0 auto var(--space-xl);
  padding: var(--space-xl);
}

.testimonials-carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  text-align: center;
}

.testimonial-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #374151;
  margin: 0 0 var(--space-sm) 0;
  font-style: italic;
}

.testimonial-author {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
  font-weight: 600;
}

/* Footer */
.paywall-footer {
  text-align: center;
  padding: var(--space-xl);
  color: white;
}

.money-back {
  font-size: 0.9375rem;
  margin: 0 0 var(--space-md) 0;
  opacity: 0.9;
}

.restore-button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-button);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.restore-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .paywall-container {
    padding: var(--space-md);
  }

  .paywall-close {
    top: var(--space-md);
    right: var(--space-md);
  }

  .tier-comparison {
    grid-template-columns: 1fr;
  }

  .purchase-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .different-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-carousel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .purchase-grid {
    grid-template-columns: 1fr;
  }

  .different-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Upgrade Nudges & Lock Overlays
   ======================================== */

/* Blurred Recipe Overlay */
.blurred-recipe {
  position: relative;
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

.blurred-recipe .unlock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--builder-card-radius);
  pointer-events: all;
}

.unlock-content {
  text-align: center;
  color: white;
  padding: var(--space-xl);
}

.unlock-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  animation: pulse 2s ease-in-out infinite;
}

.unlock-text {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 var(--space-md) 0;
}

.unlock-button {
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: var(--radius-button);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transition: all 0.2s ease;
}

.unlock-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

/* Upgrade Nudge Banner */
.upgrade-nudge {
  margin-top: var(--space-sm);
  padding: var(--space-md);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.nudge-text {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0;
  color: var(--text);
  font-size: 0.9375rem;
}

.nudge-icon {
  font-size: 20px;
}

.nudge-button {
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: var(--radius-button);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.nudge-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Inventory Upgrade Banner */
.inventory-upgrade-nudge,
.upgrade-banner {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.banner-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.banner-text {
  flex: 1;
}

.banner-text strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 4px;
}

.banner-text p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.banner-button {
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: var(--radius-button);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.banner-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* Locked Feature Indicator */
.feature-locked {
  position: relative;
  opacity: 0.6;
}

.feature-locked::after {
  content: '🔒';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 24px;
  z-index: 5;
}

/* Responsive Nudges */
@media (max-width: 768px) {
  .upgrade-nudge {
    flex-direction: column;
    align-items: stretch;
  }

  .banner-content {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .banner-button {
    width: 100%;
  }
}

