/*
 * quick-heading-box — the labelled card used on the home dashboard and other
 * surfaces. Dark-themed for the site-wide redesign (uses the --r-* tokens from
 * redesign_shell.css). The coloured "heading" tab + arrow are kept; everything
 * else reads dark.
 */
.quick-heading-box {
  background: var(--r-surface, #16181f);
  border: 1px solid var(--r-line-soft, #23262f);
  border-radius: var(--r-radius, 14px);
  padding: 0;
  box-shadow: var(--r-shadow, 0 8px 30px rgba(0, 0, 0, 0.45));
  height: 100%;
  overflow: hidden;
}

.quick-heading-box .header-row {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: stretch;
  margin: 0;
  padding: 0;
  width: 100%;
}

.quick-heading-box .heading {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 15px;
  margin: 0;
  border-top-left-radius: var(--r-radius, 14px);
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  min-width: 80px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
}

.quick-heading-box .heading::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 0;
  width: 0;
  height: 0;
  border-left: 10px solid #2a5298;
  border-top: 21px solid transparent;
  border-bottom: 21px solid transparent;
  z-index: 1;
}

.quick-heading-box .subheading {
  font-size: 18px;
  font-weight: 600;
  color: var(--r-text, #eef1f7);
  margin: 0;
  padding: 10px 15px;
  text-align: left;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12) 0%, rgba(124, 92, 255, 0.02) 100%);
  border-top-right-radius: var(--r-radius, 14px);
}

.quick-heading-box table {
  width: 100%;
  margin: 15px 0 12px 0;
  color: var(--r-text-dim, #a4abba);
}

.quick-heading-box table th,
.quick-heading-box table td {
  padding: 4px 15px;
  text-align: left;
  border-bottom: 1px solid var(--r-line-soft, #23262f);
  font-size: 14px;
}

.quick-heading-box table th {
  font-weight: 600;
  color: var(--r-text-faint, #6f7686);
}

/* Icon action buttons in table */
.quick-heading-box table td.text-center {
  padding: 4px 8px;
  width: 40px;
}

.quick-heading-box table td a {
  color: var(--r-accent, #7c5cff);
  transition: color 0.2s ease;
}

.quick-heading-box table td a:hover {
  color: var(--r-focus, #9d86ff);
}

.quick-heading-box .inspiration {
  text-align: right;
  color: var(--r-accent-2, #27e0b3);
  font-size: 14px;
  padding: 0 15px 15px 15px;
}

.quick-heading-box .inspiration a {
  color: var(--r-accent-2, #27e0b3);
  text-decoration: none;
}

.quick-heading-box .inspiration a:hover {
  text-decoration: underline;
}

/* Scrollable container for long lists */
.completed-concepts-scroll {
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--r-surface-3, #262a35) transparent;
}

.completed-concepts-scroll::-webkit-scrollbar {
  width: 6px;
}

.completed-concepts-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.completed-concepts-scroll::-webkit-scrollbar-thumb {
  background: var(--r-surface-3, #262a35);
  border-radius: 3px;
}

.completed-concepts-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--r-line, #2c313d);
}

/* Sticky header inside scroll container */
.completed-concepts-scroll thead {
  position: sticky;
  top: 0;
  z-index: 1;
}

.completed-concepts-scroll thead th {
  background: var(--r-surface, #16181f);
  box-shadow: 0 1px 0 var(--r-line-soft, #23262f);
}

.completed-date {
  white-space: nowrap;
  color: var(--r-text-faint, #6f7686);
  font-size: 13px;
}

/* Status badges for completed concepts (lightened text for dark bg) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status-current {
  color: #4ade80;
  background: rgba(22, 101, 52, 0.18);
}

.status-deprecated {
  color: #fbbf24;
  background: rgba(146, 64, 14, 0.18);
}

.status-obsolete {
  color: #fca5a5;
  background: rgba(153, 27, 27, 0.18);
}

.status-redirect {
  color: #d8b4fe;
  background: rgba(107, 33, 168, 0.18);
}
