/* ── Workshop Day Detail Page — Extended Styles ── */

/* Breadcrumb */
.wd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 7rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.wd-breadcrumb__link {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.wd-breadcrumb__link:hover { color: var(--blue-400); }

.wd-breadcrumb svg {
  color: var(--text-muted);
  opacity: 0.5;
  flex-shrink: 0;
}

.wd-breadcrumb__current {
  font-size: 0.82rem;
  color: var(--blue-400);
  font-weight: 600;
}

/* Topics grid */
.wd-topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (max-width: 580px) {
  .wd-topics-grid { grid-template-columns: 1fr; }
}

.wd-topic-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  transition: border-color 0.25s, transform 0.2s;
}

.wd-topic-item:hover {
  border-color: rgba(96, 165, 250, 0.2);
  transform: translateY(-2px);
}

.wd-topic-item__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-400);
  flex-shrink: 0;
}

.wd-topic-item__text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.4;
}

/* Outcome card */
.wd-outcome-card {
  padding: 1.75rem;
  border-radius: var(--radius-card);
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}

.wd-outcome-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 70%);
  mask-image: linear-gradient(to bottom right, #000, transparent 70%);
  pointer-events: none;
}

.wd-outcome-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--blue-400);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.wd-outcome-card__header svg { flex-shrink: 0; }

.wd-outcome-card__text {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.7;
  margin: 0;
  position: relative;
  z-index: 1;
}

/* Prev / Next navigation */
.wd-day-prev-next {
  margin-top: 0.5rem;
}

.wd-day-prev-next__row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.wd-day-prev-next__btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-card);
  backdrop-filter: blur(14px);
  text-decoration: none;
  color: var(--text-body);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s, transform 0.2s, color 0.2s;
  flex: 1;
  min-width: 180px;
  max-width: calc(50% - 0.5rem);
}

.wd-day-prev-next__btn:hover {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(96, 165, 250, 0.06);
  color: var(--blue-300);
  transform: translateY(-2px);
}

.wd-day-prev-next__btn svg {
  flex-shrink: 0;
  color: var(--blue-400);
}

.wd-day-prev-next__btn--next { justify-content: flex-end; }

.wd-day-prev-next__btn--enroll {
  background: linear-gradient(135deg, rgba(139,92,246,0.12), rgba(96,165,250,0.1));
  border-color: rgba(139, 92, 246, 0.3);
}

.wd-day-prev-next__btn--enroll:hover {
  background: linear-gradient(135deg, rgba(139,92,246,0.2), rgba(96,165,250,0.15));
  border-color: rgba(139, 92, 246, 0.5);
}

.wd-day-prev-next__label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.wd-day-prev-next__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.3;
}

/* Day progress list in sidebar */
.wd-progress-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.wd-progress-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.wd-progress-item:hover {
  background: rgba(96, 165, 250, 0.06);
  border-color: rgba(96, 165, 250, 0.12);
}

.wd-progress-item--active {
  background: rgba(139, 92, 246, 0.08);
  border-color: rgba(139, 92, 246, 0.25);
}

.wd-progress-item__num {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue-400);
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.wd-progress-item__num--active {
  background: linear-gradient(135deg, var(--purple), var(--blue-500));
  border-color: transparent;
  color: #fff;
}

.wd-progress-item__info {
  flex: 1;
  min-width: 0;
}

.wd-progress-item__day {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 2px;
}

