/* ============================================================
   NEXORA · Components / Cards, Badges, Chips — Apple Minimal
   No borders, no shadows, no glows. Pure white / black.
   ============================================================ */

/* ---------- Card ------------------------------------------ */

.card {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--dur) var(--ease-out),
    background var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out);
}

.card-glass {
  background: var(--bg-elevated);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card-hover:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  background: var(--bg-elevated);
}

/* Gradient top-edge accent removed */
.card-edge::before { content: none; display: none; }
.card-edge:hover::before { opacity: 0; }

/* Icon tile — flat, perfectly centered */
.icon-tile {
  display: grid;
  place-items: center;
  place-content: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: none;
  color: var(--text-2);
  flex: none;
  box-shadow: none;
  line-height: 0;
  padding: 0;
  aspect-ratio: 1;
}

[data-theme="light"] .icon-tile { background: #f5f5f7; }
[data-theme="dark"] .icon-tile { background: #1c1c1e; }

.icon-tile .icon {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  line-height: 0;
  flex: none;
}

.icon-tile svg {
  display: block;
  width: 20px;
  height: 20px;
}

/* ---------- Badges / chips / tags -------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  background: var(--bg-elevated);
  border: none;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: none;
}

.badge-accent,
.badge-success,
.badge-warn {
  color: var(--text-2);
  border: none;
  background: var(--bg-elevated);
  box-shadow: none;
}

[data-theme="light"] .badge { background: #f5f5f7; }
[data-theme="dark"] .badge { background: #1c1c1e; }

.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge .dot-pulse { animation: none; }

/* Skill tag — minimal pill */
.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-2);
  background: var(--bg-elevated);
  border: none;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: none;
  transition: color var(--dur) var(--ease-out);
}

[data-theme="light"] .skill-tag { background: #f5f5f7; }
[data-theme="dark"] .skill-tag { background: #1c1c1e; }

/* ---------- Avatars ---------------------------------------- */

.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
  background: #1d1d1f;
  border: 2px solid var(--bg-elevated);
  flex: none;
  letter-spacing: 0.02em;
}

.avatar-lg { width: 54px; height: 54px; font-size: 1rem; }
.avatar-sm { width: 30px; height: 30px; font-size: 0.66rem; }

.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { margin-left: -0.6rem; }
.avatar-stack .avatar:first-child { margin-left: 0; }

.avatar-more {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  margin-left: -0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-2);
  background: var(--surface-2);
  border: 2px solid var(--bg-elevated);
}

/* Avatar color variants — monochrome minimal */
.av-1, .av-2, .av-3, .av-4, .av-5, .av-6 { --av-a: #1d1d1f; --av-b: #6e6e73; }

/* ---------- Progress bars ---------------------------------- */

.bar {
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  overflow: hidden;
}

[data-theme="light"] .bar { background: #f5f5f7; }
[data-theme="dark"] .bar { background: #1c1c1e; }

.bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--text-1);
  box-shadow: none;
  transition: width 1.2s var(--ease-out);
}

.bar-fill.c1, .bar-fill.c2, .bar-fill.c3, .bar-fill.c4, .bar-fill.c5,
.bar-fill.web, .bar-fill.python, .bar-fill.design, .bar-fill.ai, .bar-fill.robotics {
  background: var(--text-1);
}

/* ---------- KPI / stat blocks ------------------------------- */

.kpi { display: flex; flex-direction: column; gap: 0.15rem; }

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1;
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ---------- Status dot -------------------------------------- */

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: none;
}

/* ---------- Check list -------------------------------------- */

.check-list { display: grid; gap: 0.8rem; list-style: none; padding: 0; }

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.5;
}

.check-list .icon { color: var(--text-1); margin-top: 0.2rem; }
