/* TubeRaker Help Sidebar — shared styles for all workflow pages */

.workflow-page {
  display: flex;
  min-height: 100vh;
  background: var(--bg-primary, #0f172a);
  color: var(--text-primary, #e2e8f0);
}

.workflow-sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--bg-secondary, #1e293b);
  border-right: 1px solid var(--border-color, #334155);
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.workflow-sidebar h3 {
  padding: 0 1.5rem;
  margin-bottom: 1rem;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted, #94a3b8);
}

.sidebar-cat {
  margin-bottom: .25rem;
}

.sidebar-cat summary {
  padding: .5rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-secondary, #cbd5e1);
  list-style: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s;
}

.sidebar-cat summary:hover {
  background: var(--bg-hover, #334155);
}

.sidebar-cat summary::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: .7rem;
  transition: transform .2s;
  width: 1rem;
  text-align: center;
}

.sidebar-cat[open] summary::before {
  transform: rotate(90deg);
}

.sidebar-cat a {
  display: block;
  padding: .35rem 1.5rem .35rem 3rem;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-size: .85rem;
  transition: all .2s;
}

.sidebar-cat a:hover,
.sidebar-cat a.active {
  color: #3b82f6;
  background: rgba(59, 130, 246, .08);
}

.sidebar-cat a.active {
  border-right: 2px solid #3b82f6;
  font-weight: 600;
}

/* Main content area */
.workflow-main {
  flex: 1;
  padding: 2rem 3rem;
  max-width: 960px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: #3b82f6;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb span {
  color: var(--text-muted, #64748b);
}

/* Page title & description */
.workflow-main h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: .75rem;
  color: var(--text-primary, #f1f5f9);
}

.workflow-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 2rem;
  max-width: 700px;
}

/* SVG diagram container */
.svg-container {
  background: #1e293b;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  border: 1px solid #334155;
  overflow-x: auto;
}

.svg-container svg {
  width: 100%;
  height: auto;
}

/* Step-by-step list */
.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: .75rem;
  background: var(--bg-secondary, #1e293b);
  border-radius: 8px;
  position: relative;
  border: 1px solid #334155;
  line-height: 1.6;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .85rem;
}

.steps li strong {
  color: #f1f5f9;
}

.steps li p {
  margin: 0;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 768px) {
  .workflow-sidebar {
    display: none;
  }
  .workflow-main {
    padding: 1.5rem;
  }
}
