/*
=================================================
  UPGRADE PROMPT MODAL - CLEAN & MODERN STYLE
  Inspired by Smallpdf design
=================================================
*/

/* === OVERLAY === */
.upgrade-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.upgrade-prompt-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === MODAL CONTAINER === */
.upgrade-prompt-modal {
  width: 90%;
  max-width: 520px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.upgrade-prompt-overlay.active .upgrade-prompt-modal {
  transform: scale(1);
  opacity: 1;
}

/* === INNER CONTENT === */
.upgrade-prompt-inner {
  padding: 40px 32px;
}

/* === HEADER === */
.upgrade-prompt-header {
  text-align: center;
  margin-bottom: 28px;
}

.upgrade-prompt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  border-radius: 50%;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
  animation: iconBounce 2s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.upgrade-prompt-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
  line-height: 1.3;
}

.upgrade-prompt-subtitle {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

/* === CONTENT === */
.upgrade-prompt-content {
  margin-bottom: 28px;
}

/* === BENEFITS LIST with CHECKMARK === */
.upgrade-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upgrade-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
  padding: 12px 16px;
  background: #f9fafb;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.upgrade-benefits-list li:hover {
  background: #f3f4f6;
  transform: translateX(4px);
}

.upgrade-benefits-list li::before {
  content: '✓';
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #3b82f6, #1e40af);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* === LOGIN TEXT === */
.upgrade-prompt-login-text {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: #6b7280;
}

.upgrade-prompt-login-link {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  margin-left: 4px;
}

.upgrade-prompt-login-link:hover {
  color: #1e40af;
  text-decoration: underline;
}

/* === ACTIONS === */
.upgrade-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upgrade-btn-primary,
.upgrade-btn-secondary {
  width: 100%;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
}

.upgrade-btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* .upgrade-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
} */

.upgrade-btn-primary:active {
  transform: translateY(0);
}

.upgrade-btn-secondary {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #e5e7eb;
}

/* .upgrade-btn-secondary:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
} */

.upgrade-btn-secondary:active {
  transform: translateY(0);
}

/* === DARK MODE === */
body.dark-mode .upgrade-prompt-modal {
  background: #1f2937;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

body.dark-mode .upgrade-prompt-header h2 {
  color: #f9fafb;
}

body.dark-mode .upgrade-prompt-subtitle {
  color: #9ca3af;
}

body.dark-mode .upgrade-benefits-list li {
  background: #374151;
  color: #e5e7eb;
}

body.dark-mode .upgrade-benefits-list li:hover {
  background: #4b5563;
}

body.dark-mode .upgrade-prompt-login-text {
  color: #9ca3af;
}

body.dark-mode .upgrade-prompt-login-link {
  color: #60a5fa;
}

body.dark-mode .upgrade-prompt-login-link:hover {
  color: #3b82f6;
}

body.dark-mode .upgrade-btn-secondary {
  background: #374151;
  color: #d1d5db;
  border-color: #4b5563;
}

body.dark-mode .upgrade-btn-secondary:hover {
  background: #4b5563;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
  .upgrade-prompt-modal {
    width: 95%;
    max-width: none;
  }

  .upgrade-prompt-inner {
    padding: 32px 24px;
  }

  .upgrade-prompt-header h2 {
    font-size: 1.5rem;
  }

  .upgrade-prompt-subtitle {
    font-size: 0.9rem;
  }

  .upgrade-benefits-list li {
    font-size: 0.875rem;
    padding: 10px 12px;
  }

  .upgrade-btn-primary,
  .upgrade-btn-secondary {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* === SMOOTH ENTRANCE ANIMATION === */
@keyframes slideDown {
  from {
    transform: translateY(-20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.upgrade-prompt-overlay.active .upgrade-prompt-modal {
  animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
