/* ════════════════════════════════════════════════════════════
 * ui-cards.css — Biosis RCL component stilleri
 * Bölümler: UiCard, UiSkeleton, UiServiceError
 * (ui-components.css monolitinden bölündü — 2026-06-02)
 * ════════════════════════════════════════════════════════════ */

/*
 * UiCard — scoped styling for the slotted regions. Border colour is read
 * from the theme tokens so dark/light modes work automatically.
 */

.ui-card__header {
    padding: 1rem 1.5rem;
    border-block-end: 1px solid var(--va-border);
}

.ui-card__footer {
    padding: 1rem 1.5rem;
    border-block-start: 1px solid var(--va-border);
    background-color: color-mix(in oklab, var(--va-elevated) 60%, transparent);
}

@media (max-width: 640px) {
    .ui-card__header,
    .ui-card__footer {
        padding-inline: 1rem;
    }
}

/* === Ui/CommandPalette/UiCommandPalette.razor.css === */
/*
 * UiSkeleton — placeholder block with a moving sheen.
 *
 * Implementation: a single element with a 200%-wide horizontal gradient
 * that animates left-to-right. Faster than a pseudo-element overlay
 * (no extra DOM node) and cheap enough to leave dozens on a page
 * without any perf hit.
 *
 * Honours prefers-reduced-motion by freezing the sheen — the colour
 * stays present so the user can still see "this is a placeholder",
 * but no motion is rendered.
 *
 * RTL: the sheen direction is inset-aware — `linear-gradient(110deg…)`
 * is direction-agnostic at the CSS level, so the same animation
 * reads naturally in both LTR and RTL contexts.
 */

.ui-skeleton {
    display: inline-block;
    border-radius: 6px;
    background-color: var(--va-elevated);
    background-image: linear-gradient(
        110deg,
        transparent 0%,
        transparent 30%,
        color-mix(in oklab, var(--va-text) 6%, transparent) 50%,
        transparent 70%,
        transparent 100%
    );
    background-size: 220% 100%;
    background-repeat: no-repeat;
    background-position: 100% 0;
    animation: ui-skeleton-sheen 1.4s ease-in-out infinite;
    overflow: hidden;
    user-select: none;
    pointer-events: none;
    vertical-align: middle;
}

.ui-skeleton--circle {
    border-radius: 999px !important;
}

@keyframes ui-skeleton-sheen {
    0%   { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ui-skeleton { animation: none; }
}

/* Stack the same elsewhere in scoped Razor CSS by referencing
   .ui-skeleton-stack — gives a vertical column of skeletons with
   consistent spacing. */
.ui-skeleton-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* === Ui/Sliders/UiSlider.razor.css === */
/*
 * UiServiceError — inline error state with a warning icon, copy, and
 * an optional retry button. Compact mode squeezes everything onto a
 * single row for KPI cards; default mode is a stacked block for
 * larger panels.
 */

.ui-svc-err {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 9px;
    background-color: color-mix(in oklab, var(--va-warning) 10%, transparent);
    border: 1px solid color-mix(in oklab, var(--va-warning) 28%, transparent);
}

.ui-svc-err__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--va-warning);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.ui-svc-err__icon svg { width: 100%; height: 100%; }

.ui-svc-err__text {
    flex: 1 1 auto;
    min-width: 0;
}

.ui-svc-err__title {
    font-size: 0.78125rem;
    font-weight: 600;
    color: var(--va-text);
    line-height: 1.35;
}

.ui-svc-err__detail {
    margin-top: 2px;
    font-size: 0.71875rem;
    color: var(--va-text-dim);
    line-height: 1.4;
}

.ui-svc-err__retry {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 7px;
    background: transparent;
    border: 1px solid color-mix(in oklab, var(--va-warning) 32%, transparent);
    color: var(--va-warning);
    font-family: inherit;
    font-size: 0.71875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease;
}
.ui-svc-err__retry:hover {
    background-color: color-mix(in oklab, var(--va-warning) 18%, transparent);
    border-color: var(--va-warning);
}
.ui-svc-err__retry:focus-visible {
    outline: 2px solid var(--va-warning);
    outline-offset: 1px;
}
.ui-svc-err__retry svg {
    width: 11px;
    height: 11px;
}

/* Compact: tight padding, single row, no detail. */
.ui-svc-err--compact {
    padding: 6px 10px;
    align-items: center;
    gap: 8px;
}
.ui-svc-err--compact .ui-svc-err__icon {
    width: 14px;
    height: 14px;
    margin-top: 0;
}
.ui-svc-err--compact .ui-svc-err__title {
    font-size: 0.71875rem;
}
.ui-svc-err--compact .ui-svc-err__retry {
    padding: 2px 7px;
}

/* === Ui/Toggles/UiCheckbox.razor.css === */