/* ================================================
   PLANS.CSS — Xtreme Fitness Studio
   Membership pricing cards
================================================ */

.plans-section {
  background-color: var(--bg-primary);
  padding: 5rem 0;
  border-top: 1px solid var(--primary-color);
  box-shadow: inset 0 0 30px rgba(230, 0, 0, 0.05);
}

.plans-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---- Grid: 3 columns desktop ---- */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

/* ---- Plan Card Base ---- */
.plan-card {
  background-color: var(--bg-tertiary);
  border: 2px solid var(--border-secondary);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.plan-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(230, 0, 0, 0.07), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  border-radius: var(--radius-xl);
}

.plan-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-6px);
  box-shadow: 0 0 30px rgba(230, 0, 0, 0.25);
}

.plan-card:hover::before {
  opacity: 1;
}

/* ---- Featured Card ---- */
.plan-featured {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: 2px solid var(--primary-color);
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(230, 0, 0, 0.45), inset 0 0 30px rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.plan-featured:hover {
  transform: scale(1.05) translateY(-6px);
}

/* ---- Plan Badge ---- */
.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #fff;
  color: var(--primary-color);
  padding: 0.3rem 1rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(230, 0, 0, 0.4);
  white-space: nowrap;
}

/* ---- Plan Name & Info ---- */
.plan-name {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  margin-top: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 0 10px rgba(230, 0, 0, 0.25);
}

.plan-featured .plan-name {
  color: white;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
}

.plan-subtitle {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.plan-featured .plan-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* ---- Price ---- */
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 1.75rem;
}

.price-amount {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(230, 0, 0, 0.4);
  line-height: 1;
}

.plan-featured .price-amount {
  color: white;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.price-period {
  color: var(--text-tertiary);
  font-size: 0.95rem;
  font-weight: 600;
}

.plan-featured .price-period {
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Feature List ---- */
.plan-features {
  list-style: none;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.plan-features li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(230, 0, 0, 0.2);
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
}

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

.plan-featured .plan-features li {
  border-bottom-color: rgba(255, 255, 255, 0.15);
  color: white;
}

.feature-included::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  width: 20px;
  height: 20px;
  background-color: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: bold;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(230, 0, 0, 0.4);
}

.plan-featured .feature-included::before {
  background-color: white;
  color: var(--primary-color);
  box-shadow: none;
}

.feature-excluded::before {
  content: "−";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  width: 20px;
  height: 20px;
  background-color: var(--bg-quaternary);
  color: var(--text-muted);
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
}

.plan-featured .feature-excluded::before {
  background-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Plan Button ---- */
.plan-btn {
  padding: 0.9rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-lg);
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: transparent;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: inset 0 0 10px rgba(230, 0, 0, 0.15);
  text-shadow: 0 0 8px rgba(230, 0, 0, 0.25);
  width: 100%;
  font-family: var(--font-sans);
  margin-top: auto;
}

.plan-featured .plan-btn {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
  box-shadow: none;
  text-shadow: none;
}

.plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(230, 0, 0, 0.5), inset 0 0 15px rgba(230, 0, 0, 0.15);
}

.plan-featured .plan-btn:hover {
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* ================================================
   BREAKPOINTS — Plans
================================================ */

/* Tablet (900px) — maintain 3 col but tighter */
@media (max-width: 900px) {
  .plans-grid {
    gap: 1.25rem;
  }

  .plan-card {
    padding: 1.75rem;
  }

  .plan-featured {
    transform: scale(1.03);
  }

  .plan-featured:hover {
    transform: scale(1.03) translateY(-6px);
  }
}

/* Tablet (768px) — 2 columns */
@media (max-width: 768px) {
  .plans-section {
    padding: 3.5rem 0;
  }

  .plans-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .plan-featured {
    transform: none;
    grid-column: 1 / -1;
  }

  .plan-featured:hover {
    transform: translateY(-6px);
  }
}

/* Mobile (480px) — single column */
@media (max-width: 480px) {
  .plans-section {
    padding: 2.5rem 0;
  }

  .plans-container {
    padding: 0 1rem;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .plan-featured {
    transform: none;
    grid-column: auto;
  }

  .plan-card {
    padding: 1.5rem;
  }

  .plan-name {
    font-size: 1.15rem;
    margin-top: 0.75rem;
  }

  .price-amount {
    font-size: 2rem;
  }

  .plan-features li {
    padding: 0.55rem 0;
    font-size: 0.875rem;
  }

  .plan-btn {
    padding: 0.875rem;
    font-size: 0.9rem;
  }
}

/* Very small (375px) */
@media (max-width: 375px) {
  .plan-card {
    padding: 1.25rem;
  }

  .price-amount {
    font-size: 1.75rem;
  }
}
