/**
 * Pricing Component Styles
 */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.pricing-column {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-column:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
}

.pricing-column.featured {
  border-color: #007bff;
  border-width: 3px;
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.2);
}

.pricing-column.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: -35px;
  background: #007bff;
  color: #fff;
  padding: 5px 40px;
  transform: rotate(45deg);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.current-plan-badge {
  position: absolute;
  top: 20px;
  left: -35px;
  background: #28a745;
  color: #fff;
  padding: 5px 40px;
  transform: rotate(-45deg);
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.pricing-header h3 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.pricing-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
  min-height: 40px;
}

.pricing-price {
  margin: 30px 0;
  padding: 20px 0;
  border-top: 2px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
}

.price-amount {
  font-size: 48px;
  font-weight: bold;
  color: #007bff;
  display: block;
  line-height: 1;
}

.price-period {
  font-size: 16px;
  color: #666;
  display: block;
  margin-top: 5px;
}

.pricing-features {
  margin: 30px 0;
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 12px 0;
  font-size: 15px;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li i {
  color: #28a745;
  margin-right: 10px;
  font-size: 16px;
}

.pricing-footer {
  margin-top: 30px;
}

.subscribe-btn {
  width: 100%;
  padding: 15px 30px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #007bff;
  color: #fff;
}

.subscribe-btn:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.subscribe-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.subscribe-btn.current-plan {
  background: #28a745;
  cursor: default;
}

.subscribe-btn.current-plan:hover {
  background: #28a745;
  transform: none;
}

.subscribe-btn.switch-plan {
  background: #ffc107;
  color: #000;
}

.subscribe-btn.switch-plan:hover {
  background: #e0a800;
}

.pricing-column.featured .subscribe-btn {
  background: #28a745;
}

.pricing-column.featured .subscribe-btn:hover {
  background: #218838;
}

/* Loading State */
.pricing-loading {
  text-align: center;
  padding: 60px 20px;
}

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

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

.pricing-loading p {
  color: #666;
  font-size: 16px;
}

/* Error & Empty States */
.error-message,
.no-plans-message {
  text-align: center;
  padding: 40px 20px;
  font-size: 16px;
  color: #666;
}

.error-message {
  color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pricing-column.featured {
    transform: scale(1);
  }

  .pricing-column.featured:hover {
    transform: translateY(-10px);
  }

  .pricing-header h3 {
    font-size: 24px;
  }

  .price-amount {
    font-size: 40px;
  }
}

/* Integration with existing theme */
.pricing-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.pricing-section .section-title {
  text-align: center;
  margin-bottom: 50px;
}

.pricing-section .section-title h2 {
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #333;
}

.pricing-section .section-title p {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Plan Change Modal */
.plan-change-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.plan-change-modal {
  background: #fff;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.plan-change-modal .modal-header {
  padding: 25px 30px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-change-modal .modal-header h3 {
  margin: 0;
  font-size: 24px;
  color: #333;
}

.plan-change-modal .modal-close {
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.plan-change-modal .modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.plan-change-modal .modal-body {
  padding: 30px;
}

.plan-change-modal .current-plan-info,
.plan-change-modal .new-plan-info {
  font-size: 16px;
  color: #555;
  margin-bottom: 15px;
}

.plan-change-modal .plan-change-info {
  background: #f8f9fa;
  border-left: 4px solid #007bff;
  padding: 20px;
  margin-top: 20px;
  border-radius: 4px;
}

.plan-change-modal .info-item {
  font-size: 15px;
  color: #555;
  margin: 10px 0;
  line-height: 1.6;
}

.plan-change-modal .modal-footer {
  padding: 20px 30px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}

.plan-change-modal .btn-cancel,
.plan-change-modal .btn-confirm {
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.plan-change-modal .btn-cancel {
  background: #f0f0f0;
  color: #555;
}

.plan-change-modal .btn-cancel:hover {
  background: #e0e0e0;
}

.plan-change-modal .btn-confirm {
  background: #007bff;
  color: #fff;
}

.plan-change-modal .btn-confirm:hover {
  background: #0056b3;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.plan-change-modal .btn-confirm:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}
