/**
 * Subscription UI Styles
 * Banners, modals, and subscription-related components
 */

/* Subscription Banner */
.subscription-banner {
  display: none;
  padding: 12px 20px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.subscription-banner.trial-active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.subscription-banner.trial-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.subscription-banner.expired {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.subscription-banner .banner-btn {
  background: white;
  color: #1f2937;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.subscription-banner .banner-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.subscription-banner .banner-btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: all 0.2s ease;
}

.subscription-banner .banner-btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Subscribe Modal */
.subscribe-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.subscribe-modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease;
  text-align: center;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subscribe-modal h2 {
  margin: 0 0 15px 0;
  color: #1f2937;
  font-size: 28px;
  font-weight: 700;
}

.subscribe-modal-message {
  color: #6b7280;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.5;
}

.subscribe-modal-price {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 30px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.subscribe-modal-price .price-amount {
  font-size: 48px;
  font-weight: 700;
  margin: 0;
}

.subscribe-modal-price .price-period {
  font-size: 18px;
  opacity: 0.9;
  margin: 5px 0 15px 0;
}

.subscribe-modal-price .price-features {
  text-align: left;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.subscribe-modal-price .price-features li {
  margin: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subscribe-modal-price .price-features li:before {
  content: "✓";
  font-weight: bold;
  font-size: 18px;
}

.subscribe-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.subscribe-modal-btn {
  padding: 14px 28px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.subscribe-modal-btn-primary {
  background: linear-gradient(135deg, #4285f4 0%, #357ae8 100%);
  color: white;
  flex: 1;
}

.subscribe-modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(66, 133, 244, 0.4);
}

.subscribe-modal-btn-secondary {
  background: #f3f4f6;
  color: #6b7280;
}

.subscribe-modal-btn-secondary:hover {
  background: #e5e7eb;
}

/* Loading Overlay */
.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 20000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-message {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

/* Account Page Styles */
.account-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.account-card {
  background: white;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.account-card h3 {
  margin: 0 0 20px 0;
  color: #1f2937;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.trial {
  background: #dbeafe;
  color: #1e40af;
}

.status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.expired {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.admin {
  background: #f3e8ff;
  color: #6b21a8;
}

.payment-history-table {
  width: 100%;
  border-collapse: collapse;
}

.payment-history-table th {
  text-align: left;
  padding: 12px;
  background: #f9fafb;
  font-weight: 600;
  color: #4b5563;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-history-table td {
  padding: 12px;
  border-top: 1px solid #e5e7eb;
  color: #1f2937;
}

.payment-history-table tr:hover {
  background: #f9fafb;
}

/* Review Form */
.review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.review-form label {
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}

.review-form textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  resize: vertical;
  min-height: 120px;
}

.review-form textarea:focus {
  outline: none;
  border-color: #667eea;
}

.rating-stars {
  display: flex;
  gap: 8px;
  font-size: 32px;
  cursor: pointer;
}

.rating-stars .star {
  color: #d1d5db;
  transition: color 0.2s ease;
}

.rating-stars .star.filled {
  color: #fbbf24;
}

.rating-stars .star:hover,
.rating-stars .star:hover ~ .star {
  color: #fbbf24;
}
