.code-window {
background: #0d1117;
border: 1px solid #30363d;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.code-header {
background: var(--bg-card-hover);
padding: 0.75rem 1rem;
border-bottom: 1px solid #30363d;
display: flex;
align-items: center;
gap: 1rem;
}
.code-dots {
display: flex;
gap: 6px;
}
.code-dots span {
width: 10px;
height: 10px;
border-radius: 50%;
background: #30363d;
}
.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }
.code-title {
font-family: var(--font-mono);
font-size: 0.85rem;
color: var(--text-muted);
}
.code-window pre {
padding: 1.5rem;
margin: 0;
font-family: var(--font-mono);
font-size: 0.9rem;
line-height: 1.6;
color: #c9d1d9;
overflow-x: auto;
}
.code-window .comment { color: var(--text-muted); font-style: italic; }
.code-window .keyword { color: #ff7b72; }
.code-window .string { color: #a5d6ff; }
.interactive {
display: inline-block;
padding: 0 4px;
margin: 0 -4px;
border-radius: 4px;
transition: all 0.2s;
cursor: default;
}
.interactive.highlight {
background: rgba(56, 189, 248, 0.2);
color: #38bdf8;
box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.4);
}
.interactive.dim {
opacity: 0.3;
}