.formatting-help-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px 20px 20px;
  min-height: 100vh;
}

.formatting-help-header {
  margin-bottom: 40px;
  text-align: center;
}

.formatting-help-header h1 {
  color: var(--blueText);
  font-size: 32px;
  margin-top: 20px;
}

.formatting-help-header p {
  font-size: 18px;
  max-width: 600px;
  margin: 10px auto 0 auto;
}

.formatting-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 30px;
  margin-bottom: 30px;
}

.formatting-section.full-padding {
  padding: 30px;
}

.formatting-section h3 {
  color: var(--blueText);
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.formatting-section p {
  line-height: 1.6;
}

.note {
  margin: 20px 0;
}

/* Example grid for formatting examples */
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.example {
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 20px;
}

.example-wide {
  grid-column: 1 / -1;
}

.example h4 {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 15px;
}

.example-input {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 10px;
  font-family: monospace;
  margin-bottom: 10px;
}

.example-output {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 10px;
}

.shortcut-tip {
  font-size: 12px;
}

kbd {
  background-color: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  display: inline-block;
  font-size: 11px;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  line-height: 1.4;
  margin: 0 0.1em;
  padding: 0.1em 0.6em;
}

/* Practice area */
.practice-area {
  margin-bottom: 20px;
}

#practice-editor {
  width: 100%;
  padding: 10px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Arial, sans-serif;
  line-height: 1.5;
  margin-bottom: 15px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
}

.preview-container {
  background-color: white;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 15px;
  margin-top: 15px;
}

.preview-container h4 {
  margin-top: 0;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 16px;
}

/* Tips list */
.tips-list {
  list-style-type: none;
  padding-left: 0;
}

.tips-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.6;
  margin-bottom: 8px;
}

.tips-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-blue);
}

/* @Mention specific styles */
.mention-steps {
  margin: 20px 0;
}

.step {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid var(--primary-blue);
}

.step-number {
  background-color: var(--primary-blue);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content strong {
  display: block;
  margin-bottom: 5px;
  color: var(--blueText);
}

.step-content p {
  margin: 0;
  line-height: 1.5;
}

.feature-list {
  list-style-type: none;
  padding-left: 0;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 16px;
  height: 16px;
  background-color: #10b981;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.mention-example-output {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Arial, sans-serif;
}

/* Back button */
.back-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
}

/* Back link */
.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-weight: 500;
  position: relative;
  top: 80px;
}

/* Media queries for responsive design */
@media (max-width: 850px) {
  .back-link {
    top: 50px !important;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .formatting-help-container {
    padding: 40px 15px;
  }

  .formatting-section {
    padding: 20px 20px 10px 20px;
  }

  .formatting-section.full-padding {
    padding: 20px;
  }

  .example-grid {
    grid-template-columns: 1fr;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin-right: 0;
    margin-bottom: 10px;
  }

  .help-btn {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .back-link {
    top: 40px !important;
    font-size: 14px;
  }
}
