/* ============================================================
   PlayCourse — Premium Single Course Page  (pcs-*)
   ============================================================ */

/* ── Container ────────────────────────────────────────────── */
.pcs-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.pcs-hero-inner {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 960px) {
  .pcs-hero-inner { grid-template-columns: 1fr; }
  .pcs-hero-card  { display: none; }
}

/* Breadcrumb */
.pcs-breadcrumb { margin-bottom: 20px; }
.pcs-breadcrumb-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  font-size: 13px; opacity: .75;
}
.pcs-breadcrumb-link { color: #fff; text-decoration: none; }
.pcs-breadcrumb-link:hover { text-decoration: underline; }
.pcs-breadcrumb-item--current { opacity: .55; }
.pcs-breadcrumb-sep { font-size: 16px; opacity: .5; }

/* Badges */
.pcs-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pcs-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.pcs-badge--featured { background: rgba(251,191,36,.2); color: #fbbf24; }
.pcs-badge--public   { background: rgba(52,211,153,.2); color: #34d399; }

/* Title / excerpt */
.pcs-hero-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800; line-height: 1.2;
  margin: 0 0 14px; color: #fff;
}
.pcs-hero-excerpt {
  font-size: 16px; line-height: 1.65;
  opacity: .85; margin: 0 0 22px;
  max-width: 680px;
}

/* Meta strip */
.pcs-hero-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  font-size: 13px; opacity: .8; margin-bottom: 20px;
}
.pcs-meta-item { display: flex; align-items: center; gap: 5px; }
.pcs-meta-item i { font-size: 15px; }

/* Stars */
.pcs-stars { display: inline-flex; gap: 2px; }
.pcs-star { font-size: 15px; }
.pcs-star--filled { color: #fbbf24; }
.pcs-star--empty  { color: rgba(255,255,255,.3); }

/* Instructor */
.pcs-hero-instructor {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; opacity: .8; margin-bottom: 16px;
}
.pcs-hero-instructor img {
  width: 32px; height: 32px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(255,255,255,.3);
}

/* Category chips */
.pcs-hero-cats { display: flex; flex-wrap: wrap; gap: 7px; }
.pcs-hero-cat-chip {
  display: inline-flex; padding: 4px 12px;
  background: rgba(255,255,255,.12); color: #fff;
  border-radius: 100px; font-size: 12px; font-weight: 500;
  text-decoration: none;
  transition: background .15s;
}
.pcs-hero-cat-chip:hover { background: rgba(255,255,255,.22); }

/* ── Hero Card (floating enroll card in hero) ─────────────── */
.pcs-hero-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  position: relative;
  top: 0;
}

.pcs-hero-card-media {
  position: relative; padding-top: 56.25%;
  background: #1e1b4b;
}
.pcs-hero-card-media img,
.pcs-hero-card-media iframe,
.pcs-hero-card-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border: none;
}
.pcs-hero-card-media-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; color: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 50%, transparent);
}

.pcs-hero-card-body { padding: 20px; }

