/* ic3-cards.css — MOOC / Mavzulashtirilgan / Xalqaro sertifikat ro'yxatlari: kartochka dizayni.
   Tailwind'ga bog'liq emas (tailwind.css oldindan yig'ilgan). Tun rejimi: html.dark.
   Ranglar --c (asosiy), --c-soft (och fon), --c-ink (matn) o'zgaruvchilari orqali: mooc=fuchsia, topic=cyan, cert=orange. */

.ic3c-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .ic3c-grid { grid-template-columns: 1fr; gap: 12px; } }

.ic3c-card {
  --c: #c026d3; --c-soft: #fae8ff; --c-ink: #a21caf; --c-glow: rgba(192, 38, 211, .13);
  position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: 16px 16px 14px; border-radius: 20px; cursor: pointer; text-align: left;
  background: #fff; border: 1px solid #e8ecf3;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 18px -10px rgba(15, 23, 42, .12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.ic3c-card::before {            /* o'ng yuqori burchakdagi yumshoq nur */
  content: ""; position: absolute; top: -40px; right: -40px; width: 170px; height: 170px;
  background: radial-gradient(circle at 70% 30%, var(--c-glow), transparent 68%); pointer-events: none;
}
.ic3c-card:hover { transform: translateY(-2px); border-color: var(--c); box-shadow: 0 10px 26px -12px var(--c-glow), 0 2px 6px rgba(15, 23, 42, .06); }
.ic3c-card:focus-within { border-color: var(--c); }
.ic3c-card.t-mooc  { --c: #c026d3; --c-soft: #fae8ff; --c-ink: #a21caf; --c-glow: rgba(192, 38, 211, .14); }
.ic3c-card.t-topic { --c: #0891b2; --c-soft: #cffafe; --c-ink: #0e7490; --c-glow: rgba(8, 145, 178, .14); }
.ic3c-card.t-cert  { --c: #f97316; --c-soft: #ffedd5; --c-ink: #c2410c; --c-glow: rgba(249, 115, 22, .16); }

.ic3c-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ic3c-ico {
  width: 44px; height: 44px; border-radius: 14px; flex: none; display: flex; align-items: center; justify-content: center;
  background: var(--c-soft); color: var(--c-ink);
}
.ic3c-ico svg { width: 22px; height: 22px; }
.ic3c-badge {
  display: inline-flex; align-items: center; gap: 4px; max-width: 62%; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  background: var(--c-soft); color: var(--c-ink); border: 1px solid rgba(0, 0, 0, .06);
}
.ic3c-badge.free { background: #dcfce7; color: #047857; border-color: #bbf7d0; }

.ic3c-title {
  position: relative; margin: 14px 0 0; font-size: 15px; font-weight: 800; line-height: 1.3; color: #0f172a;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ic3c-sub { position: relative; margin: 4px 0 0; font-size: 12.5px; line-height: 1.4; color: #64748b;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ic3c-meta { position: relative; display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: #64748b; }
.ic3c-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ic3c-meta svg { width: 14px; height: 14px; flex: none; opacity: .8; }

.ic3c-foot {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 12px; border-top: 1px solid #eef1f6;
}
.ic3c-card .ic3c-title + .ic3c-sub + .ic3c-meta, .ic3c-card .ic3c-meta { margin-bottom: 14px; }
.ic3c-price { font-size: 17px; font-weight: 800; color: #0f172a; letter-spacing: -.01em; white-space: nowrap; }
.ic3c-price.free { color: #059669; font-size: 18px; }
.ic3c-price.open { color: #4338ca; font-size: 15px; }
.ic3c-price.pend { color: #b45309; font-size: 12.5px; white-space: normal; line-height: 1.25; }
.ic3c-price small { font-size: 12px; font-weight: 700; opacity: .75; }

.ic3c-btn {
  flex: none; padding: 9px 14px; border-radius: 12px; border: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700;
  background: var(--c-soft); color: var(--c-ink); transition: background .15s ease, color .15s ease, transform .15s ease; white-space: nowrap;
}
.ic3c-card:hover .ic3c-btn { background: var(--c); color: #fff; }
.ic3c-btn:active { transform: scale(.97); }
.ic3c-btn.lock { background: #1e293b; color: #fff; }
.ic3c-card:hover .ic3c-btn.lock { background: #0f172a; }
.ic3c-btn.wait { background: #fef3c7; color: #92400e; cursor: default; }
.ic3c-card:hover .ic3c-btn.wait { background: #fef3c7; color: #92400e; }

/* ---- Tun rejimi ---- */
html.dark .ic3c-card { background: #111a2b; border-color: #25324a; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .6); }
html.dark .ic3c-card.t-mooc  { --c: #d946ef; --c-soft: rgba(217, 70, 239, .18); --c-ink: #f0abfc; --c-glow: rgba(217, 70, 239, .18); }
html.dark .ic3c-card.t-topic { --c: #22d3ee; --c-soft: rgba(34, 211, 238, .16); --c-ink: #67e8f9; --c-glow: rgba(34, 211, 238, .16); }
html.dark .ic3c-card.t-cert  { --c: #fb923c; --c-soft: rgba(251, 146, 60, .18); --c-ink: #fdba74; --c-glow: rgba(251, 146, 60, .18); }
html.dark .ic3c-title, html.dark .ic3c-price { color: #f1f5f9; }
html.dark .ic3c-sub, html.dark .ic3c-meta { color: #94a3b8; }
html.dark .ic3c-foot { border-top-color: #25324a; }
html.dark .ic3c-badge { border-color: rgba(255, 255, 255, .08); }
html.dark .ic3c-badge.free { background: rgba(16, 185, 129, .18); color: #6ee7b7; border-color: rgba(16, 185, 129, .3); }
html.dark .ic3c-price.free { color: #34d399; }
html.dark .ic3c-price.open { color: #a5b4fc; }
html.dark .ic3c-price.pend { color: #fcd34d; }
html.dark .ic3c-card:hover .ic3c-btn { color: #0b1220; }
html.dark .ic3c-btn.lock { background: #e2e8f0; color: #0f172a; }
html.dark .ic3c-card:hover .ic3c-btn.lock { background: #fff; color: #0f172a; }
html.dark .ic3c-btn.wait, html.dark .ic3c-card:hover .ic3c-btn.wait { background: rgba(245, 158, 11, .2); color: #fcd34d; }

@media (prefers-reduced-motion: reduce) { .ic3c-card, .ic3c-btn { transition: none; } .ic3c-card:hover { transform: none; } }
