/**
 * Code Sandbox Styles
 */

.code-sandbox {
    background: var(--darker, #050d1a);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    margin: 2rem 0;
}

.sandbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sandbox-language {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary, #00d4aa);
    background: rgba(0, 212, 170, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.sandbox-actions {
    display: flex;
    gap: 0.5rem;
}

.sandbox-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.sandbox-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary, #0070f3);
}

.sandbox-editor {
    position: relative;
}

.sandbox-code {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--light, #e4e8f0);
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    resize: vertical;
}

.sandbox-code:focus {
    outline: none;
}

.sandbox-output {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.output-header {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray, #6b7280);
    text-transform: uppercase;
}

.output-content {
    padding: 1rem;
    margin: 0;
    min-height: 60px;
    max-height: 200px;
    overflow-y: auto;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.85rem;
    color: var(--secondary, #00d4aa);
    white-space: pre-wrap;
}

/* Demo Section */
.demo-section {
    padding: 80px 0;
    background: var(--dark, #0a1628);
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.demo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
}

.demo-card-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-card-header h4 {
    margin: 0 0 0.5rem;
    color: var(--white, #ffffff);
}

.demo-card-header p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray, #6b7280);
}

.demo-card-body {
    padding: 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .demo-grid {
        grid-template-columns: 1fr;
    }

    .sandbox-code {
        min-height: 150px;
    }
}
