/*
 * ================================================================
 * STYLESHEET FOR PRICING TIER COMPONENT
 * Final Version - Robust Grid & Flexbox Implementation
 * ================================================================
 */

/* -- Section Wrapper -- */
.pricing-tier-wrapper {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 3rem 1rem;
    width: 100%;
}

/* -- Content Container -- */
.pricing-tier-container {
    max-width: 900px; /* Controls the width of the top two cards */
    margin: 0 auto;
}

/* -- Header -- */
.pricing-tier-header {
    text-align: center;
    margin-bottom: 3rem;
}

.pricing-tier-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.5rem;
}

.pricing-tier-header p {
    font-size: 1.1rem;
    color: #4b5563;
    margin: 0;
}

/* -- The Grid Layout -- */
.pricing-tier-grid {
    display: flex; /* Use flexbox for the container */
    flex-wrap: wrap; /* Allow items to wrap */
    justify-content: center; /* Center all items horizontally */
    gap: 2rem;
}

/* -- Card Base Styles -- */
.pricing-tier-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 420px; /* Controls max width of each card */
    display: flex;
    flex-direction: column; /* Key for internal alignment */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Make the content area expand, pushing the button down */
.pricing-tier-content {
    flex-grow: 1;
}

/* -- Tier-Specific Styles (Glows & Borders) -- */
.is-gold {
    border: 2px solid #fbbd23;
    box-shadow: 0 0 20px 7px rgba(251, 189, 35, 0.4);
}

.is-platinum {
    border: 2px solid #ef4444;
    box-shadow: 0 0 25px 10px rgba(239, 68, 68, 0.5);
    /* The Platinum card naturally centers because the main container uses justify-content: center */
}

/* -- Card Content -- */
.pricing-tier-content h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.pricing-tier-description {
    text-align: center;
    color: #4b5563;
    margin: 0 auto 1.5rem;
    min-height: 40px; /* Helps align content across cards */
}

.pricing-tier-price-block {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-tier-amount {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
}

.pricing-tier-tagline {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-top: 0.25rem;
}

.pricing-tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}

.pricing-tier-features li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.pricing-tier-features li::before {
    content: '✓';
    color: #10b981;
    font-weight: bold;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

/* -- Button Styles -- */
.pricing-tier-button {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #d1d5db;
    background-color: #f3f4f6;
    color: #1f2937;
    margin-top: auto; /* Pushes button to the bottom */
    transition: background-color 0.2s;
}

.pricing-tier-button:hover {
    background-color: #e5e7eb;
}

.is-gold-button {
    background-color: #fbbd23;
    border-color: #fbbd23;
    color: #111827;
}

.is-gold-button:hover {
    background-color: #fca510;
}

.is-platinum-button {
    background-color: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
}

.is-platinum-button:hover {
    background-color: #dc2626;
}

/* Mobile responsive adjustments */
@media (max-width: 600px) {
    .pricing-tier-card {
        padding: 1.5rem;
    }
}


  /* 1. Widen the pricing container so 3 cards fit */
  .pricing-tier-container {
    max-width: 1140px !important;
    margin: 0 auto !important;
  }

  /* 2. Make the grid a true flex row, centered */
  .pricing-tier-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 2rem !important;
  }

  /* 3. Each card bases at 300px but can grow to max‑350px */
  .pricing-tier-card {
    flex: 0 1 300px !important;
    max-width: 350px !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* 4. Push the button to the bottom & center it */
  .pricing-tier-content {
    flex-grow: 1 !important;
  }
  .pricing-tier-button {
    display: inline-block !important;
    width: auto !important;
    margin: 1rem auto 0 auto !important;
    /* you can adjust min-width here if you’d like:
       min-width: 180px; */
  }

  /* 5. On small screens, stack cards full‑width */
  @media (max-width: 768px) {
    .pricing-tier-card {
      flex: 0 1 100% !important;
      max-width: 100% !important;
    }
  }



 
  /* ─── Desktop: force one single row ─── */
  @media (min-width: 769px) {
    .pricing-tier-grid {
      flex-wrap: nowrap !important;
    }
    .pricing-tier-card {
      /* let cards shrink/grow evenly */
      flex: 1 1 0 !important;
      max-width: 350px !important;
    }
  }

  /* ─── Mobile: full‑width stacking ─── */
  @media (max-width: 768px) {
    .pricing-tier-grid {
      flex-wrap: wrap !important;
    }
    .pricing-tier-card {
      flex: 0 1 100% !important;
      max-width: 100% !important;
    }
  }
/* ─── Last addition ─── */


  /* 1) Price + subtitle background */
  .card-pricing.silver-glow .price,
  .card-pricing.silver-glow .price-subtitle {
    background-color: #eef2ff;
    display: block;
  }
  .card-pricing.gold-glow .price,
  .card-pricing.gold-glow .price-subtitle {
    background-color: #fefce8;
    display: block;
  }
  .card-pricing.platinum-glow .price,
  .card-pricing.platinum-glow .price-subtitle {
    background-color: #fff1f2;
    display: block;
  }

  /* 2) Padding & rounding for that block */
  .card-pricing .price {
    padding: 1rem 0;
    margin: 0;
    border-radius: 12px 12px 0 0;
    font-size: 3.5rem;
  }
  .card-pricing .price-subtitle {
    padding: 0.5rem 0;
    margin: 0 0 1.5rem;
    border-radius: 0 0 12px 12px;
    font-size: 1rem;
  }

  /* 3) Separator between description & price-block */
  .card-pricing .card-description {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
  }

  /* 4) Thin lines between feature items */
  .card-pricing .features li {
    padding: 0.75rem 0;
  }
  .card-pricing .features li + li {
    border-top: 1px solid #e5e7eb;
  }



 /* ─── Thin separators ─── */
.pricing-tier-description {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e5e7eb;
}
.pricing-tier-features li {
  padding: 0.4rem 0;
}
.pricing-tier-features li + li {
  margin-top: 0.4rem;
  border-top: 1px solid #e5e7eb;
}

/* ─── Price block ─── */
.pricing-tier-price-block {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  background-color: #f9fafb;
  text-align: center;
}

/* Tier‑specific border colors */
.is-gold .pricing-tier-price-block {
  border-color: #fbbd23;
  background-color: rgba(251, 189, 35, 0.1);
}
.is-platinum .pricing-tier-price-block {
  border-color: #ef4444;
  background-color: rgba(239, 68, 68, 0.08);
}

/* ─── Amount & tagline ─── */
.pricing-tier-amount {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0;
}
.pricing-tier-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  margin-top: 0.25rem;
}



