@import '_content/Duara.SharedUI/Duara.SharedUI.lct309fprq.bundle.scp.css';

/* /Pages/DesignSystem.razor.rz.scp.css */
/* ============================================
   Design System Page - Scoped Styles
   Matches Reference UI with high fidelity
   ============================================ */

/* Page container: max-w-5xl mx-auto p-6 space-y-8 */
.design-system[b-r3b6cov1cx] {
    max-width: 64rem; /* 1024px */
    margin-left: auto;
    margin-right: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Section cards: bg-white rounded-xl p-6 shadow-sm */
.design-system[b-r3b6cov1cx] >  .duara-section {
    background-color: var(--color-surface);
    border-radius: 0.75rem; /* 12px */
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

/* Section title: text-xl font-semibold text-[#115E59] */
.design-system[b-r3b6cov1cx] >  .duara-section__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #115E59;
    margin-bottom: 1rem;
}

/* Swatches grid */
[b-r3b6cov1cx] .design-system__swatches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}

/* Individual swatch card */
[b-r3b6cov1cx] .design-system__swatch {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Swatch color box: h-20 rounded-lg shadow-md */
[b-r3b6cov1cx] .design-system__swatch-color {
    height: 5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

[b-r3b6cov1cx] .design-system__swatch-meta {
    padding-top: 0.25rem;
}

[b-r3b6cov1cx] .design-system__swatch-meta p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-gray-900);
}

[b-r3b6cov1cx] .design-system__swatch-meta small {
    font-size: 0.875rem;
    color: var(--color-gray-600);
}

/* Component grids */
[b-r3b6cov1cx] .design-system__grid {
    display: grid;
    gap: 1rem;
}

[b-r3b6cov1cx] .design-system__grid--buttons,
[b-r3b6cov1cx] .design-system__grid--inputs {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

[b-r3b6cov1cx] .design-system__grid--badges {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}

[b-r3b6cov1cx] .design-system__grid--commerce {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Component labels */
[b-r3b6cov1cx] .design-system__label {
    margin: 0 0 0.75rem;
    color: var(--color-gray-900);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Stack layouts */
[b-r3b6cov1cx] .design-system__stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

[b-r3b6cov1cx] .design-system__stack--row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Commerce block with gradient */
[b-r3b6cov1cx] .design-system__money {
    background: radial-gradient(
        circle at top right,
        color-mix(in srgb, var(--color-primary) 12%, transparent),
        var(--color-surface)
    );
}

/* Note text */
[b-r3b6cov1cx] .design-system__note {
    color: var(--color-gray-700);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 640px) {
    .design-system[b-r3b6cov1cx] {
        padding: 1rem;
        gap: 1.5rem;
    }

    .design-system[b-r3b6cov1cx] >  .duara-section {
        padding: 1rem;
    }

    [b-r3b6cov1cx] .design-system__grid--buttons,
    [b-r3b6cov1cx] .design-system__grid--badges,
    [b-r3b6cov1cx] .design-system__grid--inputs,
    [b-r3b6cov1cx] .design-system__grid--commerce {
        grid-template-columns: 1fr;
    }
}
