/* Section Headers - UI-Kit Compliant */

.section-header {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-faint);
}

.section-header-large {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title-with-help {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.section-help-button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(0, 212, 255, 0.32);
  border-radius: var(--radius-sm);
  background: rgba(0, 212, 255, 0.08);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(0, 212, 255, 0.1);
}

.section-help-button:hover {
  color: var(--text-primary);
  border-color: rgba(0, 212, 255, 0.58);
  box-shadow: 0 0 26px rgba(0, 212, 255, 0.24);
}

.section-help-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(0, 212, 255, 0.38);
  border-radius: 50%;
  color: var(--accent-cyan);
  font-weight: 700;
}

.section-help-overlay {
  position: fixed;
  inset: 0;
  z-index: 10100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 8, 16, 0.84);
}

.section-help-modal {
  width: min(1120px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(111, 201, 255, 0.26);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.62), 0 0 36px rgba(0, 212, 255, 0.12);
}

.section-help-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-faint);
}

.section-help-title {
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.25;
}

.section-help-subtitle {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.section-help-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 24px;
}

.section-help-view .workspace-preview-markdown {
  max-width: 860px;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.75;
}

.section-help-view .workspace-preview-markdown h1,
.section-help-view .workspace-preview-markdown h2,
.section-help-view .workspace-preview-markdown h3 {
  color: var(--text-primary);
  line-height: 1.3;
}

.section-help-editor-hint {
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 13px;
}

.section-help-textarea {
  width: 100%;
  min-height: 54vh;
  padding: 16px;
  border: 1px solid rgba(111, 201, 255, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(5, 12, 22, 0.74);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  resize: vertical;
}

.section-help-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border-faint);
}

@media (max-width: 700px) {
  .section-title-with-help {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-help-overlay {
    padding: 12px;
  }

  .section-help-modal {
    width: 100%;
    max-height: 94vh;
  }

  .section-help-header,
  .section-help-body,
  .section-help-actions {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-help-view .workspace-preview-markdown {
    font-size: 15px;
  }
}
