/* ============================================================
   List 5 — 無限スクロール / data-list-5.css
   ============================================================ */

/* ---- カードグリッド ---- */
.lst5-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 4px;
}

/* ---- カード ---- */
.lst5-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 18px 20px;
  transition: box-shadow 0.15s;
}

.lst5-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ---- タグバッジ ---- */
.lst5-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 0.03em;
}

.lst5-tag--css        { background: #E0F2FE; color: #0369A1; }
.lst5-tag--javascript { background: #FEF3C7; color: #B45309; }
.lst5-tag--html       { background: #FEE2E2; color: #B91C1C; }

/* ---- カードテキスト ---- */
.lst5-title {
  font-size: 15px;
  font-weight: 700;
  color: #1A2332;
  margin: 0 0 8px;
  line-height: 1.4;
}

.lst5-body {
  font-size: 13px;
  color: #64748B;
  line-height: 1.6;
  margin: 0;
}

/* ---- ローダー（スピナー） ---- */
.lst5-loader {
  text-align: center;
  padding: 20px;
}

.lst5-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid #E2E8F0;
  border-top-color: #2B7FE8;
  border-radius: 50%;
  animation: lst5-spin 0.7s linear infinite;
}

@keyframes lst5-spin {
  to { transform: rotate(360deg); }
}

/* ---- 終端メッセージ ---- */
.lst5-end {
  text-align: center;
  font-size: 13px;
  color: #94A3B8;
  padding: 20px;
  margin: 0;
}

/* ---- センチネル（不可視のスクロール検知用要素） ---- */
.lst5-sentinel {
  height: 1px;
}

/* ---- デモコントロール ---- */
.demo-controls {
  margin-top: 16px;
  text-align: right;
}

/* ---- リセットボタン ---- */
.reset-btn {
  padding: 6px 16px;
  font-size: 13px;
  color: #5A6A7A;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}

.reset-btn:hover {
  background: #F4F6F9;
  border-color: #9AA5B4;
}
