/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* === Scrollbar === */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #151528; }
::-webkit-scrollbar-thumb { background: #3a3a5c; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #5a5a7a; }

/* === Markdown Content === */
.markdown-content { line-height: 1.8; }
.markdown-content h1 { font-size: 1.6rem; border-bottom: 1px solid #3a3a5c; padding-bottom: 0.3rem; margin-top: 1.5rem; margin-bottom: 0.5rem; color: #f0f0f8; }
.markdown-content h2 { font-size: 1.3rem; border-bottom: 1px solid #3a3a5c; padding-bottom: 0.2rem; margin-top: 1.2rem; margin-bottom: 0.5rem; color: #f0f0f8; }
.markdown-content h3 { font-size: 1.1rem; margin-top: 1rem; margin-bottom: 0.4rem; color: #f0f0f8; }
.markdown-content p { margin-bottom: 0.8rem; }
.markdown-content ul, .markdown-content ol { margin-left: 1.5rem; margin-bottom: 0.8rem; }
.markdown-content li { margin-bottom: 0.2rem; }
.markdown-content code {
    background: #0d0d1a;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #ff6b81;
}
.markdown-content pre {
    background: #0d0d1a;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid #2a2a4a;
}
.markdown-content pre code { padding: 0; background: none; color: #e0e0ee; }
.markdown-content blockquote {
    border-left: 3px solid #e94560;
    padding-left: 1rem;
    color: #8888aa;
    margin-bottom: 0.8rem;
    font-style: italic;
}
.markdown-content table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.markdown-content th, .markdown-content td {
    border: 1px solid #2a2a4a;
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.markdown-content th { background: #1e1e38; font-weight: 600; color: #f0f0f8; }
.markdown-content td { background: #151528; }
.markdown-content img { max-width: 100%; border-radius: 8px; }
.markdown-content a { color: #64b5f6; }
.markdown-content a:hover { color: #90caf9; text-decoration: underline; }
.markdown-content strong { color: #f0f0f8; }

/* === Animations === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes glow {
    0%, 100% { text-shadow: 0 0 20px rgba(233,69,96,0.3); }
    50% { text-shadow: 0 0 40px rgba(233,69,96,0.6), 0 0 80px rgba(233,69,96,0.2); }
}
@keyframes pulse-border {
    0%, 100% { border-color: #e94560; }
    50% { border-color: #ff6b81; }
}
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out; }
.animate-glow { animation: glow 3s ease-in-out infinite; }
.animate-pulse-border { animation: pulse-border 2s ease-in-out infinite; }

/* === Textarea for editors === */
textarea.wiki-editor {
    font-family: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    tab-size: 4;
    resize: vertical;
}
