/* IDE Demo */
.ide-demo {
    font-size: 0.75rem;
}

.ide-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.ide-tab {
    padding: 0.4rem 0.8rem;
    background: var(--bg-card);
    border-radius: 6px 6px 0 0;
    color: var(--text-muted);
    font-size: 0.7rem;
}

.ide-tab.active {
    background: var(--bg-secondary);
    color: var(--accent);
}

.ide-content {
    display: flex;
    gap: 1rem;
}

.ide-line-numbers {
    color: var(--text-muted);
    text-align: right;
    user-select: none;
    padding-right: 1rem;
    border-right: 1px solid var(--border);
}

.ide-code {
    flex: 1;
}

.ide-code .keyword {
    color: var(--accent-secondary);
}

.ide-code .function {
    color: var(--accent);
}

.ide-code .string {
    color: #98c379;
}

.ide-code .comment {
    color: var(--text-muted);
}

.ide-autocomplete {
    margin-top: 0.5rem;
    margin-left: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.5rem;
    animation: fadeIn 0.3s ease;
}

.ide-autocomplete-item {
    padding: 0.3rem 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 4px;
}

.ide-autocomplete-item:first-child {
    background: rgba(94, 234, 212, 0.1);
}

.ide-autocomplete-item .icon {
    color: var(--accent-tertiary);
    font-size: 0.65rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
