/* ================================================================
   steam.css — STEAM LIBRARY
   A top-down manifest of every game played, sortable by hours or
   name. Data comes from /api/steam (analytics_server.py holds the
   Steam Web API key server-side).
================================================================ */

/* ── Header + summary ─────────────────────────────────────────── */
.stmHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #2a3a66;
  background: rgba(8,16,34,0.7);
  padding: 12px 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}
.stmHeaderLabel {
  font-family: monospace;
  font-size: 9px;
  color: #4a6aa0;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.stmHeaderTitle {
  font-size: 14px;
  color: #cfe4ff;
  letter-spacing: 2px;
  margin-top: 4px;
  text-shadow: 0 0 10px rgba(100,170,255,0.4);
}
.stmSummary {
  font-family: monospace;
  font-size: 10px;
  color: #66ccaa;
  letter-spacing: 1px;
  text-align: right;
}
.stmSummary b { color: #9fe8cc; }

/* ── Account switcher ─────────────────────────────────────────── */
.stmAccounts {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

/* ── Controls ─────────────────────────────────────────────────── */
.stmControls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.stmSearch {
  flex: 1;
  min-width: 160px;
  font-family: monospace;
  font-size: 12px;
  color: #cfe4ff;
  background: rgba(0,0,0,0.5);
  border: 1px solid #2a3a66;
  padding: 8px 10px;
}
.stmSearch:focus { outline: none; border-color: #66aaff; box-shadow: 0 0 8px rgba(80,150,255,0.3); }

.stmSortLabel {
  font-family: monospace;
  font-size: 9px;
  color: #4a6aa0;
  letter-spacing: 2px;
}
.stmSort {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: #9bb4d8;
  background: rgba(10,20,40,0.6);
  border: 1px solid #2a3a66;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.stmSort:hover { border-color: #66aaff; color: #cfe4ff; }
.stmSort.stmSortOn {
  border-color: #66ccff;
  color: #cfe4ff;
  box-shadow: 0 0 10px rgba(80,150,255,0.35);
  background: rgba(20,40,70,0.6);
}

/* ── The list ─────────────────────────────────────────────────── */
.stmRow {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #1f2b4d;
  background: rgba(8,14,30,0.55);
  padding: 8px 12px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.stmRow:hover {
  border-color: #66aaff;
  background: rgba(16,28,55,0.7);
  box-shadow: 0 0 12px rgba(80,150,255,0.25);
}

.stmRank {
  font-family: monospace;
  font-size: 11px;
  color: #3a5488;
  width: 34px;
  flex-shrink: 0;
  text-align: right;
}

.stmCover {
  width: 92px;
  height: 43px;
  flex-shrink: 0;
  object-fit: cover;
  background: #0a1020;
  border: 1px solid #1f2b4d;
  image-rendering: auto;
}

.stmInfo { flex: 1; min-width: 0; }
.stmName {
  font-size: 13px;
  color: #d7e6ff;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stmMeta {
  font-family: monospace;
  font-size: 9px;
  color: #5a76a8;
  letter-spacing: 1px;
  margin-top: 3px;
}
.stmRecent { color: #66ccaa; }

.stmHours {
  font-family: monospace;
  font-size: 13px;
  color: #9fe8cc;
  text-align: right;
  flex-shrink: 0;
  width: 84px;
}
.stmHours.stmUnplayed { color: #3a5488; }
.stmHoursUnit {
  display: block;
  font-size: 8px;
  color: #4a6aa0;
  letter-spacing: 1px;
}

/* ── States ───────────────────────────────────────────────────── */
.stmState {
  font-family: monospace;
  font-size: 11px;
  color: #5a76a8;
  letter-spacing: 1px;
  text-align: center;
  padding: 30px 12px;
  border: 1px dashed #2a3a66;
  line-height: 1.8;
}
.stmState code {
  color: #9fe8cc;
  background: rgba(0,0,0,0.4);
  padding: 1px 5px;
}

.stmMore {
  display: block;
  width: 100%;
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: #9bb4d8;
  background: rgba(8,16,34,0.6);
  border: 1px solid #2a3a66;
  padding: 12px;
  cursor: pointer;
  margin-top: 4px;
  transition: border-color 0.2s, color 0.2s;
}
.stmMore:hover { border-color: #66aaff; color: #cfe4ff; }

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .stmControls { flex-direction: column; align-items: stretch; }
  .stmCover { width: 64px; height: 30px; }
  .stmRank { display: none; }
  .stmHours { width: 66px; font-size: 12px; }
}
