/* Parlons Coréen — Widgets d’Unité (shortcodes) */
:root {
  --pcw-bg: #ffffff;
  --pcw-muted: #6b7280;
  --pcw-border: #e5e7eb;
  --pcw-soft: #f8fafc;
  --pcw-brand: #f05a5a;
  --pcw-brand-ghost: #ffe9e9;
  --pcw-text: #0f172a;
}

/* Back link (discret) */
.pcw-unit-backlink{
  padding: 0 8px;
  width: 100%;
  height: 42px;
  line-height: 42px;
}

.pc-backlink{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  color:var(--muted);
  font-size:14px;
  border-radius:10px;
  transition: background .15s ease, color .15s ease;
  width:max-content;
}
a.pc-backlink:hover{
  text-decoration:none !important;
}
.pc-backlink .pc-backlink-icon{font-size:16px;line-height:1}
.pc-backlinkbacklink:hover{
  background:var(--soft);
  color:#374151;
}

/* Unit Card */
.pcw-unit-illustration {
  border: 1px solid var(--pcw-border);
  border-radius: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  overflow: hidden;
  padding-bottom: 40px;
  background: white;
}

.pcw-unit-illustration img {
  width: 80%;
  height: auto;
  display: block;
  margin: auto;
}

.pcw-unit-meta {
  position: absolute;
  display: flex;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px 12px;
  background-image: linear-gradient(0deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  flex-direction: column;
  gap: 6px;
}

.pcw-unit-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--pcw-brand-ghost);
  color: var(--pcw-brand);
  border: 1px solid #ffd3d3;
  padding: 4px 8px;
  font-size: 17px;
  border-radius: 10px 0 12px 0;
  font-weight: 600;
}

.pcw-unit-title {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  font-weight: 700;
}

.pcw-block header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.pcw-emoji {
  font-size: 18px;
}

.pcw-block-desc {
  color: var(--pcw-muted);
  font-size: 13px;
  margin: 0 2px 8px;
}

.pcw-lesson-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pcw-lesson a {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid transparent;
  line-height: 1.2 !important;
}

.pcw-lesson .idx {
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: grid;
  place-items: center;
  font-size: 12px;
  border-radius: 50%;
  background: var(--pcw-soft);
  color: #111827;
  border: 1px solid var(--pcw-border);
  font-weight: 600;
}

.pcw-lesson .type {
  font-size: 15px;
  line-height: 22px;
}

.pcw-lesson .pcw-label {
  flex: 1;
}

.pcw-lesson .status{
  font-size:12px;
  color:#16a34a;
  font-weight:600
}

.pcw-lesson:hover a {
  background: var(--pcw-soft);
  border-color: var(--pcw-border);
  text-decoration: none !important;
}

.pcw-lesson.is-active a {
  border-color: #d3dadd;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(240, 90, 90, 0.08);
}

.pcw-lesson.is-active .idx {
  background: var(--pcw-brand-ghost);
  border-color: var(--pcw-brand);
  color: var(--pcw-brand);
}

.pcw-lesson.pc-is-completed .idx {
  background: #e9fbe9;
  border-color: #c9efc9;
  color: #065f46;
}

.pcw-lesson .status {
  opacity: 0;
}

.pcw-lesson.pc-is-completed .status {
  opacity: 1;
}

.pcw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.pcw-chip {
  border: 1px solid var(--pcw-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.pcw-chip:hover {
  border-color: var(--pcw-brand);
  color: var(--pcw-brand);
}

/* Upgrade widget (free version) */
.pcw-upgrade {
  border: 1px solid var(--pcw-border);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(145deg, #fff6f6, #ffffff);
  box-shadow: 0 6px 16px rgba(240, 90, 90, 0.08);
  display: grid;
  gap: 12px;
}

.pcw-upgrade-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pcw-upgrade-title {
  font-weight: 700;
  color: var(--pcw-text);
}

.pcw-upgrade-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--pcw-text);
  font-size: 14px;
}

.pcw-upgrade-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 8px;
}

.pcw-upgrade-icon {
  font-size: 16px;
  line-height: 1.2;
}

.pcw-upgrade-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--pcw-brand);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.pcw-upgrade-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(240, 90, 90, 0.22);
  text-decoration: none;
}
