.markdown-content {
  color: #D6D6D6;
  font-size: 1.125rem;
  line-height: 1.7;
  font-feature-settings: 'liga' 1, 'calt' 1;
}

.markdown-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFFFFF 0%, #10B981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 3rem 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #2A2A2A;
  position: relative;
}

.markdown-content h1::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #10B981, transparent);
}

.markdown-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 2.5rem 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #333333;
}

.markdown-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #F0F0F0;
  margin: 2rem 0 1.25rem;
}

.markdown-content h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #E5E5E5;
  margin: 1.75rem 0 1rem;
}

.markdown-content p {
  margin: 1.5rem 0;
  color: #D6D6D6;
  text-wrap: pretty;
}

.markdown-content ul,
.markdown-content ol {
  margin: 1.75rem 0;
  padding-left: 2.25rem;
}

.markdown-content li {
  margin-bottom: 0.875rem;
  padding-left: 0.625rem;
  position: relative;
}

.markdown-content ul li::before {
  content: '•';
  color: #10B981;
  font-weight: bold;
  position: absolute;
  left: -1.25rem;
  font-size: 1.2em;
}

.markdown-content ol {
  counter-reset: list-counter;
}

.markdown-content ol li {
  counter-increment: list-counter;
}

.markdown-content ol li::before {
  content: counter(list-counter) '.';
  color: #10B981;
  font-weight: 600;
  position: absolute;
  left: -1.75rem;
  min-width: 1.5rem;
  text-align: right;
}

.markdown-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2.5rem 0;
  background: linear-gradient(145deg, #1A1A1A, #151515);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.markdown-content th {
  background: linear-gradient(145deg, #10B981, #0D9C6E);
  color: #000000;
  font-weight: 600;
  padding: 1.125rem 1.25rem;
  text-align: left;
  font-size: 0.95em;
  text-transform: uppercase;
  /* letter-spacing: 0.5px; */
}

.markdown-content td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #2A2A2A;
  color: #D6D6D6;
  transition: background-color 0.2s ease;
}

.markdown-content tbody tr:last-child td {
  border-bottom: none;
}

.markdown-content tbody tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

.markdown-content tbody tr:hover {
  background-color: rgba(16, 185, 129, 0.08);
}

.markdown-content tbody tr:hover td {
  color: #FFFFFF;
}


.markdown-content code:not(pre code) {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  padding: 0.2em 0.4em;
  border-radius: 6px;
  font-size: 0.9em;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-weight: 500;
}

.markdown-content pre {
  background: linear-gradient(#1e1e1e);
  padding: 1.5rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid #222222;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
}

.markdown-content pre::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #10B981);
}

.markdown-content pre code {
  background: transparent;
  color: #E5E7EB;
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  display: block;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
}

.markdown-content blockquote {
  border-left: 4px solid #10B981;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  color: #C4C4C4;
  background: linear-gradient(145deg, #1E1E1E, #191919);
  border-radius: 0 12px 12px 0;
  position: relative;
  font-style: italic;
}

.markdown-content blockquote::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 0.75rem;
  font-size: 3rem;
  color: #10B981;
  opacity: 0.3;
  font-family: serif;
}

.markdown-content a {
  color: #10B981;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
  padding: 0 2px;
}

.markdown-content a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #10B981, #2DD4A5);
  transition: width 0.3s ease;
}

.markdown-content a:hover {
  color: #2DD4A5;
}

.markdown-content a:hover::before {
  width: 100%;
}

.markdown-content img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem auto;
  display: block;
  background: linear-gradient(145deg, #1A1A1A, #151515);
  padding: 0.75rem;
  border: 1px solid #2A2A2A;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.markdown-content img:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.markdown-content hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #10B981, transparent);
  margin: 3rem 0;
  position: relative;
}

.markdown-content hr::after {
  content: '⚡';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #121212;
  padding: 0 1rem;
  color: #10B981;
  font-size: 1.2rem;
}

/* Адаптивноть */
@media (max-width: 768px) {
  .markdown-content {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .markdown-content h1 {
    font-size: 2rem;
  }
  
  .markdown-content h2 {
    font-size: 1.75rem;
  }
  
  .markdown-content h3 {
    font-size: 1.375rem;
  }
  
  .markdown-content h4 {
    font-size: 1.125rem;
  }
  
  .markdown-content pre {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .markdown-content table {
    font-size: 0.9rem;
  }
  
  .markdown-content th,
  .markdown-content td {
    padding: 0.75rem 1rem;
  }
}

.markdown-content {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-color-scheme: dark) {
  .markdown-content {
    color-scheme: dark;
  }
}

.markdown-content :focus {
  outline: 2px solid #10B981;
  outline-offset: 2px;
  border-radius: 4px;
}

.markdown-content .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}