/* ===== CODE HIGHLIGHTING STYLES ===== */

/* Base code styles */
code {
    font-family: 'Courier New', Consolas, Monaco, monospace;
    font-size: 0.9em;
}

/* Inline code */
p code,
li code,
td code {
    background: #f8f9fa;
    color: #e83e8c;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-weight: 500;
}

/* Code blocks */
pre {
    background: #1e1e1e;
    color: #d4d4d4;
    border-radius: 8px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1.6;
    display: block;
}

/* Scrollbar for code blocks */
pre::-webkit-scrollbar {
    height: 8px;
}

pre::-webkit-scrollbar-track {
    background: #2d2d2d;
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

pre::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Post content styling */
.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.post-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

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

.post-content table th,
.post-content table td {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
}

.post-content table th {
    background: #f8f9fa;
    font-weight: 600;
}

.post-content blockquote {
    border-left: 4px solid #0d6efd;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #6c757d;
}
