/* Custom CSS for Hugo blog */

/* Aside styling */
.aside {
    position: relative;
    margin: 1.5rem 0;
}

/* Code block styling */
.highlight {
    position: relative;
    margin: 1.5rem 0;
}

.highlight pre {
    padding: 1rem;
    overflow-x: auto;
    border-radius: 0.375rem;
}

/* Copy button styling */
.highlight button {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 0.25rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.highlight button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Line numbers */
.highlight .ln {
    margin-right: 0.75rem;
    padding-right: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pagination styling */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-item {
    margin: 0 0.25rem;
}

.pagination .page-link {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    color: #1e40af;
    background-color: white;
    transition: all 0.2s;
}

.pagination .page-link:hover {
    background-color: #f3f4f6;
}

.pagination .active .page-link {
    background-color: #1e40af;
    color: white;
}

/* Responsive images */
.content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.375rem;
}

/* Mermaid diagram styling */
.mermaid {
    text-align: center;
    margin: 2rem 0;
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.375rem;
    border: 1px solid #e5e7eb;
}

/* Ensure Mermaid diagrams are responsive */
.mermaid svg {
    max-width: 100%;
    height: auto;
}
