/* Code Block Styles */
.code-block {
    position: relative;
    margin: 1.5rem 0;
}

.code-block .code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--code-border-color);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    padding: 0.5rem 1rem;
}

.secondary-theme .code-block .code-header {
    background-color: rgba(255, 255, 255, 0.05);
}

.code-block .language-name {
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--secondary-text-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-block .copy-button {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--code-border-color);
    background-color: var(--bg-color);
    color: var(--text-color);
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.code-block .copy-button:hover {
    background-color: var(--link-normal);
    color: white;
    border-color: var(--link-normal);
}

.code-block .copy-button.copied {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.code-block pre {
    margin: 0;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .code-block .code-header {
        padding: 0.5rem;
    }
    
    .code-block .language-name {
        font-size: 0.7rem;
    }
    
    .code-block .copy-button {
        padding: 0.25rem;
        font-size: 0.7rem;
    }
}