/* Markdown Content Styling for DaisyUI */
.markdown-content {
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: hsl(var(--bc));
}

/* Headings */
.markdown-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: hsl(var(--p));
    margin: 2rem 0 1rem 0;
    border-bottom: 3px solid hsl(var(--p));
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: hsl(var(--s));
    margin: 1.5rem 0 0.75rem 0;
    border-bottom: 2px solid hsl(var(--p) / 0.3);
    padding-bottom: 0.25rem;
}

.markdown-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: hsl(var(--a));
    margin: 1.25rem 0 0.5rem 0;
}

.markdown-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: hsl(var(--p) / 0.8);
    margin: 1rem 0 0.5rem 0;
}

.markdown-content h5 {
    font-size: 1.125rem;
    font-weight: 600;
    color: hsl(var(--s) / 0.8);
    margin: 0.875rem 0 0.5rem 0;
}

.markdown-content h6 {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(var(--a) / 0.8);
    margin: 0.75rem 0 0.5rem 0;
}

/* Paragraphs */
.markdown-content p {
    margin: 1rem 0;
}

/* Text formatting */
.markdown-content strong {
    font-weight: 700;
    color: hsl(var(--bc));
}

.markdown-content em {
    font-style: italic;
    color: hsl(var(--bc) / 0.8);
}

.markdown-content s {
    text-decoration: line-through;
    color: hsl(var(--bc) / 0.6);
}

/* Lists */
.markdown-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.markdown-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin: 0.5rem 0;
    line-height: 1.6;
}

.markdown-content ul li::marker {
    color: hsl(var(--p));
}

.markdown-content ol li::marker {
    color: hsl(var(--p));
    font-weight: 600;
}

/* Code */
.markdown-content code {
    background: hsl(var(--b2));
    color: hsl(var(--a));
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 0.875rem;
    border: 1px solid hsl(var(--b3));
}

.markdown-content pre {
    background: hsl(var(--n));
    color: hsl(var(--nc));
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid hsl(var(--bc) / 0.2);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

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

/* Blockquotes */
.markdown-content blockquote {
    border-left: 4px solid hsl(var(--p));
    background: hsl(var(--b2));
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: hsl(var(--bc) / 0.8);
    position: relative;
}

.markdown-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: hsl(var(--p) / 0.3);
    position: absolute;
    top: -0.5rem;
    left: 0.5rem;
    opacity: 0.3;
}

.markdown-content blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Tables */
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.markdown-content th {
    background: hsl(var(--p));
    color: hsl(var(--pc));
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.markdown-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid hsl(var(--b3));
    background: hsl(var(--b1));
}

.markdown-content tr:nth-child(even) td {
    background: hsl(var(--b2));
}

.markdown-content tr:hover td {
    background: hsl(var(--p) / 0.1);
}

/* Links */
.markdown-content a {
    color: hsl(var(--p));
    text-decoration: underline;
    text-decoration-color: hsl(var(--p) / 0.3);
    text-underline-offset: 0.25rem;
    transition: all 0.2s ease;
}

.markdown-content a:hover {
    color: hsl(var(--s));
    text-decoration-color: hsl(var(--p));
    filter: brightness(1.1);
}

/* Horizontal rules */
.markdown-content hr {
    border: none;
    height: 3px;
    background: hsl(var(--p));
    margin: 2rem 0;
    border-radius: 1.5px;
    opacity: 0.6;
}

/* Images */
.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .markdown-content h1 { font-size: 2rem; }
    .markdown-content h2 { font-size: 1.75rem; }
    .markdown-content h3 { font-size: 1.5rem; }
    .markdown-content pre { padding: 1rem; font-size: 0.75rem; }
    .markdown-content blockquote { padding: 0.75rem 1rem; }
}

/* Compact styling for small containers */
.markdown-content.compact h1 { font-size: 1.5rem; margin: 1rem 0 0.5rem 0; }
.markdown-content.compact h2 { font-size: 1.25rem; margin: 0.75rem 0 0.25rem 0; }
.markdown-content.compact h3 { font-size: 1.125rem; margin: 0.5rem 0 0.25rem 0; }
.markdown-content.compact p { margin: 0.5rem 0; }
.markdown-content.compact pre { margin: 1rem 0; padding: 1rem; }
.markdown-content.compact blockquote { margin: 0.75rem 0; padding: 0.5rem 1rem; } 