/**
 * @file
 * Subscription plans styles.
 */

/* Header */
.subscriptions__header {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.subscriptions__header h1 {
  margin: 0 0 10px;
  font-size: 2rem;
}

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

/* Sections */
.subscriptions__section {
  padding: 0 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.subscriptions__section h2 {
  text-align: center;
  margin: 0 0 30px;
  font-size: 1.5rem;
  color: #333;
}

/* Plan cards grid */
.subscription-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.subscription-plans--two-col {
  max-width: 800px;
  margin: 0 auto;
}

/* Plan card */
.plan-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.plan-card--highlight {
  border: 2px solid var(--store-primary, #d32f2f);
  transform: scale(1.02);
}

.plan-card--highlight:hover {
  transform: scale(1.02) translateY(-4px);
}

/* Highlight badge */
.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--store-primary, #d32f2f);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* Header */
.plan-card__header {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
  margin-bottom: 20px;
}

.plan-card__name {
  margin: 0 0 15px;
  font-size: 1.5rem;
  color: #333;
}

.plan-card__price {
  margin-bottom: 10px;
}

.plan-card__amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
}

.plan-card__period {
  font-size: 1rem;
  color: #666;
}

.plan-card__description {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Features list */
.plan-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
  flex-grow: 1;
}

.plan-card__features li {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #444;
}

.plan-card__features li:last-child {
  border-bottom: none;
}

.plan-card__features .checkmark {
  color: var(--store-success, #4caf50);
  font-weight: bold;
  flex-shrink: 0;
}

/* Footer */
.plan-card__footer {
  padding-top: 20px;
  text-align: center;
}

.plan-card__button {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--store-primary, #d32f2f);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.2s;
}

.plan-card__button:hover {
  background: #b71c1c;
  color: white;
}

.plan-card__button.button--disabled {
  background: #e0e0e0;
  color: #999;
  cursor: default;
}

/* FAQ section */
.subscriptions__faq {
  padding: 40px 20px 60px;
  max-width: 800px;
  margin: 0 auto;
  background: #f9f9f9;
  border-radius: 12px;
}

.subscriptions__faq h2 {
  text-align: center;
  margin: 0 0 30px;
}

.faq-item {
  margin-bottom: 25px;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: #333;
}

.faq-item p {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
  .subscription-plans {
    grid-template-columns: 1fr;
  }
  
  .plan-card--highlight {
    transform: none;
  }
  
  .plan-card--highlight:hover {
    transform: translateY(-4px);
  }
  
  .plan-card__amount {
    font-size: 2rem;
  }
}

/* API card style */
.plan-card--api {
  border: 2px solid #7c4dff;
  background: linear-gradient(180deg, #f3f0ff 0%, #fff 30%);
}

.plan-card--api:hover {
  box-shadow: 0 8px 24px rgba(124, 77, 255, 0.2);
}

.plan-card__badge--api {
  background: #7c4dff;
}

.plan-card--api .plan-card__amount {
  color: #7c4dff;
}

.plan-card--api .plan-card__button {
  background: #7c4dff;
}

.plan-card--api .plan-card__button:hover {
  background: #651fff;
}

/* API Pro card - Coming Soon variant */
.plan-card--api-pro {
  border: 2px solid #b388ff;
  background: linear-gradient(180deg, #ede7f6 0%, #fff 30%);
  opacity: 0.85;
}

.plan-card--api-pro:hover {
  opacity: 1;
  box-shadow: 0 8px 24px rgba(179, 136, 255, 0.2);
}

.plan-card__badge--api-pro {
  background: linear-gradient(135deg, #7c4dff, #b388ff);
  white-space: nowrap;
}

.plan-card--api-pro .plan-card__amount {
  color: #b388ff;
}

.plan-card--api-pro .plan-card__button {
  background: #b388ff;
  cursor: default;
}

.plan-card--api-pro .plan-card__button:hover {
  background: #9c64ff;
}

/* =============================================
   Plan Groups
   ============================================= */

.subscriptions__groups {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.plan-group {
  margin-bottom: 48px;
  --group-accent: #1976d2;
}

.plan-group__header {
  border-left: 4px solid var(--group-accent);
  padding: 12px 20px;
  margin-bottom: 24px;
}

.plan-group__title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #333;
}

.plan-group__description {
  color: #666;
  margin: 0;
  font-size: 0.95rem;
}

.plan-group__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  align-items: stretch;
}

/* Assessment price styling */
.plan-card__amount--assessment {
  font-size: 1.25rem;
  font-weight: 600;
  font-style: italic;
  color: #666;
}

/* Subtitle text */
.subscriptions__subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

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