/* ════════════════════════════════════════════════════════════════
   nc-cards-v2.css — تحسينات البطاقات وصفحة التفاصيل (المرحلة 8)
   ════════════════════════════════════════════════════════════════ */

/* === توحيد ارتفاع البطاقات === */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 460px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), box-shadow .25s !important;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15, 41, 53, .12);
}

/* === thumbnail محسّن === */
.product-card__thumb {
  height: 180px !important;
  position: relative;
  overflow: hidden;
  background-size: cover !important;
  background-position: center !important;
}

/* placeholder gradient حسب نوع الدورة (أجمل) */
.product-card__thumb:not(:has(img))::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.4) 0%, transparent 60%);
  pointer-events: none;
}

.product-card__thumb-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  opacity: .85;
}

/* === شارة نوع الدورة محسّنة (أوضح) === */
.product-card__thumb-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.product-card__thumb-badge .badge {
  background: rgba(15, 41, 53, .85) !important;
  backdrop-filter: blur(8px);
  color: #fff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 6px 12px !important;
  border-radius: 30px !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

/* === جسم البطاقة === */
.product-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.product-card__trainer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
  font-size: 12px;
}

.product-card__title {
  font-size: 17px !important;
  font-weight: 800;
  color: #0F2935;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 47px;
}

.product-card__desc {
  font-size: 13px;
  color: #3D5664;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.product-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
}

.product-card__price {
  font-size: 22px;
  font-weight: 900;
  color: #1B8AAC;
  line-height: 1;
}

.product-card__price small {
  font-size: 13px;
  color: #7A8B95;
  font-weight: 600;
  margin-right: 2px;
}

/* === زر CTA محسّن === */
.btn--cart {
  width: 100%;
  margin-top: 12px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  background: linear-gradient(135deg, #1B8AAC, #3FA5C4) !important;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: .2s;
}

.btn--cart:hover:not(.owned):not(.in-cart) {
  box-shadow: 0 8px 20px rgba(27, 138, 172, .35);
  transform: translateY(-1px);
}

.btn--cart.owned {
  background: #1A9E6B !important;
  cursor: default;
}

.btn--cart.in-cart {
  background: rgba(27, 138, 172, .15) !important;
  color: #1B8AAC;
}

.btn--cart.expired {
  background: linear-gradient(135deg, #D97706, #F59E0B) !important;
}

.btn--preview {
  width: 100%;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(27, 138, 172, .1);
  color: #1B8AAC;
  border: 1.5px solid rgba(27, 138, 172, .2);
  font-weight: 700;
  cursor: pointer;
}

/* === Meta chips === */
.product-card__meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.product-card__meta-chips .chip {
  background: rgba(27, 138, 172, .08);
  color: #136F8A;
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid rgba(27, 138, 172, .15);
}

/* === Responsive grid === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 20px !important;
}

@media (max-width: 640px) {
  .product-card {
    min-height: 420px;
  }
  .product-card__thumb {
    height: 160px !important;
  }
  .product-card__title {
    font-size: 15px !important;
  }
}

/* ═══════════════════════════════════════════════
   صفحة تفاصيل الدورة — قسم "ماذا يحدث بعد التسجيل؟"
   ═══════════════════════════════════════════════ */

.nc-after-signup {
  background: linear-gradient(135deg, #EFF8FB, #F4F9FB);
  border: 1px solid rgba(27, 138, 172, .15);
  border-radius: 18px;
  padding: 24px;
  margin-top: 20px;
}

.nc-after-signup h3 {
  font-size: 18px;
  font-weight: 900;
  color: #0F2935;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nc-after-signup-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nc-after-signup-step {
  display: flex;
  gap: 12px;
  align-items: start;
}

.nc-after-signup-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #1B8AAC;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
}

.nc-after-signup-text {
  font-size: 14px;
  color: #3D5664;
  line-height: 1.7;
  padding-top: 4px;
}

.nc-after-signup-text strong {
  color: #0F2935;
}
