/* ViCode v2.0 - Frontend Styles */

/* Inline Code Styling */
code.vicode-inline {
    background: rgba(0, 0, 0, 0.08);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #e83e8c;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Code Blocks */
.vicode-block {
    margin: 2em 0;
    border-radius: 8px;
    overflow: hidden;
    background: #1e1e1e;
    font-family: 'Courier New', Courier, monospace;
    width: 100%;
    max-width: 100%;
}

.vicode-shadow-subtle {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vicode-shadow-medium {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.vicode-shadow-bold {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.vicode-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75em 1.25em;
    background: rgba(255, 255, 255, 0.03);
}

.vicode-language {
    font-size: 0.75em;
    font-weight: 600;
    color: #9cdcfe;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.vicode-copy-btn {
    display: flex;
    align-items: center;
    gap: 0.5em;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 0.4em 0.8em;
    border-radius: 4px;
    color: #d4d4d4;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vicode-copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.vicode-copy-btn.copied {
    background: rgba(76, 175, 80, 0.2);
    color: #4caf50;
}

.vicode-copy-btn svg {
    width: 14px;
    height: 14px;
}

.vicode-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.vicode-content-wrapper {
    display: flex;
    overflow-x: auto;
    background: #1e1e1e;
}

.vicode-line-numbers-column {
    padding: 1em 0;
    background: rgba(0, 0, 0, 0.2);
    color: #858585;
    font-size: 0.875em;
    text-align: right;
    user-select: none;
    min-width: 3em;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.vicode-line-numbers-column span {
    display: block;
    padding: 0 0.75em;
    line-height: 1.5;
}

.vicode-pre {
    flex: 1;
    margin: 0;
    padding: 1em 1.25em;
    overflow-x: auto;
    background: transparent;
}

.vicode-pre code {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.875em;
    line-height: 1.5;
    color: #d4d4d4;
    background: transparent;
    white-space: pre;
}

.vicode-placeholder {
    padding: 2em;
    text-align: center;
    color: #666;
    font-style: italic;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .vicode-block {
        margin: 1.5em 0;
        border-radius: 6px;
    }
    
    .vicode-header {
        padding: 0.6em 1em;
    }
    
    .vicode-pre {
        padding: 0.875em 1em;
    }
    
    .vicode-pre code {
        font-size: 0.8em;
    }
}

/* Scrollbar styling */
.vicode-content-wrapper::-webkit-scrollbar,
.vicode-pre::-webkit-scrollbar {
    height: 8px;
}

.vicode-content-wrapper::-webkit-scrollbar-track,
.vicode-pre::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.vicode-content-wrapper::-webkit-scrollbar-thumb,
.vicode-pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.vicode-content-wrapper::-webkit-scrollbar-thumb:hover,
.vicode-pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}