/* ── Course Card ── */
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.course-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--border);
  overflow: hidden;
}
.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.course-card:hover .card-thumb img { transform: scale(1.03); }
.card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.card-category {
  font-size: 0.7rem;
  color: var(--blue);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.card-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--muted);
}
.card-rating { display: flex; align-items: center; gap: 3px; }
.star { color: #f59e0b; font-size: 0.75rem; }
.star.empty { color: var(--border); }
.rating-val { font-weight: 600; color: var(--text); }
.card-price {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.price-free-tag {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--green);
}
.price-orig {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: line-through;
}
.price-paid {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
}
.card-footer { padding: 0 14px 14px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  width: 100%;
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary {
  background: var(--blue);
  color: var(--white);
  width: 100%;
}
.btn-secondary:hover { background: var(--blue-dark); }
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { background: var(--bg); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }

/* ── Skeleton loader ── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.skeleton-thumb { aspect-ratio: 16/9; }
.skeleton-body { padding: 14px; }
.skeleton-line { height: 12px; margin-bottom: 8px; border-radius: 4px; }
.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

/* ── Rating stars ── */
.stars { display: inline-flex; gap: 2px; }

/* ── Share buttons ── */
.share-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  cursor: pointer;
  border: none;
}
.share-btn.twitter  { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.telegram { background: #0088cc; }

/* ── Tags / Badges ── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
}
.badge-blue   { background: var(--blue-light); color: var(--blue); }
.badge-green  { background: #d1fae5; color: #065f46; }
.badge-orange { background: #ffedd5; color: #9a3412; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: var(--shadow-md);
  z-index: 999;
  animation: slide-in .2s ease;
}
@keyframes slide-in {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
