/* Trove Component Styles */

/* === ICONS === */
.icon { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-xs { width: 12px; height: 12px; }
.icon-lg { width: 18px; height: 18px; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-lg);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-hover); }

.btn-ghost {
  background: var(--surface);
  color: var(--text-2);
  border: 0.5px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-3); border-color: transparent; }

.btn-bare {
  background: transparent;
  color: var(--text-2);
}
.btn-bare:hover { background: var(--surface-3); }

.btn-icon {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn-icon:hover { background: var(--surface-3); color: var(--text-1); }
.btn-icon:active { transform: scale(0.94); }

.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn-lg { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

/* === INPUT === */
.input {
  height: 36px;
  padding: 0 12px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text-1);
  font-size: 13px;
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  width: 100%;
}
.input::placeholder { color: var(--text-4); }
.input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

/* === SEARCH === */
.search {
  position: relative;
  flex: 1;
  max-width: 360px;
}
.search input {
  height: 36px;
  width: 100%;
  padding: 0 12px 0 36px;
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-lg);
  font-size: 13px;
  color: var(--text-1);
  outline: none;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.search input::placeholder { color: var(--text-4); }
.search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-4); pointer-events: none; }
.search kbd {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-4);
  background: var(--surface-3);
  border-radius: 4px;
  padding: 2px 6px;
  pointer-events: none;
}

/* === PILLS / CHIPS === */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0;
  white-space: nowrap;
}
.pill-unread { background: var(--blue-bg); color: var(--blue-text); }
.pill-read { background: var(--green-bg); color: var(--green-text); }
.pill-progress { background: var(--amber-bg); color: var(--amber-text); }
.pill-archived { background: var(--surface-3); color: var(--text-4); }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface-3);
  border-radius: 5px;
  padding: 1px 7px;
  letter-spacing: 0.01em;
  transition: background-color var(--t-fast), color var(--t-fast);
  cursor: pointer;
}
.tag:hover { background: var(--blue-bg); color: var(--blue-text); }

.collection-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-3);
  border-radius: 5px;
  padding: 1px 7px;
}
.collection-chip svg { width: 9px; height: 9px; }

/* === CARD === */
.card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: var(--r-xl);
}

/* === DIVIDER === */
.vdiv { width: 1px; height: 16px; background: var(--border); }
.hdiv { height: 0.5px; background: var(--border-sub); width: 100%; }

/* === KBD === */
.kbd {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-3);
  background: var(--surface-3);
  border: 0.5px solid var(--border);
  border-bottom-width: 1px;
  border-radius: 4px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  display: inline-block;
}
