/* Pricing Cards Component CSS
   Task 8: Pricing card CSS styling with responsive design
   Requirements: 3.2, 3.3, 3.4, 3.5, 3.6, 3.7
*/

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  transition: all 220ms ease;
}

.pricing-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Popular Card Styling */
.pricing-card--popular {
  border: 2px solid #90a9ff;
  background: linear-gradient(135deg, rgba(144, 169, 255, 0.1), rgba(45, 94, 247, 0.08));
  transform: scale(1.05);
}

.pricing-card--popular:hover {
  background: linear-gradient(135deg, rgba(144, 169, 255, 0.15), rgba(45, 94, 247, 0.1));
  border-color: #90a9ff;
  transform: scale(1.06);
  box-shadow: 0 16px 32px rgba(45, 94, 247, 0.2);
}

/* Popular Badge */
.pricing-card__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.8rem;
  background: linear-gradient(135deg, var(--pulse-accent, #5d5eff), var(--pulse-accent-2, #8890ff));
  border-radius: 999px;
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 12px rgba(93, 94, 255, 0.3);
}

/* Pricing Card Content */
.pricing-card__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

/* Card Title */
.pricing-card__title {
  margin: 0;
  color: var(--pulse-text, #eef2f8);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  line-height: 1.3;
}

/* Card Description */
.pricing-card__description {
  margin: 0;
  color: var(--pulse-muted, #aeb0b8);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Price Section */
.pricing-card__price-section {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

/* Original Price (strikethrough) */
.pricing-card__original-price {
  color: var(--pulse-muted, #aeb0b8);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: line-through;
  opacity: 0.8;
}

/* Price Display */
.pricing-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-card__price-currency {
  color: var(--pulse-text, #eef2f8);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.pricing-card__price-amount {
  color: var(--pulse-text, #eef2f8);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
}

.pricing-card__price-label {
  color: var(--pulse-muted, #aeb0b8);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  margin-left: 0.25rem;
}

.pricing-card__price-gst {
  color: var(--pulse-muted, #aeb0b8);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  margin-left: 0.25rem;
}

/* Features List */
.pricing-card__features {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex: 1;
}

.pricing-card__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--pulse-muted, #aeb0b8);
  font-size: 0.95rem;
  line-height: 1.6;
}

.pricing-card__feature-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  color: var(--pulse-accent, #5d5eff);
  stroke-width: 3;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* CTA Button */
.pricing-card__cta {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0.85rem 1.1rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pulse-accent, #5d5eff), var(--pulse-accent-2, #8890ff));
  color: white;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: capitalize;
  cursor: pointer;
  transition: all 220ms ease;
  text-decoration: none;
  text-align: center;
  box-shadow: 0 4px 12px rgba(93, 94, 255, 0.2);
}

.pricing-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(93, 94, 255, 0.3);
}

.pricing-card__cta:active {
  transform: translateY(0);
}

.pricing-card__cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(93, 94, 255, 0.5);
}

/* Accessibility: Remove outline on mouse, keep on keyboard */
.pricing-card__cta:focus-visible:not(:focus-visible) {
  outline: none;
}

/* Disabled State */
.pricing-card__cta:disabled,
.pricing-card__cta[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  background: linear-gradient(135deg, rgba(93, 94, 255, 0.5), rgba(136, 144, 255, 0.5));
  box-shadow: 0 4px 12px rgba(93, 94, 255, 0.1);
  transform: none !important;
  pointer-events: none;
}

.pricing-card__cta:disabled:hover,
.pricing-card__cta[aria-disabled="true"]:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(93, 94, 255, 0.1);
}

/* Empty State */
.pricing-grid__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--pulse-muted, #aeb0b8);
}

/* Responsive: Ensure proper stacking on mobile */
@media (max-width: 560px) {
  .pricing-card {
    padding: 1.5rem 1rem;
    gap: 1rem;
  }

  .pricing-card__badge {
    top: -10px;
    right: 10px;
    padding: 0.3rem 0.65rem;
    font-size: 0.7rem;
  }

  .pricing-card__title {
    font-size: 1rem;
  }

  .pricing-card__price-amount {
    font-size: clamp(1.75rem, 4vw, 2.2rem);
  }

  .pricing-card__feature {
    font-size: 0.9rem;
  }

  .pricing-card__cta {
    min-height: 40px;
    font-size: 0.9rem;
  }
}
