/**
 * Breso UI components — solo tokens --breso-*
 */

/* ── Card ── */
.breso-card {
    background: var(--breso-surface);
    border: 0.5px solid var(--breso-border-soft);
    border-radius: var(--breso-radius-lg);
    box-shadow: var(--breso-shadow-xs);
    padding: 24px;
}

.breso-card--flush {
    padding: 0;
    overflow: hidden;
}

.breso-card--muted {
    background: var(--breso-surface-muted);
}

/* ── Hero ── */
.breso-hero {
    margin-bottom: 28px;
}

.breso-hero__greet {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--breso-text-tertiary);
    margin: 0 0 8px;
}

.breso-hero__title {
    font-family: var(--breso-font-display);
    font-size: 34px;
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--breso-text);
    margin: 0 0 8px;
}

.breso-hero__desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--breso-text-secondary);
    margin: 0;
    max-width: 36rem;
}

/* ── Section header ── */
.breso-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.breso-section-header__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--breso-text-tertiary);
    margin: 0 0 4px;
}

.breso-section-header__title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--breso-text);
    margin: 0;
}

.breso-section-header__desc {
    font-size: 13px;
    color: var(--breso-text-secondary);
    margin: 4px 0 0;
}

.breso-section-header__action {
    flex-shrink: 0;
}

/* ── Stat (KPI) ── */
.breso-stat {
    background: var(--breso-surface);
    border: 0.5px solid var(--breso-border-soft);
    border-radius: var(--breso-radius-lg);
    box-shadow: var(--breso-shadow-xs);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 100px;
}

.breso-stat__icon {
    width: 36px;
    height: 36px;
    border-radius: var(--breso-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: var(--breso-blue-soft);
    color: var(--breso-blue);
}

.breso-stat__icon--gold {
    background: var(--breso-gold-soft);
    color: var(--breso-gold);
}

.breso-stat__icon--success {
    background: var(--breso-success-soft);
    color: var(--breso-success);
}

.breso-stat__icon--danger {
    background: var(--breso-danger-soft);
    color: var(--breso-danger);
}

.breso-stat__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--breso-text-tertiary);
    margin: 0;
}

.breso-stat__value {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--breso-text);
    margin: 0;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.breso-stat__value--danger {
    color: var(--breso-danger);
}

.breso-stat__trend {
    font-size: 11px;
    font-weight: 500;
    margin: 0;
}

.breso-stat__trend--up {
    color: var(--breso-success);
}

.breso-stat__trend--down {
    color: var(--breso-danger);
}

.breso-stat__trend--neutral {
    color: var(--breso-text-tertiary);
}

/* ── Badge ── */
.breso-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: var(--breso-radius-pill);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
}

.breso-badge--info {
    background: var(--breso-blue-soft);
    color: var(--breso-blue);
}

.breso-badge--success {
    background: var(--breso-success-soft);
    color: var(--breso-success);
}

.breso-badge--warn {
    background: var(--breso-warn-soft);
    color: var(--breso-warn);
}

.breso-badge--danger {
    background: var(--breso-danger-soft);
    color: var(--breso-danger);
}

.breso-badge--neutral {
    background: var(--breso-surface-muted);
    color: var(--breso-text-secondary);
}

/* ── Button ── */
.breso-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--breso-font-ui);
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    transition: background var(--breso-duration) var(--breso-ease),
        color var(--breso-duration) var(--breso-ease),
        transform var(--breso-duration) var(--breso-ease),
        box-shadow var(--breso-duration) var(--breso-ease);
}

.breso-btn:active {
    transform: scale(0.98);
}

.breso-btn--primary {
    background: var(--breso-blue);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 113, 227, 0.22);
}

.breso-btn--primary:hover {
    background: #0077ed;
}

.breso-btn--secondary {
    background: var(--breso-surface);
    color: var(--breso-text);
    border: 0.5px solid var(--breso-border);
}

.breso-btn--secondary:hover {
    background: var(--breso-surface-muted);
}

.breso-btn--ghost {
    background: transparent;
    color: var(--breso-blue);
}

.breso-btn--ghost:hover {
    background: var(--breso-blue-soft);
}

.breso-btn--dark {
    background: var(--breso-text);
    color: #fff;
}

.breso-btn--dark:hover {
    background: #2d2d2f;
}

.breso-btn--sm {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: var(--breso-radius-sm);
}

.breso-btn--md {
    font-size: 14px;
    padding: 11px 18px;
    border-radius: var(--breso-radius-sm);
}

.breso-btn--lg {
    font-size: 15px;
    padding: 14px 22px;
    border-radius: var(--breso-radius);
    width: 100%;
}

.breso-btn:disabled,
.breso-btn[aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* ── List item ── */
.breso-list-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 0.5px solid var(--breso-border-soft);
    transition: background var(--breso-duration) var(--breso-ease);
}

.breso-list-item:last-child {
    border-bottom: none;
}

a.breso-list-item:hover,
button.breso-list-item:hover {
    background: var(--breso-surface-muted);
}

.breso-list-item__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--breso-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--breso-blue-soft);
    color: var(--breso-blue);
    font-size: 1rem;
}

.breso-list-item__icon--gold {
    background: var(--breso-gold-soft);
    color: var(--breso-gold);
}

.breso-list-item__body {
    flex: 1;
    min-width: 0;
}

.breso-list-item__title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--breso-text);
    margin: 0 0 2px;
}

.breso-list-item__sub {
    font-size: 13px;
    color: var(--breso-text-secondary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breso-list-item__end {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--breso-text-tertiary);
    font-size: 14px;
    font-weight: 500;
}

.breso-list-item__chevron {
    font-size: 18px;
    line-height: 1;
    color: var(--breso-text-tertiary);
}

/* ── Action card ── */
.breso-action-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--breso-surface);
    border: 0.5px solid var(--breso-border-soft);
    border-radius: var(--breso-radius-lg);
    box-shadow: var(--breso-shadow-xs);
    text-decoration: none;
    color: inherit;
    transition: transform var(--breso-duration) var(--breso-ease),
        box-shadow var(--breso-duration) var(--breso-ease);
    cursor: pointer;
}

.breso-action-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--breso-shadow-sm);
}

.breso-action-card__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--breso-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--breso-danger-soft);
    color: var(--breso-danger);
    font-size: 1.25rem;
}

.breso-action-card__icon--warn {
    background: var(--breso-warn-soft);
    color: var(--breso-warn);
}

.breso-action-card__icon--info {
    background: var(--breso-blue-soft);
    color: var(--breso-blue);
}

.breso-action-card__body {
    flex: 1;
    min-width: 0;
}

.breso-action-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--breso-text);
    margin: 0 0 4px;
}

.breso-action-card__desc {
    font-size: 13px;
    color: var(--breso-text-secondary);
    margin: 0;
}

.breso-action-card__chevron {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--breso-text-tertiary);
}

/* ── Layout helpers ── */
.breso-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.breso-stat-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1100px) {
    .breso-stat-grid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .breso-stat-grid {
        grid-template-columns: 1fr;
    }

    .breso-stat-grid--4 {
        grid-template-columns: 1fr;
    }
}

.breso-section {
    margin-bottom: 28px;
}
