/* ── Shared item card styles (fr-card) ── */

.fr-card {
  background: #1f1f1f;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color 0.12s;
}
.fr-card.st-owned   { border-color: #2a4a2a; }
.fr-card.st-missing { border-color: #2a2a2a; }
.fr-card:hover,
.fr-card.st-owned:hover,
.fr-card.st-missing:hover { border-color: #504428; }

.fr-card-row {
  display: flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  user-select: none;
  transition: background 0.1s;
}
.fr-card-row:hover { background: rgba(255,255,255,0.03); }

.fr-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  object-fit: cover; opacity: 0.9;
}
.fr-icon-ph {
  width: 44px; height: 44px; flex-shrink: 0;
  background: #252525;
}

.fr-name {
  flex: 1; min-width: 0;
  font-size: 13px; color: #d4c8a0;
  padding: 0 8px;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* ── Collection check button ── */
.fr-check {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 4px; border: 1px solid;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; margin: 0 6px; cursor: pointer; user-select: none;
}
.fr-check.owned          { background: #1e3020; border-color: #3a6030; color: #80d090; }
.fr-check.missing        { background: #222;    border-color: #383838; color: #383838; }
.fr-check.owned:hover    { background: #2a4030; border-color: #4a8040; }
.fr-check.missing:hover  { background: #2a2a2a; border-color: #606060; color: #606060; }
.fr-check.loading        { opacity: 0.4; pointer-events: none; }

/* ── Remove button (collection page) ── */
.fr-remove {
  flex-shrink: 0; background: none; border: none; cursor: pointer;
  color: #555; font-size: 16px; padding: 2px 8px; line-height: 1;
  transition: color 0.1s;
}
.fr-remove:hover { color: #e06060; }

/* ── Expand chevron ── */
.fr-chevron {
  font-size: 9px; color: #555;
  flex-shrink: 0; padding: 0 10px;
  transition: transform 0.15s;
}
.fr-card.open > .fr-card-row > .fr-chevron { transform: rotate(90deg); color: #888; }

/* ── Expanded detail ── */
.fr-detail {
  display: none;
  padding: 6px 10px 10px;
  border-top: 1px solid #272727;
  background: #191919;
}
.fr-card.open > .fr-detail       { display: block; }
.fr-detail-loading { color: #666;    font-size: 12px; padding: 4px 0; }
.fr-detail-error   { color: #a04040; font-size: 12px; padding: 4px 0; }

/* ── Slot icon + card row layout (index, collection-solver) ── */
.easy-item-row  { display: flex; gap: 6px; align-items: flex-start; }
.easy-slot-col  { flex: 0 0 36px; display: flex; align-items: flex-start; justify-content: center; }
.easy-slot-icon { object-fit: contain; opacity: 0.95; }
.easy-slot-txt  { font-size: 10px; color: #666; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 8px; text-align: center; }
.easy-cards-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }

/* ── Shared thin scrollbar (add fr-scroll to any overflow-y:auto container) ── */
.fr-scroll::-webkit-scrollbar       { width: 6px; }
.fr-scroll::-webkit-scrollbar-track { background: #1a1a1a; }
.fr-scroll::-webkit-scrollbar-thumb { background: #3a3a3a; border-radius: 3px; }
.fr-scroll::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── Tab row (inside .page-controls-bar) ── */
.fr-tabs { max-width: 1200px; padding: 0 8px; display: flex; flex-wrap: wrap; }
.fr-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 6px; font-size: 13px; color: #888; cursor: pointer;
  border: none; border-bottom: 2px solid transparent; background: none;
  user-select: none; transition: color 0.1s; white-space: nowrap; border-radius: 0;
}
.fr-tab:hover { color: #c0b080; }
.fr-tab.active { color: #f0d070; border-bottom-color: #c0a040; }
.fr-tab img { width: 26px; height: 26px; object-fit: contain; flex-shrink: 0; }
