/* Code blocks styling - Force LTR direction */
.content-body pre,
.content-body code {
    direction: ltr !important;
    text-align: left !important;
}

.content-body pre {
    position: relative;
    border-radius: 12px !important;
    margin: 1.5em 0 !important;
    padding: 1.5em !important;
    overflow-x: auto;
    background: #2d3748 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    font-family: "Fira Code", "Monaco", "Cascadia Code", "Roboto Mono",
        monospace !important;
}

.content-body pre code {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-size: 0.9em;
    line-height: 1.6;
    color: #e2e8f0 !important;
    font-family: inherit !important;
}

.content-body p code {
    background: rgba(45, 55, 72, 0.1) !important;
    color: #e53e3e !important;
    padding: 0.2em 0.4em !important;
    border-radius: 4px !important;
    font-size: 0.85em;
    font-weight: 600;
    font-family: "Fira Code", "Monaco", "Cascadia Code", "Roboto Mono",
        monospace !important;
}

/* Override Prism theme colors for better visibility */
.content-body pre[class*="language-"] {
    background: #2d3748 !important;
}

.content-body code[class*="language-"] {
    background: transparent !important;
}

/* Copy button styling */
.copy-button {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e2e8f0;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

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

.copy-button.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    color: #22c55e;
}
