﻿/* --- Component tokens for dark marine --- */
:root {
  /* thin / strong divider lines on dark */
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);

  /* text colors (align with style.css) */
  --text: #e6edf6;
  --muted: #a7b3c7;

  /* accent from theme */
  --accent: #79a8ff;
  --accent-600: #98bdff;
  --accent-ring: rgba(121, 168, 255, 0.35);

  /* surfaces used below */
  --bg-elev: #0f1b2d;
  --bg-elev-2: #122038;
}

/* ------------------------------
   Card grids / topics
   ------------------------------ */
/* (unchanged grid logic, just here for completeness) */
.value-grid,
.topics {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ------------------------------
   Keyword pills row
   ------------------------------ */
.pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 4px;
}

/* ------------------------------
   Pill (filled by default for dark)
   ------------------------------ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;

  padding: 6px 12px;
  font-size: .9rem;
  color: var(--accent-600);

  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(121, 168, 255, 0.10);       /* subtle fill on dark */
  text-decoration: none;

  transition:
    background-color .15s ease,
    border-color .15s ease,
    box-shadow .15s ease,
    color .15s ease;
}

/* Hover / Focus */
.pill:hover {
  background: rgba(121, 168, 255, 0.16);
  border-color: var(--line-strong);
}

.pill:focus-visible {
  outline: none;
  border-color: var(--accent-600);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Muted variant (outline only, no fill) */
.pill.muted {
  color: var(--muted);
  background: transparent;
  border-color: var(--line);
}

/* Optional: “ghost” variant if you ever need it */
.pill.ghost {
  color: var(--text);
  background: var(--bg-elev);
  border-color: var(--line);
}
.pill.ghost:hover {
  background: var(--bg-elev-2);
  border-color: var(--line-strong);
}

/* Respect motion settings */
@media (prefers-reduced-motion: reduce) {
  .pill { transition: none; }
}
