/* Tutorial Style CSS for Interview Questions */

.tutorial-style {
  color: #303030;
  line-height: 1.6;
  font-size: 1rem;
}

.tutorial-style h1,
.tutorial-style h2,
.tutorial-style h3,
.tutorial-style h4,
.tutorial-style h5 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 600;
  line-height: 1.3;
}

.tutorial-style h1 {
  font-size: 2rem;
  color: #1a202c;
}

.tutorial-style h2 {
  font-size: 1.75rem;
  color: #1a202c;
}

.tutorial-style h3 {
  font-size: 1.5rem;
  color: #2d3748;
}

.tutorial-style h4 {
  font-size: 1.25rem;
  color: #2d3748;
}

.tutorial-style h5 {
  font-size: 1.1rem;
  color: #4a5568;
}

.tutorial-style p {
  margin-bottom: 1.2em;
}

.tutorial-style ul,
.tutorial-style ol {
  margin: 1em 0;
  padding-left: 2em;
}

.tutorial-style ul {
  list-style-type: disc;
}

.tutorial-style ol {
  list-style-type: decimal;
}

.tutorial-style li {
  margin-bottom: 0.5em;
}

.tutorial-style li:last-child {
  margin-bottom: 0;
}

/* Inline code styling - matches the unified theme */
.tutorial-style code:not([class*="language-"]) {
  background-color: #e9ecef;
  border-radius: 0.25rem;
  font-family: 'JetBrains Mono', Consolas, Monaco, 'Andale Mono', monospace;
  padding: 0.125rem 0.375rem;
  font-size: 0.875em;
  color: #d63384;
  font-weight: 500;
}

.tutorial-style pre {
  margin: 1.5em 0;
  border-radius: 0.5rem;
  overflow: auto;
}

.tutorial-style blockquote {
  margin: 1.5em 0;
  padding-left: 1em;
  border-left: 4px solid #e2e8f0;
  color: #4a5568;
  font-style: italic;
}

.tutorial-style a {
  color: #3182ce;
  text-decoration: none;
}

.tutorial-style a:hover {
  text-decoration: underline;
}

.tutorial-style img {
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border-radius: 6px;
}

/* Numbered lists with proper styling for tutorials */
.tutorial-style ol.numbered-steps {
  counter-reset: step-counter;
  list-style-type: none;
  padding-left: 0;
}

.tutorial-style ol.numbered-steps > li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.tutorial-style ol.numbered-steps > li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #f97316;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.75rem;
}

/* Code block container */
.code-block-container {
  margin: 1.5rem 0;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Command blocks for bash/shell commands */
.command-block {
  background-color: #f8f9fa;
  font-family: 'JetBrains Mono', Consolas, Monaco, 'Andale Mono', monospace;
  color: #212529;
  position: relative;
  overflow: hidden;
  display: block;
  padding: 0.75rem 1rem;
  margin: 0.25rem 0;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  border: 1px solid #dee2e6;
}

.command-block::before {
  content: "$";
  color: #6c757d;
  margin-right: 0.75rem;
  opacity: 0.7;
}

/* Note boxes */
.note-box {
  background-color: #ebf8ff;
  border-left: 4px solid #3182ce;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.note-box p:last-child {
  margin-bottom: 0;
}

/* Warning boxes */
.warning-box {
  background-color: #fff5f5;
  border-left: 4px solid #e53e3e;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.warning-box p:last-child {
  margin-bottom: 0;
}

/* Tip boxes */
.tip-box {
  background-color: #f0fff4;
  border-left: 4px solid #38a169;
  padding: 1rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}

.tip-box p:last-child {
  margin-bottom: 0;
}

/* Table styling */
.tutorial-style table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.tutorial-style table th {
  background-color: #f7fafc;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
}

.tutorial-style table td {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  vertical-align: top;
}

.tutorial-style table tr:nth-child(even) {
  background-color: #f7fafc;
}

/* Better spacing for all content */
.answer-content {
  max-width: 100%;
  padding: 0.5rem 0;
  font-size: 1rem;
} 