/* ==========================================================================
   SINAC 2026 — Premium Pricing Cards
   Shared between admin (Price.html.twig) and visitor (Pricing.html.twig)
   ========================================================================== */

/* ——— Section ——— */
.sp-pricing-section {
  padding: 60px 0 80px;
}

/* ——— Hero ——— */
.sp-pricing-hero {
  text-align: center;
  margin-bottom: 50px;
}
.sp-pricing-hero h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a202c;
  margin-bottom: 8px;
}
.sp-pricing-hero p {
  font-size: 1rem;
  color: #8896a6;
  max-width: 480px;
  margin: 0 auto;
}

/* ——— Grid ——— */
.sp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ——— Card ——— */
.sp-pricing-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid #e8edf2;
  padding: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: all .3s cubic-bezier(.4,0,.2,1);
  overflow: visible;
}
.sp-pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.1);
  border-color: #c4b5fd;
}

/* ——— Tags row ——— */
.sp-card-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 28px 24px 0;
}
.sp-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .3px;
}
.sp-tag-primary {
  background: #097a91;
  color: #fff;
}
.sp-tag-promo {
  background: #fff;
  color: #e63946;
  border: 1.5px solid #fca5a5;
}
.sp-tag-free {
  background: #ecfdf5;
  color: #059669;
  border: 1.5px solid #a7f3d0;
}
.sp-tag-period {
  background: #f8fafc;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
}

/* ——— Card Header / Price ——— */
.sp-card-header {
  text-align: center;
  padding: 16px 24px 12px;
}
.sp-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #097a91;
  margin-bottom: 16px;
}
.sp-price-block {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
}
.sp-price-currency {
  font-size: 1.1rem;
  font-weight: 700;
  color: #4a5568;
  align-self: flex-start;
  margin-top: 8px;
}
.sp-price-value {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1;
  letter-spacing: -1px;
}
.sp-price-unit {
  font-size: .95rem;
  font-weight: 500;
  color: #a0aec0;
  margin-left: 4px;
}
.sp-price-old {
  font-size: .85rem;
  color: #e63946;
  text-decoration: line-through;
  margin-bottom: 4px;
}
.sp-card-free .sp-price-value {
  color: #059669;
  font-size: 2.4rem;
}

/* Description line under price */
.sp-card-desc {
  font-size: .85rem;
  color: #8896a6;
  line-height: 1.5;
  padding: 0 24px 16px;
  text-align: center;
}

/* ——— Card Body — Features (chips style) ——— */
.sp-card-body {
  padding: 0 24px 12px;
  flex: 1;
}
.sp-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.sp-features li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  font-size: .75rem;
  font-weight: 500;
  color: #4a5568;
  background: #f7fafc;
  border: 1px solid #e8edf2;
  border-radius: 50px;
  white-space: nowrap;
}
.sp-features li.sp-section-label {
  width: 100%;
  background: none;
  border: none;
  justify-content: center;
  padding: 6px 0 2px;
}
.sp-features li i {
  font-size: 12px;
  flex-shrink: 0;
}
.sp-features li .sp-check {
  color: #059669;
}
.sp-features li .sp-access {
  color: #097a91;
}
.sp-features li.sp-disabled {
  color: #cbd5e0;
}
.sp-features li.sp-disabled .sp-check {
  background: #f7fafc;
  color: #cbd5e0;
}

/* Section divider inside card */
.sp-section-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: #a0aec0;
  margin: 12px 0 4px;
  padding-top: 12px;
  border-top: 1px dashed #e8edf2;
}

/* ——— Card Footer — Button ——— */
.sp-card-footer {
  padding: 8px 24px 28px;
}
.sp-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  cursor: pointer;
  border: none;
}
.sp-btn-primary {
  background: #097a91;
  color: #fff;
}
.sp-btn-primary:hover {
  background: #06667a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(9,122,145,.3);
}
.sp-btn-outline {
  background: #fff;
  color: #097a91;
  border: 2px solid #097a91;
}
.sp-btn-outline:hover {
  background: #097a91;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(9,122,145,.3);
}
.sp-btn-free {
  background: #ecfdf5;
  color: #059669;
  border: 2px solid #059669;
}
.sp-btn-free:hover {
  background: #059669;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(5,150,105,.25);
}

/* ——— Alert info box (admin) ——— */
.sp-alert-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: .88rem;
  margin-bottom: 24px;
}
.sp-alert-box.sp-alert-warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.sp-alert-box.sp-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.sp-alert-box i {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}
.sp-alert-box .sp-alert-actors {
  font-weight: 600;
  color: #1a202c;
  margin-top: 4px;
}

/* ——— Responsive ——— */
@media (max-width: 1200px) {
  .sp-pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .sp-pricing-section { padding: 40px 0 60px }
  .sp-pricing-hero h2 { font-size: 1.6rem }
  .sp-pricing-grid {
    grid-template-columns: 1fr;
  }
  .sp-price-value { font-size: 2.4rem }
}
@media (max-width: 480px) {
  .sp-pricing-card {
    border-radius: 12px;
  }
  .sp-card-tags { padding: 20px 16px 0 }
  .sp-card-header { padding: 12px 16px 8px }
  .sp-card-desc { padding: 0 16px 10px }
  .sp-card-body { padding: 0 16px 8px }
  .sp-card-footer { padding: 8px 16px 20px }
  .sp-price-value { font-size: 1.8rem }
  .sp-features li { font-size: .7rem; padding: 3px 10px }
  .sp-features { gap: 5px }
  .sp-pricing-hero h2 { font-size: 1.4rem }
}
