/* DeadMenStillTalk - Custom Styles */

/* Prose styling for blog post content */
.prose {
    line-height: 1.8;
}
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    font-family: "Cormorant Garamond", Georgia, serif;
    color: #e8e0d0;
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-weight: 600;
}
.prose h1 { font-size: 2.25em; }
.prose h2 { font-size: 1.75em; border-bottom: 1px solid rgba(196, 163, 90, 0.2); padding-bottom: 0.3em; }
.prose h3 { font-size: 1.375em; }
.prose h4 { font-size: 1.125em; }

.prose p {
    margin-bottom: 1.25em;
    color: #d4cbb8;
}

.prose a {
    color: #c4a35a;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}
.prose a:hover {
    color: #d4b76a;
}

.prose blockquote {
    border-left: 3px solid #c4a35a;
    padding-left: 1.25em;
    margin: 1.5em 0;
    color: #b8a890;
    font-style: italic;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.1em;
}

.prose code {
    background: rgba(42, 36, 32, 0.8);
    border: 1px solid rgba(42, 36, 32, 1);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.875em;
    color: #d4b76a;
}

.prose pre {
    background: #111111;
    border: 1px solid #2a2420;
    border-radius: 8px;
    padding: 1.25em;
    overflow-x: auto;
    margin: 1.5em 0;
}
.prose pre code {
    background: none;
    border: none;
    padding: 0;
    color: #d4cbb8;
    font-size: 0.875em;
}

.prose ul, .prose ol {
    padding-left: 1.5em;
    margin-bottom: 1.25em;
    color: #d4cbb8;
}
.prose ul { list-style-type: disc; }
.prose ol { list-style-type: decimal; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: #c4a35a; }

.prose img {
    border-radius: 8px;
    margin: 1.5em 0;
    max-width: 100%;
}

.prose hr {
    border: none;
    border-top: 1px solid rgba(196, 163, 90, 0.2);
    margin: 2em 0;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}
.prose th, .prose td {
    border: 1px solid #2a2420;
    padding: 0.75em 1em;
    text-align: left;
}
.prose th {
    background: #111111;
    color: #e8e0d0;
    font-weight: 600;
}
.prose td { color: #d4cbb8; }

.prose strong { color: #e8e0d0; font-weight: 600; }
.prose em { font-style: italic; }

/* Line clamp utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #2a2420;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3a3430;
}

/* Smooth transitions */
* {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(196, 163, 90, 0.3);
    color: #e8e0d0;
}

/* Admin sidebar transition */
#sidebar {
    transition: transform 0.2s ease-in-out;
}

/* Focus ring override for dark theme */
input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Markdown editor textarea */
#content_md {
    tab-size: 4;
    -moz-tab-size: 4;
}
