/* Dark mode is default - see base.html */

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.dark ::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
}

.dark ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.dark ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Markdown Content Styles */
.prose {
    color: #374151;
    max-width: 65ch;
}

.dark .prose {
    color: #e5e7eb;
}

.prose h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    margin-top: 2rem;
    color: #111827;
    line-height: 1.2;
}

.dark .prose h1 {
    color: #f9fafb;
}

.prose h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
    color: #1f2937;
    line-height: 1.3;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.dark .prose h2 {
    color: #f3f4f6;
    border-bottom-color: #374151;
}

.prose h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1.25rem;
    color: #1f2937;
    line-height: 1.4;
}

.dark .prose h3 {
    color: #f3f4f6;
}

.prose h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    color: #1f2937;
}

.dark .prose h4 {
    color: #f3f4f6;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.75;
}

.prose ul {
    list-style-type: disc;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.prose ol {
    list-style-type: decimal;
    margin-bottom: 1rem;
    margin-left: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.prose li > ul,
.prose li > ol {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.prose strong {
    font-weight: 600;
    color: #111827;
}

.dark .prose strong {
    color: #f9fafb;
}

.prose em {
    font-style: italic;
}

.prose a {
    color: #8c7a58;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.dark .prose a {
    color: #e2c08d;
}

.prose a:hover {
    color: #6b5d43;
}

.dark .prose a:hover {
    color: #f0d5a3;
}

.prose blockquote {
    border-left: 4px solid #8c7a58;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #4b5563;
}

.dark .prose blockquote {
    border-left-color: #e2c08d;
    color: #d1d5db;
}

.prose code {
    background-color: #f3f4f6;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.875em;
}

.dark .prose code {
    background-color: #374151;
}

.prose pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.dark .prose pre {
    background-color: #1f2937;
}

.prose pre code {
    background-color: transparent;
    padding: 0;
}

.prose hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.dark .prose hr {
    border-top-color: #374151;
}

.prose img {
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.dark .prose img {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.prose th,
.prose td {
    border: 1px solid #e5e7eb;
    padding: 0.75rem;
    text-align: left;
}

.dark .prose th,
.dark .prose td {
    border-color: #374151;
}

.prose th {
    background-color: #f9fafb;
    font-weight: 600;
}

.dark .prose th {
    background-color: #1f2937;
}

/* Print styles */
@media print {
    header, footer, .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .prose {
        max-width: none !important;
        color: black !important;
    }
    
    .prose h1, .prose h2, .prose h3, .prose h4 {
        color: black !important;
    }
}
