/**
 * Popup and Beta Waitlist Styles for TheRestoredWord
 * Consistent with existing design system
 */

/* ======================
   Welcome Popup Styles
   ====================== */

.trw-welcome-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.trw-welcome-popup.trw-popup-visible {
  opacity: 1;
  pointer-events: all;
}

.trw-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
}

.trw-popup-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #1a1a1a;
  border: 2px solid #64ffda;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(100, 255, 218, 0.3);
}

.trw-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #64ffda;
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.trw-popup-close:hover {
  background: rgba(100, 255, 218, 0.1);
  transform: rotate(90deg);
}

.trw-popup-icon {
  text-align: center;
  margin-bottom: 24px;
}

.trw-popup-content h2 {
  color: #64ffda;
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 12px 0;
}

.trw-popup-subtitle {
  color: #b8b8b8;
  font-size: 16px;
  text-align: center;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.trw-popup-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
}

.trw-popup-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e0e0e0;
  font-size: 15px;
  margin-bottom: 12px;
}

.trw-popup-features li svg {
  flex-shrink: 0;
}

.trw-popup-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}

.trw-popup-btn-primary {
  background: #64ffda;
  color: #000;
}

.trw-popup-btn-primary:hover {
  background: #7cffe6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.4);
}

.trw-popup-btn-secondary {
  background: transparent;
  color: #b8b8b8;
  border: 1px solid #444;
}

.trw-popup-btn-secondary:hover {
  color: #e0e0e0;
  border-color: #64ffda;
}

.trw-popup-privacy {
  text-align: center;
  font-size: 12px;
  color: #888;
  margin: 16px 0 0 0;
  line-height: 1.5;
}

.trw-popup-privacy a {
  color: #64ffda;
  text-decoration: none;
}

.trw-popup-privacy a:hover {
  text-decoration: underline;
}

/* ======================
   Beta Waitlist Styles
   ====================== */

.trw-beta-card {
  background: #1a1a1a;
  border: 2px solid #64ffda;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.trw-beta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 50%;
  margin-bottom: 24px;
}

.trw-beta-icon-success {
  background: rgba(100, 255, 218, 0.2);
}

.trw-beta-card h3 {
  color: #64ffda;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 16px 0;
}

.trw-beta-card p {
  color: #b8b8b8;
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.trw-beta-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 24px 0 32px 0;
  text-align: left;
}

.trw-beta-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #e0e0e0;
  font-size: 16px;
}

.trw-beta-feature svg {
  flex-shrink: 0;
}

/* Beta Status Grid */
.trw-beta-status {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 24px 0;
  padding: 24px;
  background: rgba(100, 255, 218, 0.05);
  border-radius: 12px;
}

.trw-beta-status-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trw-beta-status-label {
  color: #888;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trw-beta-status-value {
  color: #64ffda;
  font-size: 24px;
  font-weight: 700;
}

.trw-status-invited .trw-beta-status-value {
  color: #7cffe6;
}

/* Beta Invited Section */
.trw-beta-invited {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid #64ffda;
  border-radius: 8px;
  padding: 16px;
  margin: 24px 0;
}

.trw-beta-invited p {
  margin: 0 0 8px 0;
  font-size: 14px;
}

.trw-beta-invited p:last-child {
  margin: 0;
}

.trw-beta-invited strong {
  color: #64ffda;
}

/* Beta Share Section */
.trw-beta-share {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #333;
}

.trw-beta-share p {
  font-size: 14px;
  margin-bottom: 12px;
}

.trw-beta-share-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Button Styles */
.trw-btn {
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.trw-btn-primary {
  background: #64ffda;
  color: #000;
}

.trw-btn-primary:hover {
  background: #7cffe6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 255, 218, 0.4);
}

.trw-btn-secondary {
  background: transparent;
  color: #64ffda;
  border: 1px solid #64ffda;
}

.trw-btn-secondary:hover {
  background: rgba(100, 255, 218, 0.1);
}

.trw-btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* Notification Toast */
.trw-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1a1a1a;
  border: 2px solid #64ffda;
  border-radius: 8px;
  padding: 16px 24px;
  color: #e0e0e0;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 10001;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.trw-notification-visible {
  opacity: 1;
  transform: translateY(0);
}

.trw-notification-success {
  border-color: #64ffda;
}

.trw-notification-error {
  border-color: #ff6b6b;
}

.trw-notification-info {
  border-color: #4ecdc4;
}

/* ======================
   Responsive Design
   ====================== */

@media (max-width: 768px) {
  .trw-popup-content {
    padding: 32px 24px;
    width: 95%;
  }

  .trw-popup-content h2 {
    font-size: 24px;
  }

  .trw-beta-card {
    padding: 32px 24px;
  }

  .trw-beta-card h3 {
    font-size: 24px;
  }

  .trw-beta-status {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px;
  }

  .trw-beta-share-buttons {
    flex-direction: column;
  }

  .trw-beta-share-buttons .trw-btn {
    width: 100%;
  }

  .trw-notification {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .trw-popup-content {
    padding: 24px 20px;
  }

  .trw-beta-card {
    padding: 24px 20px;
  }

  .trw-popup-features li,
  .trw-beta-feature {
    font-size: 14px;
  }

  .trw-beta-status-value {
    font-size: 20px;
  }
}
