/**
 * Minimal Theme - Canonical Single Skill Hub Stylesheet
 * Phase SH2 Single Skill Hub Redesign
 *
 * Scoped specifically to /skills/{skill}/ (skill-hub.php)
 * Palette: Deep Navy #0A192F, Cobalt #2563EB, Emerald #059669, Slate neutrals, White.
 * Architecture: Clean, technical, calm, developer-friendly.
 */

/* ==========================================================================
   Base Layout & Main Landmark
   ========================================================================== */

.scp-skill-hub-main {
  /* Inherits margin-top: var(--header-height, 64px) from header-footer.css */
  background-color: #F8FAFC;
  min-height: calc(100vh - 64px);
  width: 100%;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.scp-hub-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* ==========================================================================
   1. Compact Skill Overview Hero (Deep Navy #0A192F)
   ========================================================================== */

.scp-hub-hero {
  background-color: #0A192F;
  color: #FFFFFF;
  padding: 40px 0 40px;
  border-bottom: 1px solid #1E293B;
  box-sizing: border-box;
}

.scp-hub-breadcrumbs {
  padding-top: 18px;
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.scp-hub-bc-link {
  color: #94A3B8;
  text-decoration: none;
  transition: color 150ms ease;
}

.scp-hub-bc-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.scp-hub-bc-sep {
  color: #64748B;
  user-select: none;
}

.scp-hub-bc-current {
  color: #E2E8F0;
  font-weight: 500;
}

.scp-hub-hero-eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.scp-hub-domain-pill {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #93C5FD;
  background: rgba(37, 99, 235, 0.16);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 3px 10px;
  border-radius: 4px;
}

.scp-hub-sector-text {
  font-size: 12.5px;
  color: #64748B;
  font-weight: 400;
}

.scp-hub-title {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  word-break: break-word;
}

.scp-hub-desc {
  font-size: 15.5px;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0 0 20px;
  max-width: 720px;
  word-break: break-word;
}

.scp-hub-facts-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 24px;
}

.scp-hub-fact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  color: #CBD5E1;
  letter-spacing: 0.01em;
}

.scp-hub-fact-pill.is-cert-available {
  background: rgba(5, 150, 105, 0.15);
  border-color: rgba(5, 150, 105, 0.4);
  color: #6EE7B7;
}

.scp-hub-cert-dot {
  font-size: 8px;
  line-height: 1;
  color: #10B981;
}

.scp-hub-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.scp-btn-hero-practice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #2563EB;
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
  transition: background-color 150ms ease, transform 150ms ease;
  box-sizing: border-box;
}

.scp-btn-hero-practice:hover {
  background-color: #1D4ED8;
  color: #FFFFFF;
  transform: translateY(-1px);
}

.scp-btn-hero-curriculum {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  background: rgba(255, 255, 255, 0.08);
  color: #E2E8F0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  box-sizing: border-box;
}

.scp-btn-hero-curriculum:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
}

.scp-btn-hero-cert-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  color: #94A3B8;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: color 150ms ease;
}

.scp-btn-hero-cert-link:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

/* ==========================================================================
   2. Compact Product Pathway Strip
   ========================================================================== */

.scp-hub-pathway {
  background-color: #FFFFFF;
  border-bottom: 1px solid #E2E8F0;
  padding: 22px 0;
  box-sizing: border-box;
}

.scp-pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.scp-pathway-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 4px 8px;
  min-width: 0;
}

.scp-pathway-num {
  font-size: 13px;
  font-weight: 700;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.scp-pathway-body {
  min-width: 0;
}

.scp-pathway-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0A192F;
  margin: 0 0 3px;
  word-break: break-word;
}

.scp-pathway-desc {
  font-size: 13px;
  line-height: 1.45;
  color: #64748B;
  margin: 0;
  word-break: break-word;
}

.scp-pathway-status-unavailable {
  font-size: 12px;
  color: #94A3B8;
  font-style: italic;
  display: inline-block;
  margin-top: 2px;
}

/* ==========================================================================
   3. Curriculum & Topics Section (Numbered Structured List)
   ========================================================================== */

.scp-hub-curriculum {
  background-color: #F8FAFC;
  padding: 42px 0 48px;
  box-sizing: border-box;
}

.scp-section-header {
  margin-bottom: 24px;
}

.scp-section-title {
  font-size: 22px;
  font-weight: 800;
  color: #0A192F;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.scp-section-subtitle {
  font-size: 14.5px;
  color: #64748B;
  margin: 0;
  line-height: 1.5;
  max-width: 720px;
}

.scp-topic-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scp-topic-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 22px 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
  min-width: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.scp-topic-item:hover {
  border-color: #CBD5E1;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.06);
}

.scp-topic-number {
  font-size: 14px;
  font-weight: 800;
  color: #64748B;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 5px 9px;
  border-radius: 6px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.scp-topic-content {
  flex-grow: 1;
  min-width: 0;
}

.scp-topic-header-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.scp-topic-title {
  font-size: 17.5px;
  font-weight: 700;
  color: #0A192F;
  margin: 0;
  word-break: break-word;
}

.scp-topic-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin: 0 0 12px;
  word-break: break-word;
}

.scp-topic-subtopics {
  font-size: 12.5px;
  line-height: 1.5;
  color: #64748B;
  margin: 0 0 16px;
  word-break: break-word;
}

