/* ============================================================
   Knowledge Gaps — Refined Glass Design
   ============================================================ */

/* ---------- Gap Card ---------- */
.gap-card {
  border: 1px solid var(--border, #E1E5EF);
  border-radius: 14px;
  background: var(--bg-card, #fff);
  padding: 1.2rem 1.4rem;
  margin-bottom: 0.85rem;
  transition: all 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  overflow: hidden;
  animation: appFadeUp 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.gap-card:hover {
  box-shadow: 0 8px 28px rgba(22, 34, 56, 0.07);
  transform: translateY(-2px);
  border-color: rgba(var(--primary-rgb, 215, 25, 32), 0.15);
}

/* Status accent */
.gap-card--pending {
  border-left: 4px solid var(--color-warning, #B7791F);
}
.gap-card--added {
  border-left: 4px solid var(--color-success, #2D8F6F);
}
.gap-card--dismissed {
  border-left: 4px solid var(--text-muted, #6B7280);
  opacity: 0.75;
}

.gap-card--pending:hover { box-shadow: 0 8px 28px rgba(255, 201, 40, 0.08); }

/* ---------- Question ---------- */
.gap-question {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main, #1E2430);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

/* ---------- Context ---------- */
.gap-context {
  font-size: 0.82rem;
  color: var(--text-sub, #4B5565);
  margin-bottom: 0.6rem;
  padding: 0.4rem 0.7rem;
  background: rgba(var(--primary-rgb, 215, 25, 32), 0.03);
  border-radius: 8px;
  border-left: 2px solid rgba(var(--primary-rgb, 215, 25, 32), 0.12);
}

/* ---------- Meta Row ---------- */
.gap-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted, #6B7280);
  margin-bottom: 0.65rem;
}

.gap-freq {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  color: #7A5B0A;                          /* dark amber — 5.8:1 contrast on cream bg */
  background: rgba(230, 183, 92, 0.15);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.76rem;
}

/* ---------- Actions ---------- */
.gap-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(var(--primary-rgb, 215, 25, 32), 0.06);
}

.gap-actions .btn {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  transition: all 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.gap-actions .btn:hover {
  transform: translateY(-1px);
}

/* Stagger animation */
#gapList .gap-card:nth-child(1)  { animation-delay: 0.04s; }
#gapList .gap-card:nth-child(2)  { animation-delay: 0.08s; }
#gapList .gap-card:nth-child(3)  { animation-delay: 0.12s; }
#gapList .gap-card:nth-child(4)  { animation-delay: 0.16s; }
#gapList .gap-card:nth-child(5)  { animation-delay: 0.20s; }
#gapList .gap-card:nth-child(6)  { animation-delay: 0.24s; }
#gapList .gap-card:nth-child(7)  { animation-delay: 0.28s; }
#gapList .gap-card:nth-child(8)  { animation-delay: 0.32s; }
