/* Markdown Content Styles */
.markdown-content {
    line-height: 1.8;
    color: var(--text-primary);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.markdown-content h1 {
    font-size: 2.5rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.markdown-content h3 {
    font-size: 1.5rem;
}

.markdown-content h4 {
    font-size: 1.25rem;
}

.markdown-content p {
    margin-bottom: 1.5rem;
}

.markdown-content a {
    color: var(--accent-primary);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

.markdown-content strong {
    font-weight: 700;
    color: var(--text-primary);
}

.markdown-content em {
    font-style: italic;
}

.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--accent-primary);
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--text-secondary);
}

.markdown-content code {
    background: var(--code-bg);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.9em;
    color: var(--text-primary);
}

.markdown-content pre {
    background: var(--code-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
    line-height: 1.6;
}

.markdown-content .highlight {
    background: var(--code-bg);
    border-radius: 8px;
    margin: 1.5rem 0;
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: 8px;
}

.markdown-content table th,
.markdown-content table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.markdown-content table th {
    background: var(--bg-secondary);
    font-weight: 700;
}

.markdown-content table tr:hover {
    background: var(--bg-secondary);
}

.markdown-content hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 2rem 0;
}

/* Code highlighting (Pygments styles compatible) */
.markdown-content .highlight .hll { background-color: #49483e }
.markdown-content .highlight .c { color: var(--text-tertiary); font-style: italic } /* Comment */
.markdown-content .highlight .k { color: #f92672 } /* Keyword */
.markdown-content .highlight .o { color: #f92672 } /* Operator */
.markdown-content .highlight .cm { color: var(--text-tertiary); font-style: italic } /* Comment.Multiline */
.markdown-content .highlight .cp { color: var(--text-tertiary); font-style: italic } /* Comment.Preproc */
.markdown-content .highlight .c1 { color: var(--text-tertiary); font-style: italic } /* Comment.Single */
.markdown-content .highlight .cs { color: var(--text-tertiary); font-style: italic } /* Comment.Special */
.markdown-content .highlight .ge { font-style: italic } /* Generic.Emph */
.markdown-content .highlight .gs { font-weight: bold } /* Generic.Strong */
.markdown-content .highlight .kc { color: #66d9ef } /* Keyword.Constant */
.markdown-content .highlight .kd { color: #66d9ef } /* Keyword.Declaration */
.markdown-content .highlight .kn { color: #f92672 } /* Keyword.Namespace */
.markdown-content .highlight .kp { color: #66d9ef } /* Keyword.Pseudo */
.markdown-content .highlight .kr { color: #66d9ef } /* Keyword.Reserved */
.markdown-content .highlight .kt { color: #66d9ef } /* Keyword.Type */
.markdown-content .highlight .ld { color: #e6db74 } /* Literal.Date */
.markdown-content .highlight .m { color: #ae81ff } /* Literal.Number */
.markdown-content .highlight .s { color: #e6db74 } /* Literal.String */
.markdown-content .highlight .na { color: #a6e22e } /* Name.Attribute */
.markdown-content .highlight .nb { color: #f8f8f2 } /* Name.Builtin */
.markdown-content .highlight .nc { color: #a6e22e } /* Name.Class */
.markdown-content .highlight .no { color: #66d9ef } /* Name.Constant */
.markdown-content .highlight .nd { color: #a6e22e } /* Name.Decorator */
.markdown-content .highlight .ni { color: #f8f8f2 } /* Name.Entity */
.markdown-content .highlight .ne { color: #a6e22e } /* Name.Exception */
.markdown-content .highlight .nf { color: #a6e22e } /* Name.Function */
.markdown-content .highlight .nl { color: #f8f8f2 } /* Name.Label */
.markdown-content .highlight .nn { color: #f8f8f2 } /* Name.Namespace */
.markdown-content .highlight .nx { color: #a6e22e } /* Name.Other */
.markdown-content .highlight .py { color: #f8f8f2 } /* Name.Property */
.markdown-content .highlight .nt { color: #f92672 } /* Name.Tag */
.markdown-content .highlight .nv { color: #f8f8f2 } /* Name.Variable */
.markdown-content .highlight .ow { color: #f92672 } /* Operator.Word */
.markdown-content .highlight .w { color: #f8f8f2 } /* Text.Whitespace */
.markdown-content .highlight .mf { color: #ae81ff } /* Literal.Number.Float */
.markdown-content .highlight .mh { color: #ae81ff } /* Literal.Number.Hex */
.markdown-content .highlight .mi { color: #ae81ff } /* Literal.Number.Integer */
.markdown-content .highlight .mo { color: #ae81ff } /* Literal.Number.Oct */
.markdown-content .highlight .sb { color: #e6db74 } /* Literal.String.Backtick */
.markdown-content .highlight .sc { color: #e6db74 } /* Literal.String.Char */
.markdown-content .highlight .sd { color: #e6db74 } /* Literal.String.Doc */
.markdown-content .highlight .s2 { color: #e6db74 } /* Literal.String.Double */
.markdown-content .highlight .se { color: #ae81ff } /* Literal.String.Escape */
.markdown-content .highlight .sh { color: #e6db74 } /* Literal.String.Heredoc */
.markdown-content .highlight .si { color: #e6db74 } /* Literal.String.Interpol */
.markdown-content .highlight .sx { color: #e6db74 } /* Literal.String.Other */
.markdown-content .highlight .sr { color: #e6db74 } /* Literal.String.Regex */
.markdown-content .highlight .s1 { color: #e6db74 } /* Literal.String.Single */
.markdown-content .highlight .ss { color: #e6db74 } /* Literal.String.Symbol */
.markdown-content .highlight .bp { color: #f8f8f2 } /* Name.Builtin.Pseudo */
.markdown-content .highlight .vc { color: #f8f8f2 } /* Name.Variable.Class */
.markdown-content .highlight .vg { color: #f8f8f2 } /* Name.Variable.Global */
.markdown-content .highlight .vi { color: #f8f8f2 } /* Name.Variable.Instance */
.markdown-content .highlight .il { color: #ae81ff } /* Literal.Number.Integer.Long */