.wd-progress-item__title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wd-progress-item--active .wd-progress-item__title { color: #a78bfa; }

/* Sidebar price block */
.wd-sidebar-price {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.wd-sidebar-price__amount {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  line-height: 1.1;
}

.wd-sidebar-price__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* Light mode overrides for new classes */
body.light .wd-breadcrumb__link { color: #64748b; }
body.light .wd-topic-item__text { color: #0f172a; }
body.light .wd-outcome-card__text { color: #4b5563; }
body.light .wd-outcome-card::before {
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
}
body.light .wd-day-prev-next__btn { background: rgba(255,255,255,0.7); border-color: rgba(0,0,0,0.1); }
body.light .wd-day-prev-next__title { color: #0f172a; }
body.light .wd-progress-item__title { color: #0f172a; }

@media (max-width: 580px) {
  .wd-day-prev-next__btn { max-width: 100%; }
}

/* ── Original styles below (kept intact) ── */
 .day-detail {
     padding: 10rem 2rem 4rem;
     max-width: 1120px;
     margin: 0 auto;
     position: relative;
     z-index: 3;
 }

 .day-detail__back {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     font-size: 0.85rem;
     font-weight: 500;
     color: var(--text-muted);
     text-decoration: none;
     margin-bottom: 2rem;
     transition: color 0.2s;
 }

 .day-detail__back:hover {
     color: var(--blue-400);
 }

 .day-detail__badge {
     display: inline-flex;
     align-items: center;
     gap: 8px;
     padding: 6px 16px;
     border-radius: var(--radius-pill);
     border: 1px solid var(--border-glass);
     background: rgba(255, 255, 255, 0.04);
     font-size: 0.8125rem;
     font-weight: 500;
     color: var(--text-muted);
     backdrop-filter: blur(6px);
     margin-bottom: 1rem;
 }

 .day-detail__badge-dot {
     width: 6px;
     height: 6px;
     border-radius: 50%;
     background: var(--blue-400);
     box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
     animation: pulse-dot 2s ease-in-out infinite;
 }

 .day-detail__day {
     font-size: 1rem;
     font-weight: 500;
     color: var(--text-muted);
     margin-bottom: 0.5rem;
 }

 .day-detail__title {
     font-size: clamp(2rem, 4.5vw, 3rem);
     font-weight: 700;
     line-height: 1.1;
     letter-spacing: -0.02em;
     color: var(--text-bright);
     margin-bottom: 0.5rem;
 }

 .day-detail__date {
     font-size: 0.9rem;
     color: var(--text-muted);
     margin-bottom: 2rem;
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .day-detail__date svg {
     width: 16px;
     height: 16px;
     color: var(--blue-400);
 }

 .day-detail__desc {
     font-size: 1.05rem;
     color: var(--text-body);
     line-height: 1.8;
     margin-bottom: 2.5rem;
 }

 /* Topics grid */
 .day-detail__section-title {
     font-size: 1.15rem;
     font-weight: 700;
     color: var(--text-bright);
     margin-bottom: 1.25rem;
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .day-detail__section-title svg {
     width: 20px;
     height: 20px;
     color: var(--blue-400);
 }

 .day-detail__topics-grid {
     display: grid;
     grid-template-columns: 1fr;
     gap: 0.75rem;
     margin-bottom: 3rem;
 }

 @media (min-width: 640px) {
     .day-detail__topics-grid {
         grid-template-columns: repeat(2, 1fr);
     }
 }

 .topic-item {
     display: flex;
     align-items: flex-start;
     gap: 0.75rem;
     padding: 1rem 1.25rem;
     background: var(--bg-glass);
     border: 1px solid var(--border-glass);
     border-radius: 12px;
     backdrop-filter: blur(14px);
     transition: border-color 0.3s, transform 0.2s;
 }

 .topic-item:hover {
     border-color: rgba(96, 165, 250, 0.2);
     transform: translateY(-2px);
 }

 .topic-item__icon {
     width: 32px;
     height: 32px;
     border-radius: 8px;
     background: rgba(96, 165, 250, 0.1);
     border: 1px solid rgba(96, 165, 250, 0.2);
     display: flex;
     align-items: center;
     justify-content: center;
     flex-shrink: 0;
     color: var(--blue-400);
     font-size: 0.8rem;
     font-weight: 700;
 }

 .topic-item__text {
     flex: 1;
 }

 .topic-item__name {
     font-size: 0.9rem;
     font-weight: 600;
     color: var(--text-bright);
     margin-bottom: 0.2rem;
 }

 .topic-item__sub {
     font-size: 0.78rem;
     color: var(--text-muted);
     line-height: 1.5;
 }

 /* Outcome block */
 .day-detail__outcome {
     background: var(--bg-glass);
     border: 1px solid var(--border-glass);
     border-radius: var(--radius-card);
     padding: 2rem;
     backdrop-filter: blur(14px);
     margin-bottom: 3rem;
     position: relative;
     overflow: hidden;
 }

 .day-detail__outcome::before {
     content: '';
     position: absolute;
     inset: 0;
     background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
     background-size: 60px 60px;
     -webkit-mask-image: linear-gradient(to bottom right, #000, transparent 70%);
     mask-image: linear-gradient(to bottom right, #000, transparent 70%);
     pointer-events: none;
 }

 .day-detail__outcome-title {
     font-size: 1rem;
     font-weight: 700;
     color: var(--text-bright);
     margin-bottom: 0.5rem;
     position: relative;
     z-index: 1;
     display: flex;
     align-items: center;
     gap: 0.5rem;
 }

 .day-detail__outcome-title svg {
     width: 20px;
     height: 20px;
     color: var(--blue-400);
 }

 .day-detail__outcome-text {
     font-size: 0.9rem;
     color: var(--text-muted);
     line-height: 1.7;
     position: relative;
     z-index: 1;
 }

 /* Nav buttons */
 .day-detail__nav {
     display: flex;
     justify-content: space-between;
     gap: 1rem;
     flex-wrap: wrap;
 }

 .day-nav-btn {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     padding: 10px 20px;
     border-radius: var(--radius-pill);
     border: 1px solid var(--border-glass);
     background: rgba(255, 255, 255, 0.04);
     color: var(--text-muted);
     font-family: inherit;
     font-size: 0.85rem;
     font-weight: 500;
     cursor: pointer;
     text-decoration: none;
     transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
 }

 .day-nav-btn:hover {
     background: rgba(96, 165, 250, 0.1);
     border-color: rgba(96, 165, 250, 0.3);
     color: var(--blue-300);
     transform: translateY(-1px);
 }

 .day-nav-btn--primary {
     background: linear-gradient(135deg, var(--blue-500), var(--purple));
     border: 1px solid transparent;
     color: #fff;
     box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
 }

 .day-nav-btn--primary:hover {
     box-shadow: 0 6px 28px rgba(99, 102, 241, 0.4);
     color: #fff;
 }

 .day-nav-btn svg {
     width: 16px;
     height: 16px;
 }

 /* Light overrides */
 body.light .day-detail__title {
     color: #0f172a;
 }

 body.light .day-detail__desc {
     color: #4b5563;
 }

 body.light .day-detail__badge {
     background: rgba(0, 0, 0, 0.03);
     border-color: rgba(0, 0, 0, 0.1);
     color: #64748b;
 }

 body.light .topic-item {
     background: rgba(255, 255, 255, 0.72);
     border-color: rgba(0, 0, 0, 0.08);
 }

 body.light .topic-item:hover {
     border-color: rgba(59, 130, 246, 0.25);
 }

 body.light .topic-item__name {
     color: #0f172a;
 }

 body.light .topic-item__sub {
     color: #64748b;
 }

 body.light .day-detail__outcome {
     background: rgba(255, 255, 255, 0.72);
     border-color: rgba(0, 0, 0, 0.08);
 }

 body.light .day-detail__outcome::before {
     background-image: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
 }

 body.light .day-detail__outcome-title {
     color: #0f172a;
 }

 body.light .day-detail__section-title {
     color: #0f172a;
 }

 body.light .day-nav-btn {
     background: rgba(0, 0, 0, 0.03);
     border-color: rgba(0, 0, 0, 0.1);
     color: #475569;
 }

 body.light .day-nav-btn:hover {
     background: rgba(59, 130, 246, 0.08);
     border-color: rgba(59, 130, 246, 0.25);
     color: var(--blue-500);
 }