
/* GLOBAL RESETS */
body { background-color: #1a1a1a; color: #f3f4f6; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #1a1a1a; }
::-webkit-scrollbar-thumb { background: #2d2d2d; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #d4af37; }
select option { background-color: #1a1a1a; color: white; padding: 10px; }

#backup-modal { transition: opacity 0.2s ease; }
#backup-modal.hidden { pointer-events: none; opacity: 0; display: none; }
#backup-modal:not(.hidden) { opacity: 1; pointer-events: auto; display: flex; }
#footer-socials a { display: inline-flex; align-items: center; justify-content: center; transition: color 0.3s ease; }
#sys-check-error { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.95); color: #ff4444; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: monospace; padding: 20px; text-align: center; }
#sys-check-error.hidden { display: none; }

/* TYPOGRAPHY ENGINE */
#entry-content-editor, #post-content, .prose {
    font-family: 'Inter', sans-serif; font-size: 16px; line-height: 1.7 !important; color: #e5e7eb;
}
#entry-content-editor p, #post-content p, .prose p { margin-bottom: 1.2em !important; text-align: justify; display: block; }
#entry-content-editor h3, #post-content h3, .prose h3 {
    font-size: 1.5rem !important; font-weight: 700 !important; color: #d4af37 !important;
    margin-top: 2em !important; margin-bottom: 0.8em !important; line-height: 1.3 !important;
    display: block; border-bottom: 1px dashed #3d3d3d; padding-bottom: 5px;
}
#entry-content-editor ul, #post-content ul, .prose ul { list-style-type: disc !important; padding-left: 2rem !important; margin-bottom: 1.2em !important; }
#entry-content-editor ol, #post-content ol, .prose ol { list-style-type: decimal !important; padding-left: 2rem !important; margin-bottom: 1.2em !important; }
#entry-content-editor li, #post-content li, .prose li { margin-bottom: 0.5em !important; padding-left: 0.5em; }
#entry-content-editor img, #post-content img, .prose img { max-width: 100%; height: auto; border: 1px solid #3d3d3d; border-radius: 4px; margin: 1.5em auto; display: block; }
#entry-content-editor a, #post-content a, .prose a { color: #d4af37; text-decoration: underline; text-underline-offset: 3px; transition: color 0.2s; }
#entry-content-editor a:hover, #post-content a:hover, .prose a:hover { color: white; }
#entry-content-editor blockquote, #post-content blockquote, .prose blockquote { border-left: 4px solid #d4af37; padding-left: 1rem; font-style: italic; color: #9ca3af; background: #252525; padding: 10px 15px; margin-bottom: 1.2em; }

/* EDITOR SPECIFIC */
#entry-content-editor { min-height: 400px; background: #1a1a1a; border: 1px solid #3d3d3d; padding: 25px; outline: none; overflow-y: auto; }
#entry-content-editor:focus { border-color: #d4af37; box-shadow: 0 0 0 1px #d4af37; }
.editor-toolbar { background: #252525; border: 1px solid #3d3d3d; border-bottom: none; padding: 8px; display: flex; gap: 4px; flex-wrap: wrap; position: sticky; top: 0; z-index: 10; }
.editor-btn { background: #1a1a1a; color: #9ca3af; border: 1px solid #3d3d3d; min-width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 2px; font-size: 13px; font-weight: 600; transition: all 0.2s; }
.editor-btn:hover { background: #d4af37; color: #1a1a1a; border-color: #d4af37; }
.editor-separator { width: 1px; background: #444; margin: 0 6px; }