.scp-topic-subtopics-label {
  font-weight: 600;
  color: #334155;
}

.scp-topic-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.scp-btn-study-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #ECFDF5;
  color: #047857;
  border: 1px solid #A7F3D0;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease;
  box-sizing: border-box;
}

.scp-btn-study-guide:hover {
  background-color: #D1FAE5;
  color: #065F46;
  border-color: #6EE7B7;
}

.scp-btn-topic-practice {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #F8FAFC;
  color: #2563EB;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
  box-sizing: border-box;
}

.scp-btn-topic-practice:hover {
  background-color: #EFF6FF;
  border-color: #BFDBFE;
  color: #1D4ED8;
}

/* ==========================================================================
   4. Certification Pathway Section (Only rendered if active exams exist)
   ========================================================================== */

.scp-hub-certifications {
  background-color: #F8FAFC;
  padding: 0 0 54px;
  box-sizing: border-box;
}

.scp-cert-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.scp-cert-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
  min-width: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.scp-cert-card:hover {
  border-color: #CBD5E1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.scp-cert-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.scp-cert-level-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2563EB;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 3px 8px;
  border-radius: 4px;
}

.scp-cert-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: #059669;
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.22);
  padding: 2px 7px;
  border-radius: 4px;
}

.scp-cert-status-dot {
  font-size: 9px;
  line-height: 1;
}

.scp-cert-card-title {
  font-size: 18.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #0A192F;
  margin: 0 0 16px;
  word-break: break-word;
}

.scp-cert-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 14px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
}

.scp-cert-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scp-cert-spec-val {
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  font-variant-numeric: tabular-nums;
}

.scp-cert-spec-lbl {
  font-size: 11px;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 500;
}

.scp-cert-card-action {
  margin-top: auto;
}

.scp-btn-view-brief {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 16px;
  background: #0A192F;
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 150ms ease;
}

.scp-btn-view-brief:hover {
  background-color: #1E293B;
  color: #FFFFFF;
}

.scp-hub-all-certs-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: flex-end;
}

.scp-hub-all-certs-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2563EB;
  text-decoration: none;
  transition: color 150ms ease;
}

.scp-hub-all-certs-link:hover {
  color: #1D4ED8;
  text-decoration: underline;
}

.scp-hub-all-certs-link:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .scp-hub-all-certs-wrap {
    justify-content: flex-start;
  }
}

/* ==========================================================================
   5. Compact Practice Continuation Banner
   ========================================================================== */

.scp-hub-practice-continuation {
  background-color: #F8FAFC;
  padding: 0 0 54px;
  box-sizing: border-box;
}

.scp-practice-cta-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
  min-width: 0;
}

.scp-practice-cta-info {
  min-width: 0;
}

.scp-practice-cta-title {
  font-size: 18px;
  font-weight: 700;
  color: #0A192F;
  margin: 0 0 6px;
  word-break: break-word;
}

.scp-practice-cta-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #64748B;
  margin: 0;
  max-width: 600px;
  word-break: break-word;
}

.scp-btn-practice-continuation {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  background: #2563EB;
  color: #FFFFFF;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease;
  box-sizing: border-box;
  flex-shrink: 0;
}

.scp-btn-practice-continuation:hover {
  background-color: #1D4ED8;
  color: #FFFFFF;
}

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

@media (max-width: 1024px) {
  .scp-cert-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .scp-hub-title {
    font-size: 28px;
  }

  .scp-hub-desc {
    font-size: 14.5px;
  }

  .scp-pathway-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .scp-topic-item {
    gap: 14px;
    padding: 18px 18px 16px;
  }

  .scp-practice-cta-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
    gap: 16px;
  }

  .scp-btn-practice-continuation {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .scp-hub-container {
    padding: 0 16px;
  }

  .scp-hub-hero {
    padding: 28px 0 28px;
  }

  .scp-hub-title {
    font-size: 26px;
  }

  .scp-hub-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .scp-btn-hero-practice,
  .scp-btn-hero-curriculum {
    width: 100%;
    justify-content: center;
  }

  .scp-btn-hero-cert-link {
    justify-content: center;
  }

  .scp-topic-item {
    flex-direction: column;
    gap: 10px;
  }

  .scp-topic-actions {
    width: 100%;
  }

  .scp-btn-study-guide,
  .scp-btn-topic-practice {
    flex: 1;
    justify-content: center;
    text-align: center;
  }

  .scp-cert-cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .scp-hub-curriculum {
    padding: 32px 0 40px;
  }

  .scp-hub-certifications {
    padding: 0 0 40px;
  }

  .scp-hub-practice-continuation {
    padding: 0 0 40px;
  }
}

@media (max-width: 360px) {
  .scp-hub-container {
    padding: 0 12px;
  }

  .scp-hub-title {
    font-size: 24px;
  }

  .scp-hub-desc {
    font-size: 13.5px;
  }

  .scp-topic-item {
    padding: 16px 14px;
  }

  .scp-topic-title {
    font-size: 16px;
  }

  .scp-cert-card {
    padding: 18px 14px;
  }

  .scp-cert-card-title {
    font-size: 16.5px;
  }

  .scp-practice-cta-card {
    padding: 18px 14px;
  }
}
