/* Custom overrides to make PrismJS theme match the portfolio design */

pre[class*="language-"] {
    border: 1px solid var(--border-color);
    background: #0c0c0c; /* Slightly darker than surface */
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-size: 0.95rem;
    position: relative; /* Needed for copy button positioning */
    margin: 0;
    /* [ADD] Scrollbar styling for Firefox */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Styles for the code block wrapper */
.code-block-wrapper {
    position: relative;
    margin-top: 1.5rem;
}

/* Styles for the copy button */
.copy-code-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--secondary-text);
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    line-height: 0; /* Ensures icon is centered */
}

.copy-code-btn:hover {
    background-color: var(--border-color);
    color: var(--primary-text);
}

.copy-code-btn .feather {
    width: 18px;
    height: 18px;
}

/* [ADD] Styling for a thin, translucent scrollbar in Webkit browsers */
pre[class*="language-"]::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

pre[class*="language-"]::-webkit-scrollbar-track {
    background: transparent;
}

pre[class*="language-"]::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2); /* Translucent thumb */
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: content-box;
}

pre[class*="language-"]::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.4); /* Slightly more visible on hover */
}

