/* Flame-Themed Markdown Styling */
.response-content {
  color: #f5f5f5;
  background: linear-gradient(to bottom, #1a0500 0%, #2d0a00 100%);
  padding: 1.5em;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 70, 0, 0.4);
  border: 1px solid #ff3300;
}

.response-content h1, .response-content h2, .response-content h3 {
  color: #ff7700;
  margin: 1.2em 0 0.6em;
  text-shadow: 0 0 8px rgba(255, 119, 0, 0.7);
  border-bottom: 1px solid rgba(255, 100, 0, 0.3);
  padding-bottom: 0.3em;
}

.response-content h1 {
  background: linear-gradient(to right, #ff5500, #ffaa00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.response-content h2 {
  background: linear-gradient(to right, #ff7700, #ffcc00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.response-content p {
  line-height: 1.6;
  margin-bottom: 1em;
  color: #ffd1b3;
}

/* First letter styling removed */

.response-content ul, .response-content ol {
  margin: 1em 0;
  padding-left: 1.5em;
  list-style-type: none;
}

.response-content ul li::before {
  content: "🔥";
  margin-right: 0.5em;
  display: inline-block;
}

.response-content ol {
  counter-reset: flame-counter;
}

.response-content ol li {
  counter-increment: flame-counter;
  position: relative;
}

.response-content ol li::before {
  content: counter(flame-counter);
  background: linear-gradient(to bottom, #ff5500, #ff9900);
  color: #fff;
  font-weight: bold;
  padding: 0 0.5em;
  border-radius: 50%;
  margin-right: 0.5em;
  display: inline-block;
  text-align: center;
  min-width: 1.2em;
  box-shadow: 0 0 5px rgba(255, 100, 0, 0.5);
}

.response-content li {
  margin-bottom: 0.8em;
  position: relative;
  transition: transform 0.2s ease;
}

.response-content li:hover {
  transform: translateX(5px);
}

.response-content strong {
  color: #ff3300;
  text-shadow: 0 0 5px rgba(255, 51, 0, 0.4);
  font-weight: bold;
}

.response-content em {
  color: #ffcc00;
  font-style: italic;
  text-shadow: 0 0 3px rgba(255, 204, 0, 0.3);
}

.response-content code {
  background: rgba(40, 10, 0, 0.8);
  color: #ff9955;
  padding: 3px 6px;
  border-radius: 3px;
  font-family: monospace;
  border-left: 2px solid #ff6600;
}

.response-content a {
  color: #ffaa33;
  text-decoration: none;
  border-bottom: 1px dashed #ff8800;
  transition: all 0.3s ease;
  position: relative;
}

.response-content a:hover {
  color: #ffcc00;
  border-bottom: 1px solid #ffcc00;
  text-shadow: 0 0 8px rgba(255, 170, 51, 0.7);
}

.response-content a:hover::after {
  content: "🔥";
  position: absolute;
  font-size: 0.8em;
  right: -1.2em;
  top: 0;
  animation: flicker 1s infinite alternate;
}

.response-content blockquote {
  border-left: 3px solid #ff5500;
  margin: 1em 0;
  padding: 0.5em 1em;
  background: rgba(255, 85, 0, 0.1);
  border-radius: 0 5px 5px 0;
  box-shadow: 0 0 10px rgba(255, 85, 0, 0.2) inset;
}

.response-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, transparent, #ff6600, transparent);
  margin: 2em 0;
}

@keyframes flicker {
  0%, 100% {
      opacity: 1;
  }
  50% {
      opacity: 0.5;
  }
}