/* ============================================================
   WIKI — PROTECT  (/wiki/commands/protect)
   การ์ดขนาดโพรเทค โทนเดียวกับธีมเว็บ: ขาว + slate เข้ม + อำพัน
   ============================================================ */

.protect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.protect-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 18px 12px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.protect-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.50);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.protect-card-media {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid #eef0f3;
}

.protect-card-media img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: pixelated;
  transition: transform 0.25s;
}

.protect-card:hover .protect-card-media img {
  transform: scale(1.12);
}

.protect-card-noimg {
  font-size: 28px;
  color: #cbd5e1;
}

.protect-card-size {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.30);
  color: #92400e;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.protect-card-name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.protect-card-detail {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}

@media (prefers-reduced-motion: reduce) {
  .protect-card,
  .protect-card-media img {
    transition: none;
  }

  .protect-card:hover {
    transform: none;
  }

  .protect-card:hover .protect-card-media img {
    transform: none;
  }
}