.pcs-price-block { margin-bottom: 14px; }
.pcs-price-free { font-size: 26px; font-weight: 800; color: var(--pco-primary-color, #7A3FF2); }
.pcs-price-sale {
  font-size: 28px; font-weight: 800;
  color: var(--pc-text, #111827);
}
.pcs-price-original {
  font-size: 16px; color: var(--pc-text-muted, #6b7280);
  text-decoration: line-through; margin-left: 6px;
}
.pcs-price-regular { font-size: 28px; font-weight: 800; color: var(--pc-text, #111827); }

.pcs-trial-notice {
  display: flex; align-items: center; gap: 8px;
  background: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 9%, white);
  border: 1px solid color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 22%, white);
  border-radius: 8px; padding: 8px 12px;
  font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 72%, black);
  margin-bottom: 12px;
}
.pcs-trial-notice i { font-size: 15px; color: var(--pco-primary-color, #7A3FF2); }

.pcs-enroll-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; padding: 14px;
  background: var(--pco-primary-color, #7A3FF2);
  color: #fff; border: none; border-radius: 10px;
  font-size: 16px; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: background .2s, transform .15s;
  margin-bottom: 14px;
}
.pcs-enroll-btn:hover {
  background: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 80%, black);
  transform: translateY(-1px);
}
.pcs-enroll-btn--free { background: var(--pco-primary-color, #7A3FF2); }
.pcs-enroll-btn--free:hover { background: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 72%, black); }

.pcs-hero-quick-features {
  display: flex; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--pc-border, #e5e7eb);
}
.pcs-quick-feature {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font-size: 11px; color: var(--pc-text-muted, #6b7280); text-align: center;
}
.pcs-quick-feature i { font-size: 20px; color: var(--pco-primary-color, #7A3FF2); }

/* ── Body layout ──────────────────────────────────────────── */
.pcs-body { padding: 40px 0 60px; }

.pcs-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 960px) {
  .pcs-layout { grid-template-columns: 1fr; }
}

/* ── Schedule Notice ──────────────────────────────────────── */
.pcs-schedule-notice {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; border-radius: 12px;
  margin-bottom: 24px; font-size: 14px;
}
.pcs-schedule-notice--upcoming {
  background: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 8%, white);
  border: 1px solid color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 25%, white);
  color: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 80%, black);
}
.pcs-schedule-notice--started {
  background: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 9%, white);
  border: 1px solid color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 22%, white);
  color: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 72%, black);
}
.pcs-schedule-notice-icon { font-size: 22px; flex-shrink: 0; line-height: 1; }
.pcs-schedule-notice-content { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcs-schedule-notice-content strong { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }

/* ── Shared card ──────────────────────────────────────────── */
.pcs-card {
  background: #fff;
  border: 1px solid var(--pc-border, #e5e7eb);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.pcs-card-title {
  font-size: 18px; font-weight: 700;
  color: var(--pc-text, #111827);
  margin: 0 0 18px; padding-bottom: 14px;
  border-bottom: 1px solid var(--pc-border, #e5e7eb);
}

/* ── Stats strip ──────────────────────────────────────────── */
.pcs-stats-strip {
  display: flex; flex-wrap: wrap; gap: 0;
  background: #fff;
  border: 1px solid var(--pc-border, #e5e7eb);
  border-radius: 14px; overflow: hidden;
  margin-bottom: 24px;
}
.pcs-stat {
  flex: 1; min-width: 120px;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; padding: 16px 12px;
  border-right: 1px solid var(--pc-border, #e5e7eb);
  text-align: center;
}
.pcs-stat:last-child { border-right: none; }
.pcs-stat i { font-size: 22px; color: var(--pco-primary-color, #7A3FF2); }
.pcs-stat-value { font-size: 15px; font-weight: 700; color: var(--pc-text, #111827); }
.pcs-stat-label { font-size: 11px; color: var(--pc-text-muted, #6b7280); text-transform: uppercase; letter-spacing: .4px; }

/* ── What You'll Learn ────────────────────────────────────── */
.pcs-learn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px 16px;
}
.pcs-learn-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--pc-text, #111827); line-height: 1.5;
}
.pcs-learn-item i { font-size: 16px; color: var(--pco-primary-color, #7A3FF2); flex-shrink: 0; margin-top: 2px; }

/* ── Requirements ─────────────────────────────────────────── */
.pcs-req-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.pcs-req-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--pc-text, #111827); line-height: 1.5;
}
.pcs-req-item i { font-size: 14px; color: var(--pc-text-muted, #6b7280); flex-shrink: 0; margin-top: 3px; }

/* ── Description ──────────────────────────────────────────── */
.pcs-description-inner {
  max-height: 300px; overflow: hidden;
  position: relative;
  transition: max-height .35s ease;
}
.pcs-description-inner.pcs-expanded { max-height: none; }
.pcs-description-inner:not(.pcs-expanded)::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(transparent, #fff);
  pointer-events: none;
}
.pcs-description-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  color: var(--pco-primary-color, #7A3FF2); font-size: 14px; font-weight: 600;
  padding: 10px 0 0; text-decoration: none;
}
.pcs-description-toggle:hover { text-decoration: underline; }

/* WP content typography */
.pcs-description-inner p  { margin: 0 0 14px; line-height: 1.7; font-size: 14px; color: var(--pc-text, #111827); }
.pcs-description-inner ul,
.pcs-description-inner ol { padding-left: 20px; margin: 0 0 14px; }
.pcs-description-inner li { font-size: 14px; line-height: 1.7; margin-bottom: 4px; }
.pcs-description-inner h2 { font-size: 18px; font-weight: 700; margin: 20px 0 10px; }
.pcs-description-inner h3 { font-size: 16px; font-weight: 600; margin: 16px 0 8px; }

/* ── Curriculum ───────────────────────────────────────────── */
.pcs-curriculum-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
}
.pcs-curriculum-toggle-all {
  background: none; border: none; cursor: pointer;
  color: var(--pco-primary-color, #7A3FF2); font-size: 13px; font-weight: 600;
  padding: 0;
}
.pcs-curriculum-toggle-all:hover { text-decoration: underline; }

.pcs-section { border: 1px solid var(--pc-border, #e5e7eb); border-radius: 10px; margin-bottom: 8px; overflow: hidden; }

.pcs-section-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--pc-bg, #f8fafc);
  cursor: pointer;
  user-select: none;
}
.pcs-section-header:hover { background: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 6%, white); }

.pcs-section-icon { font-size: 18px; color: var(--pco-primary-color, #7A3FF2); flex-shrink: 0; }
.pcs-section-title { flex: 1; font-size: 14px; font-weight: 600; color: var(--pc-text, #111827); }
.pcs-section-meta { font-size: 12px; color: var(--pc-text-muted, #6b7280); white-space: nowrap; }
.pcs-section-chevron { font-size: 18px; color: var(--pc-text-muted, #6b7280); transition: transform .2s; flex-shrink: 0; }
.pcs-section--open .pcs-section-chevron { transform: rotate(180deg); }

.pcs-lesson-list { border-top: 1px solid var(--pc-border, #e5e7eb); }
.pcs-lesson-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--pc-border, #e5e7eb);
  font-size: 13.5px;
}
.pcs-lesson-row:last-child { border-bottom: none; }
.pcs-lesson-icon { font-size: 16px; color: var(--pc-text-muted, #6b7280); flex-shrink: 0; }
.pcs-lesson-title { flex: 1; color: var(--pc-text, #111827); }
.pcs-free-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--pco-primary-color, #7A3FF2);
  background: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 10%, white);
  padding: 2px 7px; border-radius: 100px; flex-shrink: 0;
}
.pcs-lesson-dur { font-size: 12px; color: var(--pc-text-muted, #6b7280); white-space: nowrap; flex-shrink: 0; }

/* ── Instructor ───────────────────────────────────────────── */
.pcs-instructor {
  display: flex; gap: 20px;
  align-items: flex-start;
}
.pcs-instructor-avatar {
  width: 80px; height: 80px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 3px solid var(--pc-border, #e5e7eb);
}
.pcs-instructor-name { font-size: 18px; font-weight: 700; margin: 0 0 3px; }
.pcs-instructor-meta { font-size: 12px; color: var(--pc-text-muted, #6b7280); margin: 0 0 10px; }
.pcs-instructor-bio  { font-size: 13.5px; line-height: 1.65; color: var(--pc-text, #111827); margin: 0; }

/* ── Sidebar ──────────────────────────────────────────────── */
.pcs-sidebar { position: sticky; top: 24px; }

.pcs-sidebar-card {
  background: #fff;
  border: 1px solid var(--pc-border, #e5e7eb);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.1);
}

.pcs-sidebar-media {
  position: relative; padding-top: 56.25%;
  background: #1e1b4b;
}
.pcs-sidebar-media img,
.pcs-sidebar-media iframe,
.pcs-sidebar-media video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; border: none;
}
.pcs-sidebar-media-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; color: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 40%, transparent);
}

.pcs-sidebar-body { padding: 20px; }

.pcs-sidebar-price { margin-bottom: 12px; }

.pcs-course-includes {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; flex-direction: column; gap: 9px;
  padding-top: 16px; border-top: 1px solid var(--pc-border, #e5e7eb);
}
.pcs-course-includes li {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; color: var(--pc-text, #111827);
}
.pcs-course-includes i { font-size: 16px; color: var(--pco-primary-color, #7A3FF2); flex-shrink: 0; }

.pcs-sidebar-divider { border: none; border-top: 1px solid var(--pc-border, #e5e7eb); margin: 16px 0; }

.pcs-sidebar-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--pc-text-muted, #6b7280); margin-bottom: 8px; }
.pcs-sidebar-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.pcs-sidebar-cat-link {
  display: inline-flex; padding: 4px 11px;
  background: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 8%, white);
  color: var(--pco-primary-color, #7A3FF2);
  border-radius: 100px; font-size: 12px; font-weight: 500;
  text-decoration: none;
}
.pcs-sidebar-cat-link:hover { background: color-mix(in srgb, var(--pco-primary-color, #7A3FF2) 16%, white); }

.pcs-sidebar-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pcs-sidebar-tag {
  display: inline-flex; padding: 4px 10px;
  background: var(--pc-bg, #f8fafc);
  color: var(--pc-text-muted, #6b7280);
  border: 1px solid var(--pc-border, #e5e7eb);
  border-radius: 100px; font-size: 11px;
}

/* ── Mobile floating bar ──────────────────────────────────── */
.pcs-mobile-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  background: #fff;
  border-top: 1px solid var(--pc-border, #e5e7eb);
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  padding: 12px 20px;
  align-items: center; gap: 14px;
}
@media (max-width: 960px) {
  .pcs-mobile-bar.pcs-mobile-bar--visible { display: flex; }
}
.pcs-mobile-bar-price { font-size: 20px; font-weight: 800; color: var(--pc-text, #111827); white-space: nowrap; }
.pcs-mobile-bar-btn {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--pco-primary-color, #7A3FF2); color: #fff;
  border: none; border-radius: 10px;
  padding: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none;
}

/* ── No-content states ────────────────────────────────────── */
.pcs-empty { font-size: 14px; color: var(--pc-text-muted, #6b7280); text-align: center; padding: 24px 0; }

@media (max-width: 600px) {
  .pcs-hero { padding: 32px 0 36px; }
  .pcs-hero-title { font-size: 22px; }
  .pcs-stats-strip { flex-direction: column; }
  .pcs-stat { border-right: none; border-bottom: 1px solid var(--pc-border, #e5e7eb); }
  .pcs-stat:last-child { border-bottom: none; }
  .pcs-instructor { flex-direction: column; }
}
