/**
 * Workshop Pre-Work Page Styles
 * Loaded only on /workshop-pre-work/
 */

/* =====================================================================
   Signal Box — orange top border, white bg
   ===================================================================== */

.pw-signal-box {
  background: #ffffff;
  border-top: 4px solid var(--lazio-orange, #F97316);
  padding: 28px 32px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pw-signal-box h4 {
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-s, 12px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lazio-orange, #F97316);
  margin: 0 0 16px 0;
}

.pw-signal-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pw-signal-box li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: var(--text-m, 17px);
  color: #1C1917;
  line-height: 1.6;
}

.pw-signal-box li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lazio-orange, #F97316);
}

/* =====================================================================
   Alert Box — yellow/orange warning
   ===================================================================== */

.pw-alert {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: var(--text-m, 17px);
  line-height: 1.6;
  color: #92400E;
}

.pw-alert strong {
  color: #78350F;
}

/* =====================================================================
   Progress Tracker — horizontal bar + step indicators
   ===================================================================== */

.pw-progress {
  max-width: 640px;
  margin: 0 auto 32px auto;
  padding: 0 16px;
}

.pw-progress__bar-track {
  height: 6px;
  background: #E5E7EB;
  overflow: hidden;
  margin-bottom: 16px;
}

.pw-progress__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--lazio-orange, #F97316);
  transition: width 0.4s ease;
}

.pw-progress__steps {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.pw-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}

.pw-progress__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #E5E7EB;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #78716C;
  transition: all 0.3s ease;
}

.pw-progress__step.is-done .pw-progress__dot {
  background: var(--lazio-orange, #F97316);
  border-color: var(--lazio-orange, #F97316);
  color: #ffffff;
}

.pw-progress__label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #78716C;
  text-align: center;
  line-height: 1.3;
}

.pw-progress__step.is-done .pw-progress__label {
  color: #1C1917;
}

@media (max-width: 480px) {
  .pw-progress__label {
    font-size: 10px;
  }
}

/* =====================================================================
   Code Block — terminal style
   ===================================================================== */

.pw-code {
  position: relative;
  background: #1C1917;
  margin: 16px 0;
  overflow: hidden;
}

.pw-code__header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pw-code__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.pw-code__dot--red { background: #EF4444; }
.pw-code__dot--yellow { background: #EAB308; }
.pw-code__dot--green { background: #22C55E; }

.pw-code code {
  display: block;
  padding: 16px 20px;
  color: #FFF7ED;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 14px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
}

.pw-code__copy {
  position: absolute;
  top: 8px;
  right: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 247, 237, 0.7);
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pw-code__copy:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFF7ED;
}

.pw-code__copy.is-copied {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.3);
  color: #4ADE80;
}

/* =====================================================================
   Details / Expandable Panels
   ===================================================================== */

.pw-details {
  margin: 16px 0;
  border: 1px solid #E5E7EB;
  overflow: hidden;
}

.pw-details summary {
  padding: 14px 20px;
  background: #FAFAF9;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-s, 12px);
  font-weight: 600;
  color: #1C1917;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pw-details summary::-webkit-details-marker {
  display: none;
}

.pw-details summary::before {
  content: '+';
  font-size: 18px;
  font-weight: 400;
  color: var(--lazio-orange, #F97316);
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.pw-details[open] summary::before {
  content: '\2212';
}

.pw-details__content {
  padding: 16px 20px;
  font-size: var(--text-m, 17px);
  line-height: 1.65;
  color: #44403C;
}

.pw-details__content code {
  background: rgba(28, 25, 23, 0.06);
  padding: 2px 6px;
  font-size: 0.9em;
  font-family: 'SF Mono', 'Menlo', 'Consolas', monospace;
}

/* =====================================================================
   Cost Table
   ===================================================================== */

.pw-cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: var(--text-m, 17px);
}

.pw-cost-table th {
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-s, 12px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #78716C;
  padding: 8px 0;
  border-bottom: 2px solid #1C1917;
}

.pw-cost-table td {
  padding: 10px 0;
  border-bottom: 1px solid #E5E7EB;
  color: #1C1917;
}

.pw-cost-table td:last-child {
  text-align: right;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.pw-cost-table tr:last-child td {
  border-bottom: none;
}

/* =====================================================================
   Checklist — interactive checkboxes
   ===================================================================== */

.pw-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 560px;
  margin: 0 auto;
}

.pw-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #E5E7EB;
  cursor: pointer;
  transition: opacity 0.2s ease;
  user-select: none;
}

.pw-checklist__item:last-child {
  border-bottom: none;
}

.pw-checklist__box {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border: 2px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.pw-checklist__box svg {
  width: 14px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pw-checklist__item.is-checked .pw-checklist__box {
  background: var(--lazio-orange, #F97316);
  border-color: var(--lazio-orange, #F97316);
}

.pw-checklist__item.is-checked .pw-checklist__box svg {
  opacity: 1;
}

.pw-checklist__text {
  flex: 1;
}

.pw-checklist__label {
  font-size: var(--text-m, 17px);
  font-weight: 500;
  color: #1C1917;
  line-height: 1.5;
  transition: all 0.2s ease;
}

.pw-checklist__item.is-checked .pw-checklist__label {
  text-decoration: line-through;
  color: #78716C;
}

.pw-checklist__hint {
  font-size: var(--text-s, 12px);
  color: #78716C;
  margin-top: 2px;
  line-height: 1.4;
}

/* =====================================================================
   Bricks Alert Element Override — warning variant
   ===================================================================== */

.brxe-alert.warning {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: var(--text-m, 17px);
  line-height: 1.6;
  color: #92400E;
}

.brxe-alert.warning .alert-close {
  color: #92400E;
}

/* =====================================================================
   Sub-header heading — orange Poppins h3
   ===================================================================== */

.pw-sub-header {
  font-family: 'Poppins', sans-serif;
  font-size: var(--text-ml, 21px);
  font-weight: 600;
  color: var(--lazio-orange, #F97316);
  margin: 32px 0 12px 0;
  line-height: 1.3;
}

/* =====================================================================
   CTA button within step content
   ===================================================================== */

.pw-cta-link {
  display: inline-block;
  background: var(--lazio-orange, #F97316);
  color: #ffffff;
  padding: 12px 24px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background 0.2s ease;
  margin: 12px 0;
}

.pw-cta-link:hover {
  background: var(--lazio-orange-dark, #EA580C);
  color: #ffffff;
}

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 600px) {
  .pw-signal-box {
    padding: 20px 20px;
  }

  .pw-code code {
    font-size: 12px;
    padding: 12px 16px;
  }


}
