/* CollabForge AI — cards, buttons, chips, badges (shared everywhere) */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm); padding: 11px 20px; border-radius: var(--radius-pill); border: 1px solid transparent; transition: var(--transition); white-space: nowrap; line-height: 1; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--primary { background: var(--color-accent); color: #fff; box-shadow: 0 1px 2px rgba(36,79,176,0.3); }
.btn--primary:hover:not(:disabled) { background: var(--color-accent-strong); transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn--ghost { background: var(--color-surface); color: var(--color-text-primary); border-color: var(--color-border); }
.btn--ghost:hover:not(:disabled) { border-color: var(--color-accent-line); background: var(--color-accent-soft); }
.btn--dark { background: var(--color-surface-dark); color: var(--color-text-invert); }
.btn--dark:hover:not(:disabled) { background: #16283F; }
.btn--sm { padding: 7px 14px; font-size: var(--text-xs); }
.btn--block { width: 100%; }
.btn--link { padding: 0; background: none; color: var(--color-accent); font-weight: 600; border-radius: 4px; }
.btn--link:hover { text-decoration: underline; }

/* Cards */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.card--pad { padding: var(--space-6); }
.card--dark { background: var(--color-surface-dark); color: var(--color-text-invert); border-color: var(--color-border-dark); }
.card--interactive { transition: var(--transition); cursor: pointer; }
.card--interactive:hover { border-color: var(--color-accent-line); box-shadow: var(--shadow-elevated); transform: translateY(-2px); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.card__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 500; }
.card__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: var(--space-3); }

/* Grids */
.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* Chips */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--color-canvas-alt); border: 1px solid var(--color-border); font-size: var(--text-xs); font-weight: 500; color: var(--color-text-secondary); }
.chip--active { background: var(--color-accent-soft); border-color: var(--color-accent-line); color: var(--color-accent-strong); }
.chip--removable button { color: var(--color-text-muted); font-weight: 700; line-height: 1; }
.chip--removable button:hover { color: var(--color-error); }

/* Stat tiles — real runtime values only */
.stat-row { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.stat { min-width: 110px; }
.stat__value { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 500; color: var(--color-text-primary); line-height: 1.1; }
.stat__label { font-size: var(--text-xs); color: var(--color-text-muted); letter-spacing: 0.03em; text-transform: uppercase; margin-top: 4px; font-family: var(--font-mono); }

/* Section headers */
.section-head { margin-bottom: var(--space-6); }
.section-head .eyebrow { margin-bottom: var(--space-2); display: block; }

/* Evidence item */
.evidence { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); }
.evidence__title { font-weight: 600; font-size: var(--text-sm); color: var(--color-text-primary); }
.evidence__title a:hover { color: var(--color-accent); text-decoration: underline; }
.evidence__snippet { font-size: var(--text-sm); color: var(--color-text-secondary); }
.evidence__meta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-top: 4px; }
