
/* Shared base styles */
.mono-text,
.code-block {
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

/* Code block container with terminal styling */
.code-block-container {
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-elevated) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

/* Terminal header bar */
.terminal-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.terminal-header.primary-gradient {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
}

.terminal-header.success-gradient {
    background: linear-gradient(90deg, var(--success) 0%, var(--primary) 50%, var(--secondary) 100%);
}

.terminal-header.warning-gradient {
    background: linear-gradient(90deg, var(--warning) 0%, var(--accent) 50%, var(--primary) 100%);
}

/* Terminal window controls */
.terminal-controls {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.window-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.window-dot.red { background: #ff5f56; }
.window-dot.yellow { background: #ffbd2e; }
.window-dot.green { 
    background: #27ca3f; 
    margin-right: 1rem;
}

/* Monospace text styling */
.mono-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Code block styling */
.code-block {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    background: none;
}

/* Card components - using shared base styles */
.component-card,
.success-card,
.enhancement-card {
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.component-card {
    background: var(--surface-elevated);
}

.success-card {
    background: var(--success-bg);
    border-color: var(--success-border);
}

.enhancement-card {
    color: var(--bg-color);
    text-align: center;
    border: none;
}

/* Grid layouts - shared base properties */
.components-grid,
.theme-grid,
.enhancements-grid,
.guidelines-grid {
    display: grid;
    gap: 1rem;
}

.components-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin: 1rem 0;
}

.theme-grid {
    grid-template-columns: 1fr 1fr;
    margin: 1rem 0;
}

.enhancements-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.guidelines-grid {
    gap: 0.5rem;
}

/* Guideline items */
.guideline-item {
    display: flex;
    align-items: center;
    background: var(--surface-elevated);
    padding: 1rem;
    border-radius: var(--radius);
    border-left: 4px solid;
}

.guideline-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

/* Demo section styling */
.demo-section {
    padding: 4rem 0;
    background: var(--bg-color);
}

.demo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.demo-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.demo-container > p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

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

.demo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    text-align: left;
}

.demo-card h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.demo-form {
    max-width: none;
}

/* Flex layouts */
.button-showcase,
.notification-demo {
    display: flex;
    gap: 1rem;
}

.button-showcase {
    flex-wrap: wrap;
    margin-bottom: 2rem;
    justify-content: center;
}

.notification-demo {
    flex-direction: column;
}

/* Responsive design lol */
@media (max-width: 768px) {
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .demo-card {
        padding: 2rem 1.5rem;
    }
    
    .button-showcase {
        flex-direction: column;
        align-items: center;
    }
    
    .button-showcase .btn {
        width: 100%;
        max-width: 250px;
    }
}