/* Zenith Documentation - Playground Styles */

.playground.main-playground {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    height: 600px;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.editor-pane,
.output-pane {
    display: flex;
    flex-direction: column;
}

.pane-header {
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.code-input {
    flex: 1;
    background: var(--bg-body);
    color: var(--text-main);
    border: none;
    padding: 1rem;
    font-family: var(--font-code);
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    outline: none;
    min-height: 300px;
}

.output-content {
    flex: 1;
    background: var(--bg-body);
    padding: 1rem;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--primary);
    white-space: pre-wrap;
    overflow-y: auto;
}

/* ===== OUTPUT PANE (for keyword sections) ===== */
.output-pane {
    display: flex;
    flex-direction: column;
    height: 200px;
}

.output-pane .pane-header {
    background: var(--bg-card);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
}

.output-pane .output-content {
    flex: 1;
    background: var(--bg-body);
    padding: 1rem;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--primary);
    white-space: pre-wrap;
    overflow-y: auto;
    height: calc(100% - 40px);
}

.try-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    margin-left: 0.5rem;
    transition: all var(--transition-speed);
}

.try-btn:hover {
    background: var(--secondary);
    transform: scale(1.05);
}

/* Syntax Highlighting */
.keyword {
    color: #bb86fc;
    font-weight: 600;
}

.string {
    color: #03dac6;
}

.number {
    color: #f59e0b;
}

.comment {
    color: var(--text-muted);
    font-style: italic;
}

.function {
    color: #06b6d4;
}

.operator {
    color: #f43f5e;
}

/* Responsive */
@media (max-width: 768px) {
    .playground {
        grid-template-columns: 1fr;
        height: auto;
    }

    .code-input {
        height: 300px;
    }
}