/* Component Demo Page Styles */

.component-demo-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.component-section {
    margin-bottom: 4rem;
}

.component-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--sage-700);
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--mint-500);
}

.component-description {
    font-size: 1.125rem;
    color: var(--charcoal-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.demo-block {
    background: white;
    border: 1px solid var(--pearl);
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.demo-block h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--sage-700);
    padding: 1.5rem;
    margin: 0;
    background: var(--white-smoke);
    border-bottom: 1px solid var(--pearl);
}

.demo-description {
    padding: 1rem 1.5rem;
    margin: 0;
    color: var(--charcoal-light);
    background: var(--light-mint);
    border-bottom: 1px solid var(--pearl);
    font-size: 0.95rem;
}

.demo-preview {
    padding: 2rem 1.5rem;
    background: white;
}

.demo-code {
    background: var(--charcoal);
    padding: 0;
    border-top: 1px solid var(--pearl);
}

.demo-code pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.demo-code code {
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #a8f0d1;
}

/* Parameters Table */
.parameters-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem;
    max-width: calc(100% - 3rem);
}

.parameters-table th {
    background: var(--sage-700);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
}

.parameters-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--pearl);
    vertical-align: top;
}

.parameters-table tbody tr:hover {
    background: var(--white-smoke);
}

.parameters-table code {
    background: var(--light-mint);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--sage-700);
}

.parameters-table td:nth-child(1) {
    font-weight: 600;
    color: var(--sage-700);
}

.parameters-table td:nth-child(2),
.parameters-table td:nth-child(3) {
    white-space: nowrap;
}

.parameters-table td:nth-child(4) {
    color: var(--charcoal-light);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .component-demo-container {
        padding: 1rem;
    }

    .component-title {
        font-size: 2rem;
    }

    .demo-block h3 {
        font-size: 1.25rem;
    }

    .parameters-table {
        font-size: 0.875rem;
    }

    .parameters-table th,
    .parameters-table td {
        padding: 0.75rem;
    }

    .demo-code code {
        font-size: 0.75rem;
    }
}
