/* Subscription Page Styles */

/* Main Container */
.subscription-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Page Header */
.subscription-page .page-header {
  text-align: center;
  margin-bottom: 50px;
}

.subscription-page .page-header h1 {
  font-size: 3rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 20px 0;
}

.subscription-page .page-header p {
  font-size: 1.3rem;
  color: #666;
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
}

/* Loading Spinner */
.loading-spinner {
  display: none;
  text-align: center;
  padding: 50px;
  font-size: 1.2rem;
  color: #667eea;
}

.loading-spinner .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #667eea;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Subscription Content */
.subscription-content {
  display: none;
}

/* Current Subscription Status */
.current-subscription {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  text-align: center;
  display: none;
}

.current-subscription h2 {
  color: #28a745;
  margin: 0 0 15px 0;
}

.current-subscription .subscription-details {
  color: #666;
  margin: 0 0 20px 0;
}

.current-subscription .manage-subscription-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.current-subscription .manage-subscription-btn:hover {
  transform: scale(1.05);
}

/* Signup Prompt */
.signup-prompt {
  background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 40px;
  text-align: center;
  display: none;
}

.signup-prompt h2 {
  color: #333;
  margin: 0 0 15px 0;
}

.signup-prompt p {
  color: #666;
  margin: 0 0 20px 0;
  font-size: 1.1rem;
}

.signup-prompt .show-signup-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
  margin-right: 15px;
}

.signup-prompt .show-signup-btn:hover {
  transform: scale(1.05);
}

.signup-prompt .show-login-btn {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 15px;
}

.signup-prompt .show-login-btn:hover {
  background: #667eea;
  color: white;
}

.signup-prompt .back-to-game-btn {
  background: transparent;
  color: #6c757d;
  border: 1px solid #dee2e6;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.2s ease;
}

.signup-prompt .back-to-game-btn:hover {
  background: #f8f9fa;
  border-color: #adb5bd;
}

/* Pricing Plans */
.pricing-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

/* Plan Card */
.plan-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  text-align: center;
  position: relative;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.plan-card:hover {
  transform: scale(1.02);
}

.plan-card.yearly {
  border-color: #28a745;
  transform: scale(1.05);
}

.plan-card.yearly:hover {
  transform: scale(1.08);
}

.plan-card .best-value-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #28a745;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.plan-card h3 {
  font-size: 1.5rem;
  margin: 0 0 20px 0;
  color: #333;
}

.plan-card .price {
  margin-bottom: 30px;
}

.plan-card .price-amount {
  font-size: 3rem;
  font-weight: bold;
  color: #667eea;
}

.plan-card .price-interval {
  font-size: 1rem;
  color: #666;
  margin-left: 5px;
}

.plan-card .yearly-savings {
  font-size: 0.9rem;
  color: #28a745;
  font-weight: bold;
  margin-top: 5px;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
  text-align: left;
}

.plan-card li {
  padding: 8px 0;
  color: #666;
  display: flex;
  align-items: center;
  gap: 10px;
}

.plan-card li .checkmark {
  color: #28a745;
}

.plan-card .current-plan {
  background: #e9ecef;
  color: #6c757d;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: bold;
}

.plan-card .subscribe-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 100%;
}

.plan-card .subscribe-btn:hover {
  transform: scale(1.05);
}

.plan-card .signup-btn {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 100%;
}

.plan-card .signup-btn:hover {
  transform: scale(1.05);
}

/* Features Section */
.features-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.features-section h2 {
  color: #333;
  margin: 0 0 30px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  text-align: left;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  font-size: 24px;
}

.feature h3 {
  margin: 0 0 10px 0;
  color: #333;
}

.feature p {
  margin: 0;
  color: #666;
}

/* Error Message */
.subscription-page .error-message {
  display: none;
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
  text-align: center;
}

/* Utility Classes */
.visible {
  display: block !important;
}

.hidden {
  display: none !important;
}

/* Success Message */
.success-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #28a745;
  color: white;
  padding: 15px 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 1000;
  font-weight: bold;
}

/* Highlighted Plan */
.plan-card.highlighted {
  border: 3px solid #28a745 !important;
  box-shadow: 0 0 20px rgba(40, 167, 69, 0.3) !important;
}

/* Back to Game Button State */
.back-to-game-btn.going-back {
  background: #28a745 !important;
  color: white !important;
  transform: scale(0.95) !important;
}