/* Custom CSS for additional styling */

/* Dark mode media query */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #111827;
        color: #f9fafb;
    }
}

/* Code blocks styling */
.codehilite {
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1.5rem 0;
    overflow-x: auto;
    background-color: #1e293b !important;
}

.codehilite pre {
    margin: 0;
    padding: 0;
    background: transparent;
}

/* Inline code */
code:not(.codehilite code) {
    background-color: #f3f4f6;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

@media (prefers-color-scheme: dark) {
    code:not(.codehilite code) {
        background-color: #374151;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Link hover effect */
a {
    transition: all 0.2s ease-in-out;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Blockquote styling in posts */
blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

/* Table styling */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

table th,
table td {
    padding: 0.75rem;
    border: 1px solid #e5e7eb;
}

@media (prefers-color-scheme: dark) {
    table th,
    table td {
        border-color: #374151;
    }
}

table th {
    background-color: #f3f4f6;
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    table th {
        background-color: #1f2937;
    }
}

/* Image styling */
img {
    max-width: 100%;
    height: auto;
}

